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
RevLine 
[12114]1
2
3
4#ifndef Wagnis_h
5#define Wagnis_h
6
[12124]7#include "WagnisPrereqs.h"
[12068]8#include "WagnisGameboard.h"
9#include "WagnisProvince.h"
[12124]10#include "WagnisPlayer.h"
[12114]11#include "gametypes/Deathmatch.h"
[12068]12
[12114]13
[12072]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 **/
[12068]29
[12114]30
[12068]31namespace orxonox
32{
[12114]33    class /**_WagnisExport**/ Wagnis : public Deathmatch
[12068]34    {
[12119]35        public:
36        Wagnis(Context* context);
37        virtual ~Wagnis();
38        void start();
[12124]39        void tick(float);
[12132]40        void playerFinishedStageCallback(WagnisPlayer*);
[12068]41
[12119]42
43
44        WagnisGameboard* gameBoard;
45
[12130]46        int active_player;
[12150]47        int initial_reinforcements_left;
[12124]48        GameStage gameStage;
49        std::vector<WagnisPlayer*> players;
[12119]50        void createGame();
[12124]51        bool findGameBoard();
[12150]52        int provinceCount();
[12170]53        int reinforcementsCounter(int);
54        int getContinentValue(int);
[12172]55        int unoccupiedProvinces();
[12114]56    };
57}
58#endif
59 /* Wagnis_h */
Note: See TracBrowser for help on using the repository browser.