Orxonox  0.0.5 Codename: Arcturus
WagnisGameboard.h
Go to the documentation of this file.
1 
2 
3 
4 
5 
6 
7 
8 #ifndef Wagnis_Gameboard_h
9 #define Wagnis_Gameboard_h
10 
11 #include "WagnisPrereqs.h"
12 #include "WagnisProvince.h"
13 
14 #include "OrxonoxPrereqs.h"
15 #include "core/CoreIncludes.h"
16 #include "core/XMLPort.h"
18 #include <string>
19 #include <vector>
20 
21 
22 namespace orxonox
23 {
25  {
26  public:
28  virtual ~WagnisGameboard();
29 
30  //XML
31  virtual void XMLPort(Element&,XMLPort::Mode);
33  WagnisProvince* getProvince(unsigned int) const;
36  //XML end
37 
38  void initializeNeighbors();
39  void initializeContinents();
40 
41 
42 
44  std::vector<WagnisProvince*> provs;
45  std::vector<std::vector<WagnisProvince*>*> continents;
46  int parse_int(std::string,unsigned int);
47  };
48 }
49 
50 
51 #endif
void addProvince(WagnisProvince *)
Definition: WagnisGameboard.cc:37
The StaticEntity is the simplest derivative of the orxonox::WorldEntity class.
Definition: StaticEntity.h:50
virtual ~WagnisGameboard()
Definition: WagnisGameboard.cc:16
::std::string string
Definition: gtest-port.h:756
Declaration of the XMLPort helper classes and macros.
Shared library macros, enums, constants and forward declarations for the questsystem module ...
std::string getConnections_string() const
Definition: WagnisGameboard.cc:52
Definition: WagnisProvince.h:20
Definition: WagnisGameboard.h:24
WagnisGameboard(Context *)
Definition: WagnisGameboard.cc:12
std::vector< std::vector< WagnisProvince * > * > continents
Definition: WagnisGameboard.h:45
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Mode
Definition: CorePrereqs.h:102
Shared library macros, enums, constants and forward declarations for the orxonox library ...
Definition: Context.h:45
Defines several very important macros used to register objects, register classes, and to work with id...
void setConnections_string(const std::string &)
Definition: WagnisGameboard.cc:48
void initializeNeighbors()
Definition: WagnisGameboard.cc:64
int parse_int(std::string, unsigned int)
Definition: WagnisGameboard.cc:133
std::vector< WagnisProvince * > provs
Definition: WagnisGameboard.h:44
std::string connections_string
Definition: WagnisGameboard.h:43
WagnisProvince * getProvince(unsigned int) const
Definition: WagnisGameboard.cc:43
virtual void XMLPort(Element &, XMLPort::Mode)
XML loading and saving.
Definition: WagnisGameboard.cc:22
void initializeContinents()
Definition: WagnisGameboard.cc:113