tavli
diff src/board.h @ 0:52e0dd47753b
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 21 Jun 2015 06:30:39 +0300 |
parents | |
children | 3fcd7b4d631f |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/board.h Sun Jun 21 06:30:39 2015 +0300 1.3 @@ -0,0 +1,28 @@ 1.4 +#ifndef BOARD_H_ 1.5 +#define BOARD_H_ 1.6 + 1.7 +#include "mesh.h" 1.8 + 1.9 +#define NUM_SLOTS 24 1.10 +#define MAX_PUCKS 30 1.11 + 1.12 +enum { EMPTY = 0, MINE, OTHER }; 1.13 + 1.14 +class Board { 1.15 +private: 1.16 + int slots[NUM_SLOTS][MAX_PUCKS]; 1.17 + Mesh *board_mesh, *puck_mesh; 1.18 + 1.19 +public: 1.20 + Board(); 1.21 + ~Board(); 1.22 + 1.23 + bool init(); 1.24 + void destroy(); 1.25 + 1.26 + void clear(); 1.27 + 1.28 + void draw() const; 1.29 +}; 1.30 + 1.31 +#endif // BOARD_H_