- Timestamp:
- Nov 21, 2018, 12:03:16 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/wagnis_HS18/src/modules/wagnis/WagnisPlayer.h
r12109 r12114 7 7 #define Wagnis_Player_h 8 8 9 #include "Wagnis.h" 9 10 #include "OrxonoxPrereqs.h" 10 11 #include "core/CoreIncludes.h" … … 17 18 18 19 enum MoveType { ATTACK, MOVE, SET_TROOPS, SET_TROOPS_INITIAL }; 20 enum GameStagexyz { CHOOSE_PROVINCE_STAGE, REINFORCEMENT_STAGE, ATTACK_STAGE, MOVE_STAGE }; 19 21 20 22 … … 22 24 namespace orxonox 23 25 { 24 class WagnisPlayer : public HumanPlayer 26 class WagnisPlayer : public HumanPlayer, public Tickable 25 27 { 26 28 public: 27 29 WagnisPlayer(Context*); 28 30 virtual ~WagnisPlayer(); 31 void tick(float); 29 32 30 33 void playerTurn(); … … 35 38 std::string toString(); 36 39 37 private: 40 41 42 GameStagexyz gamestage; 43 bool province_selection_changed; 44 bool is_active; 38 45 int Player_ID; 39 46 WagnisGameboard* gameBoard; 40 WagnisProvince* origin ;41 WagnisProvince* target ;47 WagnisProvince* origin_province; 48 WagnisProvince* target_province; 42 49 bool isNeighbour(WagnisProvince*,WagnisProvince*); 43 50 bool existPath(WagnisProvince*,WagnisProvince*);
Note: See TracChangeset
for help on using the changeset viewer.