// // Monsterz // // Copyright: (c) 2005-2011 Sam Hocevar // This program is free software; you can redistribute it and/or // modify it under the terms of the Do What The Fuck You Want To // Public License, Version 2, as published by Sam Hocevar. See // http://sam.zoy.org/projects/COPYING.WTFPL for more details. // // // The Board class // --------------- // #if !defined __MONSTERZ_BOARD_H__ #define __MONSTERZ_BOARD_H__ #include "monsterz.h" class BoardData; class Board : public WorldEntity { public: typedef enum { GAME_HUNT, } game_t; Board(game_t, ivec2 dim, int minnpieces, int maxnpieces); virtual ~Board(); char const *GetName() { return ""; } protected: virtual void TickGame(float deltams); virtual void TickDraw(float deltams); /* Hunt mode */ void Fill(); bool Switch(ivec2 cell_a, ivec2 cell_b); int ListMashes(int list[MAX_WIDTH][MAX_HEIGHT]); int ListMoves(int list[MAX_WIDTH][MAX_HEIGHT]); private: BoardData *data; }; #endif // __MONSTERZ_BOARD_H__