Rev | Line | |
---|
[12069] | 1 | |
---|
| 2 | |
---|
| 3 | |
---|
| 4 | |
---|
| 5 | |
---|
| 6 | #ifndef Wagnis_Player_h |
---|
| 7 | #define Wagnis_Player_h |
---|
| 8 | |
---|
[12124] | 9 | #include "WagnisPrereqs.h" |
---|
[12114] | 10 | #include "Wagnis.h" |
---|
[12069] | 11 | #include "OrxonoxPrereqs.h" |
---|
| 12 | #include "core/CoreIncludes.h" |
---|
| 13 | #include "core/XMLPort.h" |
---|
[12080] | 14 | #include "WagnisProvince.h" |
---|
| 15 | #include "WagnisGameboard.h" |
---|
[12069] | 16 | #include <vector> |
---|
| 17 | #include <string> |
---|
[12109] | 18 | #include "infos/HumanPlayer.h" |
---|
[12069] | 19 | |
---|
| 20 | |
---|
| 21 | |
---|
[12080] | 22 | |
---|
[12069] | 23 | namespace orxonox |
---|
| 24 | { |
---|
[12114] | 25 | class WagnisPlayer : public HumanPlayer, public Tickable |
---|
[12069] | 26 | { |
---|
| 27 | public: |
---|
[12109] | 28 | WagnisPlayer(Context*); |
---|
[12069] | 29 | virtual ~WagnisPlayer(); |
---|
[12114] | 30 | void tick(float); |
---|
[12069] | 31 | |
---|
[12100] | 32 | void playerTurn(); |
---|
[12127] | 33 | bool checkMove(MoveType); |
---|
[12080] | 34 | void setTroops(WagnisProvince*); |
---|
| 35 | void attack(WagnisProvince*,WagnisProvince*); |
---|
| 36 | void moveTroops(WagnisProvince*,WagnisProvince*); |
---|
[12069] | 37 | std::string toString(); |
---|
| 38 | |
---|
[12114] | 39 | |
---|
| 40 | |
---|
[12130] | 41 | Wagnis* master; |
---|
| 42 | GameStage gameStage; |
---|
[12114] | 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; |
---|
[12136] | 49 | int reinforcements; |
---|
[12127] | 50 | bool isNeighbour(WagnisProvince*, WagnisProvince*); |
---|
| 51 | bool existPath(WagnisProvince*, WagnisProvince*); |
---|
[12135] | 52 | int dice(); |
---|
| 53 | int best3(int, int, int); |
---|
| 54 | int best2(int, int); |
---|
| 55 | int second3(int, int, int); |
---|
| 56 | int second2(int, int); |
---|
| 57 | int reinforcementCounter(); |
---|
[12069] | 58 | }; |
---|
| 59 | } |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.