dungeon_crawler

view prototype/src/tile.h @ 3:31e53fd79c2d

lalala
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 10 Aug 2012 04:45:38 +0300
parents 1f61f2a02832
children 158de53b4e18
line source
1 #ifndef TILE_H_
2 #define TILE_H_
4 #include <vector>
5 #include "mesh.h"
7 enum {
8 TILE_NORTH = 1,
9 TILE_SOUTH = 2,
10 TILE_EAST = 4,
11 TILE_WEST = 8,
12 TILE_ALL = 0xf
13 };
15 class Tile {
16 private:
17 std::vector<Mesh*> meshes;
18 std::vector<Light*> lights;
20 public:
21 bool load(const char *fname);
23 void draw(unsigned int drawmask) const;
24 };
26 #endif // TILE_H_