diff --git a/block.cpp b/block.cpp index f159ff3..58b4516 100644 --- a/block.cpp +++ b/block.cpp @@ -1,3 +1,9 @@ #include "block.cpp" -// TODO: implémenter les fonctions de Block +Block::Block() { + // TODO: implémenter cette fonction +} + +void Block::draw(sf::RenderWindow& window) { + // TODO: implémenter cette fonction +} diff --git a/block.hpp b/block.hpp index 24ba61c..ef55546 100644 --- a/block.hpp +++ b/block.hpp @@ -1,27 +1,18 @@ #ifndef PTF_BLOCK_HPP #define PTF_BLOCK_HPP +#include "object.hpp" #include #include -class Block { -protected: - sf::Vector2i position; - int charge; - +class Block : public Object { public: Block(); + /** + * Dessin du bloc dans la fenêtre donnée + */ void draw(sf::RenderWindow& window); - - // getters et setters - sf::Vector2i getPosition() { - return position; - } - - int getCharge() { - return charge; - } }; #endif