Advertisement
Guest User

Tile.h

a guest
Nov 26th, 2013
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #ifndef TILE_H
  2. #define TILE_H
  3.  
  4. #include "SFML/Graphics/RenderWindow.hpp"
  5. #include "SFML/Graphics/RectangleShape.hpp"
  6.  
  7. class Tile {
  8.     private:
  9.         float cx, cy;
  10.         int type;
  11.         bool traversable;
  12.  
  13.         sf::RectangleShape shape;
  14.  
  15.     public:
  16.         static const float TILE_SIZE;
  17.  
  18.         Tile(float cx, float cy, int type, bool traversable);
  19.         virtual ~Tile();
  20.  
  21.         int GetType();
  22.         void SetType(int type);
  23.  
  24.         bool IsTraversable();
  25.  
  26.         void Draw(sf::RenderWindow* window);
  27. };
  28.  
  29. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement