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