source: trunk/monsterz/board.h @ 308

Last change on this file since 308 was 308, checked in by sam, 10 years ago

Give a new board when no more moves are possible.

  • Property svn:keywords set to Id
File size: 618 bytes
Line 
1//
2// Deus Hax (working title)
3// Copyright (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
4//
5
6//
7// The Board class
8// ---------------
9//
10
11#if !defined __DH_BOARD_H__
12#define __DH_BOARD_H__
13
14#include "entity.h"
15#include "game.h"
16
17class BoardData;
18
19class Board : public Entity
20{
21public:
22    Board(Game *game);
23    virtual ~Board();
24
25protected:
26    virtual void TickGame(float deltams);
27    virtual void TickDraw(float deltams);
28
29    void Fill();
30    void Switch(int2 cell_a, int2 cell_b);
31    int ListMashes(int list[8][8]);
32    int ListMoves(int list[8][8]);
33
34private:
35    BoardData *data;
36};
37
38#endif // __DH_BOARD_H__
39
Note: See TracBrowser for help on using the repository browser.