Orxonox  0.0.5 Codename: Arcturus
Mini4Dgame.h
Go to the documentation of this file.
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 
34 #ifndef _Mini4Dgame_H__
35 #define _Mini4Dgame_H__
36 
37 #include "gametypes/Deathmatch.h"
39 #include "Mini4DgameBoard.h"
40 
41 namespace orxonox
42 {
50  {
51  public:
52  Mini4Dgame(Context* context);
53  virtual ~Mini4Dgame();
54 
55  virtual void start(void) override;
56  virtual void end(void) override;
57 
58  virtual void spawnPlayer(PlayerInfo* player) override;
59 
61  { this->board_ = board; }
62 
64  { return this->board_; }
65 
66  static void undoStone();
67 
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 
71  void win(Mini4DgameWinner winner);
72 
73  protected:
74  virtual void spawnPlayersIfRequested() override;
75 
76 
77  private:
78  void cleanup(void);
79 
80  //Player players[2];
82  };
83 }
84 
85 #endif /* _Mini4Dgame_H__ */
Definition: Mini4DgameBoard.h:61
Definition: Mini4Dgame.h:49
#define _Mini4DgameExport
Definition: Mini4DgamePrereqs.h:60
Declaration of the Mini4DgameBoard class.
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Mini4DgameBoard * board_
Definition: Mini4Dgame.h:81
void setGameboard(Mini4DgameBoard *board)
Definition: Mini4Dgame.h:60
Definition: Context.h:45
This class manages the board for Mini4Dgame.
Definition: Mini4DgameBoard.h:77
Definition: Deathmatch.h:37
Definition: PlayerInfo.h:39
Shared library macros, enums, constants and forward declarations for the mini4dgame module ...
Mini4DgameBoard * getBoard(void)
Definition: Mini4Dgame.h:63