Orxonox  0.0.5 Codename: Arcturus
WagnisPlayer.h
Go to the documentation of this file.
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 #include <algorithm>
20 #include <iostream>
21 
22 
23 
24 
25 
26 namespace orxonox
27 {
28  class WagnisPlayer : public HumanPlayer, public Tickable
29  {
30  public:
32  virtual ~WagnisPlayer();
33  void tick(float);
34 
35  void playerTurn();
36  bool checkMove(MoveType);
41  void setActive(bool);
42  bool isActive() const;
44 
45 
46 
50  int Player_ID;
55  std::vector<int> AlreadyChecked;
58  bool contains(std::vector<int>, int);
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);
64 
65  private:
66  bool is_active;
67  };
68 }
69 
70 
71 #endif
virtual ~WagnisPlayer()
Definition: WagnisPlayer.cc:27
int Player_ID
Definition: WagnisPlayer.h:50
Definition: Wagnis.h:60
GameStage
Definition: WagnisPrereqs.h:74
int best3(int, int, int)
Definition: WagnisPlayer.cc:317
bool is_active
Definition: WagnisPlayer.h:66
int best2(int, int)
Definition: WagnisPlayer.cc:327
bool contains(std::vector< int >, int)
Definition: WagnisPlayer.cc:353
void moveTroops(WagnisProvince *, WagnisProvince *)
void setTroops(WagnisProvince *)
::std::string string
Definition: gtest-port.h:756
Definition: WagnisPlayer.h:28
Declaration of the XMLPort helper classes and macros.
Shared library macros, enums, constants and forward declarations for the questsystem module ...
Definition: HumanPlayer.h:39
bool checkMove(MoveType)
Definition: WagnisPlayer.cc:234
bool existPath(WagnisProvince *, WagnisProvince *)
Definition: WagnisPlayer.cc:296
Definition: WagnisProvince.h:20
MoveType
Definition: WagnisPrereqs.h:75
WagnisPlayer(Context *)
Definition: WagnisPlayer.cc:16
int dice()
Definition: WagnisPlayer.cc:312
bool province_selection_changed
Definition: WagnisPlayer.h:49
int second3(int, int, int)
Definition: WagnisPlayer.cc:335
Definition: WagnisGameboard.h:24
WagnisProvince * target_province
Definition: WagnisPlayer.h:53
void attack(WagnisProvince *, WagnisProvince *)
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Shared library macros, enums, constants and forward declarations for the orxonox library ...
int reinforcements
Definition: WagnisPlayer.h:54
bool isActive() const
Definition: WagnisPlayer.cc:366
GameStage gameStage
Definition: WagnisPlayer.h:48
Definition: Context.h:45
Defines several very important macros used to register objects, register classes, and to work with id...
std::string toString()
Definition: WagnisPlayer.cc:275
void setActive(bool)
Definition: WagnisPlayer.cc:361
std::vector< int > AlreadyChecked
Definition: WagnisPlayer.h:55
WagnisProvince * origin_province
Definition: WagnisPlayer.h:52
void resetProvinceSelection()
Definition: WagnisPlayer.cc:371
Wagnis * master
Definition: WagnisPlayer.h:47
int second2(int, int)
Definition: WagnisPlayer.cc:345
The Tickable interface provides a tick(dt) function, that gets called every frame.
Definition: Tickable.h:52
bool isNeighbour(WagnisProvince *, WagnisProvince *)
Definition: WagnisPlayer.cc:283
WagnisGameboard * gameBoard
Definition: WagnisPlayer.h:51
void tick(float)
Gets called every frame.
Definition: WagnisPlayer.cc:31