Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 3, 2018, 11:49:55 PM (5 years ago)
Author:
stadlero
Message:

Added connections-string parser in WagnisGameboard which still needs work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/wagnis_HS18/src/modules/wagnis/Wagnis.h

    r12068 r12072  
    22#include "WagnisProvince.h"
    33
    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 **/
    519
    620namespace orxonox
     
    1125
    1226        // to start the game
    13         void createGame;        // creates and links provinces
     27        void createGame();        // creates and links provinces
     28
    1429       
    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
    2833                                    // (provinces linked, enough troops, no own province)
    29             bool moveChecker;       // checks whether a troop movement is valid
     34        bool moveChecker;       // checks whether a troop movement is valid
    3035                                    // (start and target belong to player, link existing)
    31             void attackSimulator;   // calculates outcome of battle
     36        void attackSimulator;   // calculates outcome of battle
    3237       
    3338   
    34         private:
    35            
    36             int owner_ID;
    37             int troops;
    38             int ID;
    39             int continent;
    4039    }
    4140
Note: See TracChangeset for help on using the changeset viewer.