Changeset 12072 for code/branches/wagnis_HS18/src/modules/wagnis/Wagnis.h
- Timestamp:
- Nov 3, 2018, 11:49:55 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/wagnis_HS18/src/modules/wagnis/Wagnis.h
r12068 r12072 2 2 #include "WagnisProvince.h" 3 3 4 // todo: klassen zusammenfassen 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 **/ 5 19 6 20 namespace orxonox … … 11 25 12 26 // to start the game 13 void createGame; // creates and links provinces 27 void createGame(); // creates and links provinces 28 14 29 15 void setPlayers; // initialises players 16 void chooseProvinces // players can choose their provinces 17 18 19 void playerTurn // each players turn 20 21 void setTroops; // get and set your reinforcements 22 void attack; // attack neighbouring provinces 23 void moveTroops; // move troops from one province to another 24 25 // additional checking funtions 26 int troopCounter; // counts how many reinforcements player gets 27 bool attackChecker; // checks whether an attack move is valid 30 // additional checking funtions 31 int troopCounter(int); // counts how many reinforcements player gets 32 bool attackChecker; // checks whether an attack move is valid 28 33 // (provinces linked, enough troops, no own province) 29 34 bool moveChecker; // checks whether a troop movement is valid 30 35 // (start and target belong to player, link existing) 31 36 void attackSimulator; // calculates outcome of battle 32 37 33 38 34 private:35 36 int owner_ID;37 int troops;38 int ID;39 int continent;40 39 } 41 40
Note: See TracChangeset
for help on using the changeset viewer.