Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 12172 was 12172, checked in by kunzro, 5 years ago

Colour untill 6 adjusted and CHOOSE_PROVINCE_STAGE fixed, so it only ends, if all the provinces are occupied also if some players don' play

File size: 1.3 KB
Line 
1
2
3
4#ifndef Wagnis_h
5#define Wagnis_h
6
7#include "WagnisPrereqs.h"
8#include "WagnisGameboard.h"
9#include "WagnisProvince.h"
10#include "WagnisPlayer.h"
11#include "gametypes/Deathmatch.h"
12
13
14/** Die Wagnis Klasse hat die folgenden Aufgaben:
15 *  1. Das Spiel erstellen.
16 *  - Gameboard initialisieren
17 *  - Provinzen initialisieren
18 *  - Provinzen verbinden (Nachbarschaften eintragen)
19 *  - Spieler initialisieren
20 *  -
21 *
22 *  2. Den Spielablauf steuern
23 *  - Für einen Spieler berechnen wie viele Truppen er setzen darf.
24 *  - Den Funktion "setTroops(int troops)" beim Spieler aufrufen.
25 *  - Die Funktion "playerTurn()" bei jedem Spieler aufrufen.
26 *  -
27 *
28 **/
29
30
31namespace orxonox
32{
33    class /**_WagnisExport**/ Wagnis : public Deathmatch
34    {
35        public:
36        Wagnis(Context* context);
37        virtual ~Wagnis();
38        void start();
39        void tick(float);
40        void playerFinishedStageCallback(WagnisPlayer*);
41
42
43
44        WagnisGameboard* gameBoard;
45
46        int active_player;
47        int initial_reinforcements_left;
48        GameStage gameStage;
49        std::vector<WagnisPlayer*> players;
50        void createGame();
51        bool findGameBoard();
52        int provinceCount();
53        int reinforcementsCounter(int);
54        int getContinentValue(int);
55        int unoccupiedProvinces();
56    };
57}
58#endif
59 /* Wagnis_h */
Note: See TracBrowser for help on using the repository browser.