Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Wagnis Player updated

File size: 1011 bytes
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>
16
[12100]17enum MoveType { ATTACK, MOVE, SET_TROOPS, SET_TROOPS_INITIAL };
[12069]18
19
[12080]20
[12069]21namespace orxonox
22{
[12080]23    class WagnisPlayer : public BaseClass
[12069]24    {
25    public:
[12080]26        WagnisPlayer(Context*,WagnisGameboard*);
[12069]27        virtual ~WagnisPlayer();
28
[12100]29        void playerTurn();
[12080]30        bool checkMove(WagnisProvince*,WagnisProvince*,MoveType);
31        void setTroops(WagnisProvince*);
32        void attack(WagnisProvince*,WagnisProvince*);
33        void moveTroops(WagnisProvince*,WagnisProvince*);
[12069]34        std::string toString();
35
36    private:
37        int Player_ID;
[12080]38        WagnisGameboard* gameBoard;
39        WagnisProvince* origin;
40        WagnisProvince* target;
[12100]41        bool isNeighbour(WagnisProvince*,WagnisProvince*);
42        bool existPath(WagnisProvince*,WagnisProvince*)
[12069]43    };
44}
45
46
47#endif
Note: See TracBrowser for help on using the repository browser.