source: trunk/monsterz/board.h @ 838

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

monsterz: get rid of the Fusion mode, it sucked.

  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1//
2// Monsterz
3//
4// Copyright: (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://sam.zoy.org/projects/COPYING.WTFPL for more details.
9//
10
11//
12// The Board class
13// ---------------
14//
15
16#if !defined __MONSTERZ_BOARD_H__
17#define __MONSTERZ_BOARD_H__
18
19#include "monsterz.h"
20
21class BoardData;
22
23class Board : public WorldEntity
24{
25public:
26    typedef enum
27    {
28        GAME_HUNT,
29    }
30    game_t;
31
32    Board(game_t, vec2i dim, int minnpieces, int maxnpieces);
33    virtual ~Board();
34
35    char const *GetName() { return "<board>"; }
36
37protected:
38    virtual void TickGame(float deltams);
39    virtual void TickDraw(float deltams);
40
41    /* Hunt mode */
42    void Fill();
43    bool Switch(vec2i cell_a, vec2i cell_b);
44    int ListMashes(int list[MAX_WIDTH][MAX_HEIGHT]);
45    int ListMoves(int list[MAX_WIDTH][MAX_HEIGHT]);
46
47private:
48    BoardData *data;
49};
50
51#endif // __MONSTERZ_BOARD_H__
52
Note: See TracBrowser for help on using the repository browser.