source:
code/branches/wagnis_HS18/src/modules/wagnis/WagnisProvince.h
@
12080
Last change on this file since 12080 was 12067, checked in by kunzro, 6 years ago | |
---|---|
File size: 875 bytes |
Rev | Line | |
---|---|---|
[12049] | 1 | |
2 | ||
3 | ||
4 | ||
5 | ||
6 | #ifndef Wagnis_Province_h | |
7 | #define Wagnis_Province_h | |
8 | ||
[12067] | 9 | #include "WagnisPrereqs.h" |
[12049] | 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 | { | |
[12067] | 18 | class _WagnisExport 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.