source:
code/branches/wagnis_HS18/src/modules/wagnis/WagnisGameboard.h
@
12234
Last change on this file since 12234 was 12170, checked in by stadlero, 6 years ago | |
---|---|
File size: 1.0 KB |
Rev | Line | |
---|---|---|
[12049] | 1 | |
2 | ||
3 | ||
4 | ||
5 | ||
6 | ||
7 | ||
8 | #ifndef Wagnis_Gameboard_h | |
9 | #define Wagnis_Gameboard_h | |
10 | ||
[12124] | 11 | #include "WagnisPrereqs.h" |
[12049] | 12 | #include "WagnisProvince.h" |
13 | ||
14 | #include "OrxonoxPrereqs.h" | |
15 | #include "core/CoreIncludes.h" | |
16 | #include "core/XMLPort.h" | |
17 | #include "worldentities/StaticEntity.h" | |
[12072] | 18 | #include <string> |
[12049] | 19 | #include <vector> |
20 | ||
21 | ||
22 | namespace orxonox | |
23 | { | |
24 | class WagnisGameboard : public StaticEntity | |
25 | { | |
26 | public: | |
27 | WagnisGameboard(Context*); | |
28 | virtual ~WagnisGameboard(); | |
[12050] | 29 | |
30 | //XML | |
[12049] | 31 | virtual void XMLPort(Element&,XMLPort::Mode); |
[12050] | 32 | void addProvince(WagnisProvince*); |
33 | WagnisProvince* getProvince(unsigned int) const; | |
[12072] | 34 | void setConnections_string(const std::string&); |
35 | std::string getConnections_string() const; | |
[12119] | 36 | //XML end |
37 | ||
[12124] | 38 | void initializeNeighbors(); |
[12170] | 39 | void initializeContinents(); |
[12072] | 40 | |
[12114] | 41 | |
[12124] | 42 | |
[12119] | 43 | std::string connections_string; |
[12049] | 44 | std::vector<WagnisProvince*> provs; |
[12170] | 45 | std::vector<std::vector<WagnisProvince*>*> continents; |
[12072] | 46 | int parse_int(std::string,unsigned int); |
[12049] | 47 | }; |
48 | } | |
49 | ||
50 | ||
51 | #endif |
Note: See TracBrowser
for help on using the repository browser.