Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/wagnis_HS18/src/modules/wagnis/WagnisGameboard.h @ 12103

Last change on this file since 12103 was 12077, checked in by kunzro, 6 years ago

gameboard string fixed

File size: 924 bytes
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
21namespace 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    private:
41        std::vector<WagnisProvince*> provs;
42       
43        int parse_int(std::string,unsigned int);
44    };
45}
46
47
48#endif
Note: See TracBrowser for help on using the repository browser.