Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 24, 2018, 11:22:05 AM (7 years ago)
Author:
stadlero
Message:

XML Funkion von Province-Klasse hinzugefuegt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/wagnis_HS18/src/modules/wagnis/WagnisProvince.h

    r12049 r12051  
    1010#include "core/CoreIncludes.h"
    1111#include "core/XMLPort.h"
    12 #include "worldentities/StaticEntity.h"
     12#include "worldentities/MovableEntity.h"
    1313#include <vector>
    1414
     
    1616namespace orxonox
    1717{
    18     class WagnisProvince : public StaticEntity
     18    class WagnisProvince : public MovableEntity
    1919    {
    2020    public:
    2121        WagnisProvince(Context*);
    2222        virtual ~WagnisProvince();
    23         void setPosition(const Vector3&) override;
    24         void setOrientation(const Quaternion&) override;
    25         void addNeighbor(WagnisProvince*);
     23        virtual void XMLPort(Element&,XMLPort::Mode);
    2624
    2725        void setOwner_ID(int);
     
    3028        void setContinent(int);
    3129
    32         int getOwner_ID();
    33         int getTroops();
    34         int getID();
    35         int getContinent();
     30        int getOwner_ID() const;
     31        int getTroops() const;
     32        int getID() const;
     33        int getContinent() const;
    3634
    37    
     35        void addNeighbor(WagnisProvince*);
     36
    3837    private:
    3938        int owner_ID;
     
    4241        int continent;
    4342        std::vector<WagnisProvince*> neighbors;
    44         Vector3 position;
    45         Quaternion orientation;
    4643    };
    4744}
Note: See TracChangeset for help on using the changeset viewer.