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>
|
2016-03-08 18:50:37 +00:00
|
|
|
#include "object.hpp"
|
2016-03-08 16:46:33 +00:00
|
|
|
|
2016-03-08 17:07:34 +00:00
|
|
|
class Block : public Object {
|
2016-03-08 16:46:33 +00:00
|
|
|
public:
|
|
|
|
Block();
|
|
|
|
|
2016-03-08 17:07:34 +00:00
|
|
|
/**
|
|
|
|
* Dessin du bloc dans la fenêtre donnée
|
|
|
|
*/
|
2016-03-08 16:46:33 +00:00
|
|
|
void draw(sf::RenderWindow& window);
|
2016-03-08 18:50:37 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Détermine la couche d'affichage de l'objet
|
|
|
|
*/
|
|
|
|
unsigned int getLayer() {
|
|
|
|
return 0;
|
|
|
|
}
|
2016-03-08 16:46:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|