Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef TILE_H
- #define TILE_H
- #include <SFML/Graphics.hpp>
- enum TileState {
- HIDDEN,
- REVEALED,
- VISIBLE
- };
- class Tile {
- private:
- float cx;
- float cy;
- sf::RectangleShape shape;
- sf::Sprite sprite;
- sf::Sprite overlay;
- TileState state;
- public:
- static const float TILE_SIZE;
- Tile(float x = 0.0f, float y = 0.0f, sf::Texture* texture = NULL);
- virtual ~Tile();
- sf::Vector2f GetPosition();
- void ChangeState(TileState newState);
- void Draw(sf::RenderWindow* window);
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement