Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 12109 was 12109, checked in by stadlero, 6 years ago

Player class does now compile

File size: 1.0 KB
RevLine 
[12069]1
2
3
4
5
6#ifndef Wagnis_Player_h
7#define Wagnis_Player_h
8
9#include "OrxonoxPrereqs.h"
10#include "core/CoreIncludes.h"
11#include "core/XMLPort.h"
[12080]12#include "WagnisProvince.h"
13#include "WagnisGameboard.h"
[12069]14#include <vector>
15#include <string>
[12109]16#include "infos/HumanPlayer.h"
[12069]17
[12100]18enum MoveType { ATTACK, MOVE, SET_TROOPS, SET_TROOPS_INITIAL };
[12069]19
20
[12080]21
[12069]22namespace orxonox
23{
[12109]24    class WagnisPlayer : public HumanPlayer
[12069]25    {
26    public:
[12109]27        WagnisPlayer(Context*);
[12069]28        virtual ~WagnisPlayer();
29
[12100]30        void playerTurn();
[12080]31        bool checkMove(WagnisProvince*,WagnisProvince*,MoveType);
32        void setTroops(WagnisProvince*);
33        void attack(WagnisProvince*,WagnisProvince*);
34        void moveTroops(WagnisProvince*,WagnisProvince*);
[12069]35        std::string toString();
36
37    private:
38        int Player_ID;
[12080]39        WagnisGameboard* gameBoard;
40        WagnisProvince* origin;
41        WagnisProvince* target;
[12100]42        bool isNeighbour(WagnisProvince*,WagnisProvince*);
[12105]43        bool existPath(WagnisProvince*,WagnisProvince*);
[12069]44    };
45}
46
47
48#endif
Note: See TracBrowser for help on using the repository browser.