Line | |
---|
1 | |
---|
2 | |
---|
3 | |
---|
4 | |
---|
5 | |
---|
6 | |
---|
7 | |
---|
8 | #ifndef Wagnis_Gameboard_h |
---|
9 | #define Wagnis_Gameboard_h |
---|
10 | |
---|
11 | #include "WagnisProvince.h" |
---|
12 | |
---|
13 | #include "OrxonoxPrereqs.h" |
---|
14 | #include "core/CoreIncludes.h" |
---|
15 | #include "core/XMLPort.h" |
---|
16 | #include "worldentities/StaticEntity.h" |
---|
17 | #include <string> |
---|
18 | #include <vector> |
---|
19 | |
---|
20 | |
---|
21 | namespace orxonox |
---|
22 | { |
---|
23 | class WagnisGameboard : public StaticEntity |
---|
24 | { |
---|
25 | public: |
---|
26 | WagnisGameboard(Context*); |
---|
27 | virtual ~WagnisGameboard(); |
---|
28 | |
---|
29 | //XML |
---|
30 | virtual void XMLPort(Element&,XMLPort::Mode); |
---|
31 | void addProvince(WagnisProvince*); |
---|
32 | WagnisProvince* getProvince(unsigned int) const; |
---|
33 | void setConnections_string(const std::string&); |
---|
34 | std::string getConnections_string() const; |
---|
35 | // |
---|
36 | std::string connections_string; |
---|
37 | void initializeNeighbors(std::string); |
---|
38 | |
---|
39 | |
---|
40 | std::vector<WagnisProvince*> provs; |
---|
41 | int parse_int(std::string,unsigned int); |
---|
42 | }; |
---|
43 | } |
---|
44 | |
---|
45 | |
---|
46 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.