Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

XML Funkion von Province-Klasse hinzugefuegt

File size: 862 bytes
Line 
1
2
3
4
5
6#ifndef Wagnis_Province_h
7#define Wagnis_Province_h
8
9#include "OrxonoxPrereqs.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 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.