/* * ORXONOX - the hottest 3D action shooter ever to exist * > www.orxonox.net < * * * License notice: * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: * ... * Co-authors: * ... * */ /** @file Mini4Dgame.h @brief Declaration of the Mini4Dgame class. */ #ifndef _Mini4Dgame_H__ #define _Mini4Dgame_H__ #include "gametypes/Deathmatch.h" #include "mini4Dgame/Mini4DgamePrereqs.h" #include "Mini4DgameBoard.h" namespace orxonox { namespace mini4DgamePlayerColor { enum color { none, red, blue, green }; } /** @brief @author */ class _Mini4DgameExport Mini4Dgame : public Deathmatch { public: Mini4Dgame(Context* context); //!< Constructor. Registers and initializes the object. virtual ~Mini4Dgame(); //!< Destructor. Cleans up, if initialized. virtual void start(void); //!< Starts the Mini4Dgame minigame. virtual void end(void); ///!< Ends the Mini4Dgame minigame. virtual void spawnPlayer(PlayerInfo* player); //!< Spawns the input player. void setGameboard(Mini4DgameBoard* board) { this->board_ = board; } Mini4DgameBoard* getBoard(void) { return this->board_; } static void undoStone(); //static void setStone(Vector4 move, const int playerColor, Mini4DgameBoard* board); static void setStone(int x,int y, int z, int w);//Vector4 move, const int playerColor); void win(Mini4DgameWinner winner); protected: virtual void spawnPlayersIfRequested(); //!< Spawns player. private: void cleanup(void); //!< Cleans up the Gametype by destroying the ball and the bats. //Player players[2]; Mini4DgameBoard* board_; }; } #endif /* _Mini4Dgame_H__ */