Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/wagnis_HS18/src/modules/wagnis/WagnisPlayer.h @ 12114

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

WIP 21 nov

File size: 1.3 KB
Line 
1
2
3
4
5
6#ifndef Wagnis_Player_h
7#define Wagnis_Player_h
8
9#include "Wagnis.h"
10#include "OrxonoxPrereqs.h"
11#include "core/CoreIncludes.h"
12#include "core/XMLPort.h"
13#include "WagnisProvince.h"
14#include "WagnisGameboard.h"
15#include <vector>
16#include <string>
17#include "infos/HumanPlayer.h"
18
19enum MoveType { ATTACK, MOVE, SET_TROOPS, SET_TROOPS_INITIAL };
20enum GameStagexyz { CHOOSE_PROVINCE_STAGE, REINFORCEMENT_STAGE, ATTACK_STAGE, MOVE_STAGE };
21
22
23
24namespace orxonox
25{
26    class WagnisPlayer : public HumanPlayer, public Tickable
27    {
28    public:
29        WagnisPlayer(Context*);
30        virtual ~WagnisPlayer();
31        void tick(float);
32
33        void playerTurn();
34        bool checkMove(WagnisProvince*,WagnisProvince*,MoveType);
35        void setTroops(WagnisProvince*);
36        void attack(WagnisProvince*,WagnisProvince*);
37        void moveTroops(WagnisProvince*,WagnisProvince*);
38        std::string toString();
39
40
41
42        GameStagexyz gamestage;
43        bool province_selection_changed;
44        bool is_active;
45        int Player_ID;
46        WagnisGameboard* gameBoard;
47        WagnisProvince* origin_province;
48        WagnisProvince* target_province;
49        bool isNeighbour(WagnisProvince*,WagnisProvince*);
50        bool existPath(WagnisProvince*,WagnisProvince*);
51    };
52}
53
54
55#endif
Note: See TracBrowser for help on using the repository browser.