Ajout de la classe Block

This commit is contained in:
Mattéo Delabre 2016-03-08 17:46:33 +01:00
parent e3eff0eb5f
commit c53bbbe273
2 changed files with 30 additions and 0 deletions

3
block.cpp Normal file
View File

@ -0,0 +1,3 @@
#include "block.cpp"
// TODO: implémenter les fonctions de Block

27
block.hpp Normal file
View File

@ -0,0 +1,27 @@
#ifndef PTF_BALL_HPP
#define PTF_BALL_HPP
#include <SFML/Graphics.hpp>
#include <iostream>
class Block {
protected:
sf::Vector2i position;
int charge;
public:
Block();
void draw(sf::RenderWindow& window);
// getters et setters
sf::Vector2i getPosition() {
return position;
}
int getCharge() {
return charge;
}
};
#endif