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