Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 12068 was 12068, checked in by samuelbl, 6 years ago

Wagnis class added.

File size: 1.4 KB
Line 
1#include "WagnisGameboard.h"
2#include "WagnisProvince.h"
3
4// todo: klassen zusammenfassen
5
6namespace orxonox
7{
8    class _WagnisExport Wagnis : public Deathmatch
9    {
10        public: 
11
12        // to start the game
13        void createGame;        // creates and links provinces
14       
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
28                                    // (provinces linked, enough troops, no own province)
29            bool moveChecker;       // checks whether a troop movement is valid
30                                    // (start and target belong to player, link existing)
31            void attackSimulator;   // calculates outcome of battle
32       
33   
34        private:
35           
36            int owner_ID;
37            int troops;
38            int ID;
39            int continent;
40    }
41
42}
Note: See TracBrowser for help on using the repository browser.