Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 12105 was 12105, checked in by samuelbl, 6 years ago

Player update

File size: 1012 bytes
RevLine 
[12069]1
2
3
4
5
6#ifndef Wagnis_Player_h
7#define Wagnis_Player_h
8
9#include "OrxonoxPrereqs.h"
10#include "core/CoreIncludes.h"
11#include "core/XMLPort.h"
[12080]12#include "WagnisProvince.h"
13#include "WagnisGameboard.h"
[12069]14#include <vector>
15#include <string>
16
[12100]17enum MoveType { ATTACK, MOVE, SET_TROOPS, SET_TROOPS_INITIAL };
[12069]18
19
[12080]20
[12069]21namespace orxonox
22{
[12080]23    class WagnisPlayer : public BaseClass
[12069]24    {
25    public:
[12080]26        WagnisPlayer(Context*,WagnisGameboard*);
[12069]27        virtual ~WagnisPlayer();
28
[12100]29        void playerTurn();
[12080]30        bool checkMove(WagnisProvince*,WagnisProvince*,MoveType);
31        void setTroops(WagnisProvince*);
32        void attack(WagnisProvince*,WagnisProvince*);
33        void moveTroops(WagnisProvince*,WagnisProvince*);
[12069]34        std::string toString();
35
36    private:
37        int Player_ID;
[12080]38        WagnisGameboard* gameBoard;
39        WagnisProvince* origin;
40        WagnisProvince* target;
[12100]41        bool isNeighbour(WagnisProvince*,WagnisProvince*);
[12105]42        bool existPath(WagnisProvince*,WagnisProvince*);
[12069]43    };
44}
45
46
47#endif
Note: See TracBrowser for help on using the repository browser.