Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/modules/wagnis/WagnisGameboard.h @ 12258

Last change on this file since 12258 was 12170, checked in by stadlero, 6 years ago

Reinforcements counter works

File size: 1.0 KB
Line 
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"
17#include "worldentities/StaticEntity.h"
18#include <string>
19#include <vector>
20
21
22namespace orxonox
23{
24    class WagnisGameboard : public StaticEntity
25    {
26    public:
27        WagnisGameboard(Context*);
28        virtual ~WagnisGameboard();
29
30        //XML
31        virtual void XMLPort(Element&,XMLPort::Mode);
32        void addProvince(WagnisProvince*);
33        WagnisProvince* getProvince(unsigned int) const;
34        void setConnections_string(const std::string&);
35        std::string getConnections_string() const;
36        //XML end
37       
38        void initializeNeighbors();
39        void initializeContinents();
40
41
42
43        std::string connections_string;
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
Note: See TracBrowser for help on using the repository browser.