Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/wagnis_HS18/src/modules/wagnis/Wagnis.h @ 12173

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

Continent color Billboards and arrows added.

File size: 2.2 KB
RevLine 
[12173]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 */
[12114]28
29
30
31#ifndef Wagnis_h
32#define Wagnis_h
33
[12124]34#include "WagnisPrereqs.h"
[12068]35#include "WagnisGameboard.h"
36#include "WagnisProvince.h"
[12124]37#include "WagnisPlayer.h"
[12114]38#include "gametypes/Deathmatch.h"
[12068]39
[12114]40
[12072]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 **/
[12068]56
[12114]57
[12068]58namespace orxonox
59{
[12114]60    class /**_WagnisExport**/ Wagnis : public Deathmatch
[12068]61    {
[12119]62        public:
63        Wagnis(Context* context);
64        virtual ~Wagnis();
65        void start();
[12124]66        void tick(float);
[12132]67        void playerFinishedStageCallback(WagnisPlayer*);
[12068]68
[12119]69
70
71        WagnisGameboard* gameBoard;
72
[12130]73        int active_player;
[12150]74        int initial_reinforcements_left;
[12124]75        GameStage gameStage;
76        std::vector<WagnisPlayer*> players;
[12119]77        void createGame();
[12124]78        bool findGameBoard();
[12150]79        int provinceCount();
[12170]80        int reinforcementsCounter(int);
81        int getContinentValue(int);
[12172]82        int unoccupiedProvinces();
[12114]83    };
84}
85#endif
86 /* Wagnis_h */
Note: See TracBrowser for help on using the repository browser.