Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Added connections-string parser in WagnisGameboard which still needs work

File size: 1.2 KB
Line 
1#include "WagnisGameboard.h"
2#include "WagnisProvince.h"
3
4/** Die Wagnis Klasse hat die folgenden Aufgaben:
5 *  1. Das Spiel erstellen.
6 *  - Gameboard initialisieren
7 *  - Provinzen initialisieren
8 *  - Provinzen verbinden (Nachbarschaften eintragen)
9 *  - Spieler initialisieren
10 *  -
11 *
12 *  2. Den Spielablauf steuern
13 *  - Für einen Spieler berechnen wie viele Truppen er setzen darf.
14 *  - Den Funktion "setTroops(int troops)" beim Spieler aufrufen.
15 *  - Die Funktion "playerTurn()" bei jedem Spieler aufrufen.
16 *  -
17 *
18 **/
19
20namespace orxonox
21{
22    class _WagnisExport Wagnis : public Deathmatch
23    {
24        public: 
25
26        // to start the game
27        void createGame();        // creates and links provinces
28
29       
30        // additional checking funtions
31        int troopCounter(int);       // counts how many reinforcements player gets
32        bool attackChecker;     // checks whether an attack move is valid
33                                    // (provinces linked, enough troops, no own province)
34        bool moveChecker;       // checks whether a troop movement is valid
35                                    // (start and target belong to player, link existing)
36        void attackSimulator;   // calculates outcome of battle
37       
38   
39    }
40
41}
Note: See TracBrowser for help on using the repository browser.