Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Added connections-string parser in WagnisGameboard which still needs work

File size: 1.2 KB
RevLine 
[12068]1#include "WagnisGameboard.h"
2#include "WagnisProvince.h"
3
[12072]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 **/
[12068]19
20namespace orxonox
21{
22    class _WagnisExport Wagnis : public Deathmatch
23    {
24        public: 
25
26        // to start the game
[12072]27        void createGame();        // creates and links provinces
[12068]28
29       
[12072]30        // additional checking funtions
31        int troopCounter(int);       // counts how many reinforcements player gets
32        bool attackChecker;     // checks whether an attack move is valid
[12068]33                                    // (provinces linked, enough troops, no own province)
[12072]34        bool moveChecker;       // checks whether a troop movement is valid
[12068]35                                    // (start and target belong to player, link existing)
[12072]36        void attackSimulator;   // calculates outcome of battle
[12068]37       
38   
39    }
40
41}
Note: See TracBrowser for help on using the repository browser.