dungeon_crawler
diff prototype/src/level.h @ 50:c40efa9cf844
torches sound
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 18 Sep 2012 04:45:46 +0300 |
parents | 303743485aba |
children |
line diff
1.1 --- a/prototype/src/level.h Tue Sep 18 00:34:29 2012 +0300 1.2 +++ b/prototype/src/level.h Tue Sep 18 04:45:46 2012 +0300 1.3 @@ -34,6 +34,7 @@ 1.4 bool load(const char *fname); 1.5 bool save(const char *fname) const; 1.6 1.7 + GridCell *get_cell(int x, int y); 1.8 const GridCell *get_cell(int x, int y) const; 1.9 Vector3 get_cell_pos(int x, int y) const; 1.10 void get_cell_coords_at(const Vector3 &pos, int *xptr, int *yptr) const; 1.11 @@ -57,9 +58,14 @@ 1.12 // particle systems 1.13 std::vector<struct psys_emitter*> psys; 1.14 1.15 + unsigned int adjmask; 1.16 + 1.17 public: 1.18 GridCell(Tile *tile = 0); 1.19 1.20 + void set_adj_mask(unsigned int mask); 1.21 + unsigned int get_adj_mask() const; 1.22 + 1.23 void add_tile(Tile *tile); 1.24 1.25 void update(unsigned long msec, float dt);