Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/wagnis_HS18/src/modules/wagnis/WagnisProvince.h @ 12100

Last change on this file since 12100 was 12067, checked in by kunzro, 6 years ago

XML and CMake updated, Gameboard is working

File size: 875 bytes
Line 
1
2
3
4
5
6#ifndef Wagnis_Province_h
7#define Wagnis_Province_h
8
9#include "WagnisPrereqs.h"
10#include "core/CoreIncludes.h"
11#include "core/XMLPort.h"
12#include "worldentities/MovableEntity.h"
13#include <vector>
14
15
16namespace orxonox
17{
18    class _WagnisExport WagnisProvince : public MovableEntity
19    {
20    public:
21        WagnisProvince(Context*);
22        virtual ~WagnisProvince();
23        virtual void XMLPort(Element&,XMLPort::Mode);
24
25        void setOwner_ID(int);
26        void setTroops(int);
27        void setID(int);
28        void setContinent(int);
29
30        int getOwner_ID() const;
31        int getTroops() const;
32        int getID() const;
33        int getContinent() const;
34
35        void addNeighbor(WagnisProvince*);
36
37    private:
38        int owner_ID;
39        int troops;
40        int ID;
41        int continent;
42        std::vector<WagnisProvince*> neighbors;
43    };
44}
45
46
47#endif
Note: See TracBrowser for help on using the repository browser.