EngineLib
 All Classes Functions
Tile.h
1 /*
2  * Tile.h
3  *
4  * Created on: 25.10.2017
5  * Author: robert
6  */
7 
8 #ifndef TILE_H_
9 #define TILE_H_
10 #include "math.h"
11 #include "TileSet.h"
19 class Tile {
20 public:
21  Tile();
22  Tile(TileSet *tileset,int x,int y,int id,int type);
23  virtual ~Tile();
24  int x,y,id,type;
25 
29  void drawTile();
40  void drawTile(int x, int y,int w,int h,int index);
45  int getType();
50  void setType(int type);
51 private:
52  TileSet *tileset;
53 
54 
55 };
56 
57 #endif /* TILE_H_ */
int getType()
Definition: Tile.cpp:34
Definition: Tile.h:19
void setType(int type)
Definition: Tile.cpp:38
void drawTile()
Definition: Tile.cpp:26
Definition: TileSet.h:27