skizzle/include/block.hpp

29 lines
522 B
C++
Raw Normal View History

2016-03-08 22:28:50 +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"
#include "engine_state.hpp"
2016-03-08 16:46:33 +00:00
class Block : public Object {
private:
2016-03-12 13:15:27 +00:00
sf::Texture texture;
sf::RectangleShape shape;
2016-03-08 16:46:33 +00:00
public:
Block(float x, float y);
/**
* Dessin du bloc dans la fenêtre donnée
*/
virtual void draw(sf::RenderWindow& window);
2016-03-08 20:15:33 +00:00
/**
* Récupère la boîte englobante de l'objet
*/
std::unique_ptr<sf::FloatRect> getAABB();
2016-03-08 16:46:33 +00:00
};
#endif