Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/wagnis_HS18/src/modules/wagnis/WagnisPlayer.h @ 12130

Last change on this file since 12130 was 12130, checked in by stadlero, 5 years ago

changed gametype from Deathmatch to Wagnis in Wagnis.oxw + some wip in Wagnis.cc

File size: 1.2 KB
Line 
1
2
3
4
5
6#ifndef Wagnis_Player_h
7#define Wagnis_Player_h
8
9#include "WagnisPrereqs.h"
10#include "Wagnis.h"
11#include "OrxonoxPrereqs.h"
12#include "core/CoreIncludes.h"
13#include "core/XMLPort.h"
14#include "WagnisProvince.h"
15#include "WagnisGameboard.h"
16#include <vector>
17#include <string>
18#include "infos/HumanPlayer.h"
19
20
21
22
23namespace orxonox
24{
25    class WagnisPlayer : public HumanPlayer, public Tickable
26    {
27    public:
28        WagnisPlayer(Context*);
29        virtual ~WagnisPlayer();
30        void tick(float);
31
32        void playerTurn();
33        bool checkMove(MoveType);
34        void setTroops(WagnisProvince*);
35        void attack(WagnisProvince*,WagnisProvince*);
36        void moveTroops(WagnisProvince*,WagnisProvince*);
37        std::string toString();
38
39
40
41        //void (Wagnis::*finishedStageCallback) (WagnisPlayer*);
42        Wagnis* master;
43        GameStage gameStage;
44        bool province_selection_changed;
45        bool is_active;
46        int Player_ID;
47        WagnisGameboard* gameBoard;
48        WagnisProvince* origin_province;
49        WagnisProvince* target_province;
50        bool isNeighbour(WagnisProvince*, WagnisProvince*);
51        bool existPath(WagnisProvince*, WagnisProvince*);
52    };
53}
54
55
56#endif
Note: See TracBrowser for help on using the repository browser.