Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/modules/wagnis/Wagnis.h @ 12234

Last change on this file since 12234 was 12173, checked in by stadlero, 6 years ago

Continent color Billboards and arrows added.

File size: 2.2 KB
Line 
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 *   Authors:
23 * 
24 *   Co-authors:
25 *      ...
26 *
27 */
28
29
30
31#ifndef Wagnis_h
32#define Wagnis_h
33
34#include "WagnisPrereqs.h"
35#include "WagnisGameboard.h"
36#include "WagnisProvince.h"
37#include "WagnisPlayer.h"
38#include "gametypes/Deathmatch.h"
39
40
41/** Die Wagnis Klasse hat die folgenden Aufgaben:
42 *  1. Das Spiel erstellen.
43 *  - Gameboard initialisieren
44 *  - Provinzen initialisieren
45 *  - Provinzen verbinden (Nachbarschaften eintragen)
46 *  - Spieler initialisieren
47 *  -
48 *
49 *  2. Den Spielablauf steuern
50 *  - Für einen Spieler berechnen wie viele Truppen er setzen darf.
51 *  - Den Funktion "setTroops(int troops)" beim Spieler aufrufen.
52 *  - Die Funktion "playerTurn()" bei jedem Spieler aufrufen.
53 *  -
54 *
55 **/
56
57
58namespace orxonox
59{
60    class /**_WagnisExport**/ Wagnis : public Deathmatch
61    {
62        public:
63        Wagnis(Context* context);
64        virtual ~Wagnis();
65        void start();
66        void tick(float);
67        void playerFinishedStageCallback(WagnisPlayer*);
68
69
70
71        WagnisGameboard* gameBoard;
72
73        int active_player;
74        int initial_reinforcements_left;
75        GameStage gameStage;
76        std::vector<WagnisPlayer*> players;
77        void createGame();
78        bool findGameBoard();
79        int provinceCount();
80        int reinforcementsCounter(int);
81        int getContinentValue(int);
82        int unoccupiedProvinces();
83    };
84}
85#endif
86 /* Wagnis_h */
Note: See TracBrowser for help on using the repository browser.