Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/modules/mini4dgame/Mini4Dgame.h @ 11564

Last change on this file since 11564 was 11071, checked in by landauf, 9 years ago

merged branch cpp11_v3 back to trunk

  • Property svn:eol-style set to native
File size: 2.5 KB
RevLine 
[10097]1/*
2 *   ORXONOX - the hottest 3D action shooter ever to exist
3 *                    > www.orxonox.net <
4 *
5 *
6 *   License notice:
7 *
8 *   This program is free software; you can redistribute it and/or
9 *   modify it under the terms of the GNU General Public License
10 *   as published by the Free Software Foundation; either version 2
11 *   of the License, or (at your option) any later version.
12 *
13 *   This program is distributed in the hope that it will be useful,
14 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
15 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 *   GNU General Public License for more details.
17 *
18 *   You should have received a copy of the GNU General Public License
19 *   along with this program; if not, write to the Free Software
20 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21 *
22 *   Author:
23 *      ...
24 *   Co-authors:
25 *      ...
26 *
27 */
28
29/**
30    @file Mini4Dgame.h
31    @brief Declaration of the Mini4Dgame class.
32*/
33
34#ifndef _Mini4Dgame_H__
35#define _Mini4Dgame_H__
36
37#include "gametypes/Deathmatch.h"
[10227]38#include "mini4dgame/Mini4DgamePrereqs.h"
[10131]39#include "Mini4DgameBoard.h"
[10097]40
41namespace orxonox
42{
43    /**
44    @brief
45
46    @author
47
48    */
[10101]49    class _Mini4DgameExport Mini4Dgame : public Deathmatch
[10097]50    {
51        public:
[10230]52            Mini4Dgame(Context* context); //!< Constructor. Registers and initializes the object.
[10097]53            virtual ~Mini4Dgame(); //!< Destructor. Cleans up, if initialized.
54
[11071]55            virtual void start(void) override; //!< Starts the Mini4Dgame minigame.
56            virtual void end(void) override; ///!< Ends the Mini4Dgame minigame.
[10097]57
[11071]58            virtual void spawnPlayer(PlayerInfo* player) override; //!< Spawns the input player.
[10097]59
[10156]60            void setGameboard(Mini4DgameBoard* board)
[10230]61                { this->board_ = board; }
[10097]62
[10156]63            Mini4DgameBoard* getBoard(void)
[10230]64                { return this->board_; }
[10131]65
[10168]66            static void undoStone();
67
[10156]68            //static void setStone(Vector4 move, const int playerColor, Mini4DgameBoard* board);
69            static void setStone(int x,int y, int z, int w);//Vector4 move, const int playerColor);
70
[10121]71            void win(Mini4DgameWinner winner);
[10097]72
73        protected:
[11071]74            virtual void spawnPlayersIfRequested() override; //!< Spawns player.
[10097]75
76
77        private:
78            void cleanup(void); //!< Cleans up the Gametype by destroying the ball and the bats.
79
[10131]80            //Player players[2];
[10156]81            Mini4DgameBoard* board_;
[10097]82    };
83}
84
85#endif /* _Mini4Dgame_H__ */
Note: See TracBrowser for help on using the repository browser.