Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 21, 2018, 12:03:16 PM (5 years ago)
Author:
stadlero
Message:

WIP 21 nov

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/wagnis_HS18/src/modules/wagnis/WagnisPlayer.h

    r12109 r12114  
    77#define Wagnis_Player_h
    88
     9#include "Wagnis.h"
    910#include "OrxonoxPrereqs.h"
    1011#include "core/CoreIncludes.h"
     
    1718
    1819enum MoveType { ATTACK, MOVE, SET_TROOPS, SET_TROOPS_INITIAL };
     20enum GameStagexyz { CHOOSE_PROVINCE_STAGE, REINFORCEMENT_STAGE, ATTACK_STAGE, MOVE_STAGE };
    1921
    2022
     
    2224namespace orxonox
    2325{
    24     class WagnisPlayer : public HumanPlayer
     26    class WagnisPlayer : public HumanPlayer, public Tickable
    2527    {
    2628    public:
    2729        WagnisPlayer(Context*);
    2830        virtual ~WagnisPlayer();
     31        void tick(float);
    2932
    3033        void playerTurn();
     
    3538        std::string toString();
    3639
    37     private:
     40
     41
     42        GameStagexyz gamestage;
     43        bool province_selection_changed;
     44        bool is_active;
    3845        int Player_ID;
    3946        WagnisGameboard* gameBoard;
    40         WagnisProvince* origin;
    41         WagnisProvince* target;
     47        WagnisProvince* origin_province;
     48        WagnisProvince* target_province;
    4249        bool isNeighbour(WagnisProvince*,WagnisProvince*);
    4350        bool existPath(WagnisProvince*,WagnisProvince*);
Note: See TracChangeset for help on using the changeset viewer.