dungeon_crawler
diff prototype/src/level.h @ 48:aa9e28670ae2
added sound playback, more to do
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 17 Sep 2012 08:40:59 +0300 |
parents | dfd3a413ef9e |
children | 303743485aba |
line diff
1.1 --- a/prototype/src/level.h Sun Sep 16 08:16:50 2012 +0300 1.2 +++ b/prototype/src/level.h Mon Sep 17 08:40:59 2012 +0300 1.3 @@ -4,9 +4,9 @@ 1.4 #include <vector> 1.5 #include "vmath/vmath.h" 1.6 #include "psys/psys.h" 1.7 +#include "tile.h" 1.8 1.9 class GridCell; 1.10 -class Tile; 1.11 1.12 class Level { 1.13 private: 1.14 @@ -30,6 +30,7 @@ 1.15 1.16 const GridCell *get_cell(int x, int y) const; 1.17 Vector3 get_cell_pos(int x, int y) const; 1.18 + void get_cell_coords_at(const Vector3 &pos, int *xptr, int *yptr) const; 1.19 unsigned int get_cell_dirmask(int x, int y) const; 1.20 1.21 void update(unsigned long msec, float dt); 1.22 @@ -37,6 +38,8 @@ 1.23 void draw() const; 1.24 void draw_lights() const; 1.25 void draw_post() const; 1.26 + 1.27 + AudioSample *get_sample(int x, int y, int which) const; 1.28 }; 1.29 1.30 class GridCell { 1.31 @@ -57,6 +60,8 @@ 1.32 void draw(unsigned int draw_mask) const; 1.33 void draw_lights(unsigned int draw_mask) const; 1.34 void draw_post(unsigned int draw_mask) const; 1.35 + 1.36 + AudioSample *get_sample(int which) const; 1.37 }; 1.38 1.39 #endif // LEVEL_H_