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
|
Rev | Line | |
---|
[12049] | 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" |
---|
[12051] | 12 | #include "worldentities/MovableEntity.h" |
---|
[12049] | 13 | #include <vector> |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | namespace orxonox |
---|
| 17 | { |
---|
[12051] | 18 | class WagnisProvince : public MovableEntity |
---|
[12049] | 19 | { |
---|
| 20 | public: |
---|
| 21 | WagnisProvince(Context*); |
---|
| 22 | virtual ~WagnisProvince(); |
---|
[12051] | 23 | virtual void XMLPort(Element&,XMLPort::Mode); |
---|
[12049] | 24 | |
---|
| 25 | void setOwner_ID(int); |
---|
| 26 | void setTroops(int); |
---|
| 27 | void setID(int); |
---|
| 28 | void setContinent(int); |
---|
| 29 | |
---|
[12051] | 30 | int getOwner_ID() const; |
---|
| 31 | int getTroops() const; |
---|
| 32 | int getID() const; |
---|
| 33 | int getContinent() const; |
---|
[12049] | 34 | |
---|
[12051] | 35 | void addNeighbor(WagnisProvince*); |
---|
| 36 | |
---|
[12049] | 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.