| [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" |
|---|
| [12164] | 19 | #include <algorithm> |
|---|
| 20 | #include <iostream> |
|---|
| [12069] | 21 | |
|---|
| 22 | |
|---|
| 23 | |
|---|
| [12080] | 24 | |
|---|
| [12164] | 25 | |
|---|
| [12069] | 26 | namespace orxonox |
|---|
| 27 | { |
|---|
| [12114] | 28 | class WagnisPlayer : public HumanPlayer, public Tickable |
|---|
| [12069] | 29 | { |
|---|
| 30 | public: |
|---|
| [12109] | 31 | WagnisPlayer(Context*); |
|---|
| [12069] | 32 | virtual ~WagnisPlayer(); |
|---|
| [12114] | 33 | void tick(float); |
|---|
| [12069] | 34 | |
|---|
| [12100] | 35 | void playerTurn(); |
|---|
| [12127] | 36 | bool checkMove(MoveType); |
|---|
| [12080] | 37 | void setTroops(WagnisProvince*); |
|---|
| 38 | void attack(WagnisProvince*,WagnisProvince*); |
|---|
| 39 | void moveTroops(WagnisProvince*,WagnisProvince*); |
|---|
| [12069] | 40 | std::string toString(); |
|---|
| [12150] | 41 | void setActive(bool); |
|---|
| 42 | bool isActive() const; |
|---|
| [12160] | 43 | void resetProvinceSelection(); |
|---|
| [12069] | 44 | |
|---|
| [12114] | 45 | |
|---|
| 46 | |
|---|
| [12130] | 47 | Wagnis* master; |
|---|
| 48 | GameStage gameStage; |
|---|
| [12114] | 49 | bool province_selection_changed; |
|---|
| [12069] | 50 | int Player_ID; |
|---|
| [12080] | 51 | WagnisGameboard* gameBoard; |
|---|
| [12114] | 52 | WagnisProvince* origin_province; |
|---|
| 53 | WagnisProvince* target_province; |
|---|
| [12136] | 54 | int reinforcements; |
|---|
| [12164] | 55 | std::vector<int> AlreadyChecked; |
|---|
| [12127] | 56 | bool isNeighbour(WagnisProvince*, WagnisProvince*); |
|---|
| 57 | bool existPath(WagnisProvince*, WagnisProvince*); |
|---|
| [12164] | 58 | bool contains(std::vector<int>, int); |
|---|
| [12135] | 59 | int dice(); |
|---|
| 60 | int best3(int, int, int); |
|---|
| 61 | int best2(int, int); |
|---|
| 62 | int second3(int, int, int); |
|---|
| 63 | int second2(int, int); |
|---|
| [12150] | 64 | |
|---|
| 65 | private: |
|---|
| 66 | bool is_active; |
|---|
| [12069] | 67 | }; |
|---|
| 68 | } |
|---|
| 69 | |
|---|
| 70 | |
|---|
| 71 | #endif |
|---|