Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef TILE_H
- #define TILE_H
- #include "SFML/Graphics/RenderWindow.hpp"
- #include "SFML/Graphics/RectangleShape.hpp"
- class Tile {
- private:
- float cx, cy;
- int type;
- bool traversable;
- sf::RectangleShape shape;
- public:
- static const float TILE_SIZE;
- Tile(float cx, float cy, int type, bool traversable);
- virtual ~Tile();
- int GetType();
- void SetType(int type);
- bool IsTraversable();
- void Draw(sf::RenderWindow* window);
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement