Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 12159 was 12159, checked in by kunzro, 5 years ago

highlight and dehighlight function added for province and WagnisHUD info adjusts colour

File size: 1022 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/pawns/Pawn.h"
13#include "tools/OgreBulletUtils.h"
14#include <vector>
15#include <OgreColourValue.h>
16#include "tools/ToolsPrereqs.h"
17
18
19namespace orxonox
20{
21    class _WagnisExport WagnisProvince : public Pawn
22    {
23    public:
24        WagnisProvince(Context*);
25        virtual ~WagnisProvince();
26
27
28        virtual void XMLPort(Element&,XMLPort::Mode);
29
30        void setOwner_ID(int);
31        void setTroops(int);
32        void setID(int);
33        void setContinent(int);
34        void highlight();
35        void dehighlight();
36
37        int getOwner_ID() const;
38        int getTroops() const;
39        int getID() const;
40        int getContinent() const;
41
42        void addNeighbor(WagnisProvince*);
43
44
45        std::vector<WagnisProvince*> neighbors;
46        int ID;
47        int continent;
48
49        private:
50        int troops;
51        int owner_ID;
52
53    };
54}
55
56
57#endif
Note: See TracBrowser for help on using the repository browser.