2016-03-08 16:48:54 +00:00
|
|
|
#ifndef PTF_BLOCK_HPP
|
|
|
|
#define PTF_BLOCK_HPP
|
2016-03-08 16:46:33 +00:00
|
|
|
|
|
|
|
#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
|