Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Wagnis Player updated

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