7 // Okay, this is ugly but works and I can't think of any better way to handle
8 // this. So what we do when we pass the anonymous structs into a function is
9 // pass them as a (void *) and then cast them as type (Board *) in order to
10 // use them. Yes, it's ugly. Come up with something better!
13 unsigned int width; // Width of the board
14 unsigned int height; // Height of the board
15 unsigned char state[]; // Board data
22 Point(int xx = 0, int yy = 0) { x = xx; y = yy; }
28 uint8_t board[BOARDSIZE][BOARDSIZE];
30 Point corner; // Corner dimensions on screen
31 Point cursor; // Cursor location
34 #define NUMBER_OF_BOARDS 42
35 extern const void * boards[];
36 extern std::vector<Level> levelStorage;
38 #endif // __BOARDS_H__