Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 24, 2018, 11:22:05 AM (6 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.cc

    r12050 r12051  
    1515
    1616    //Constructor
    17     WagnisProvince::WagnisProvince(Context* context) : StaticEntity(context){
     17    WagnisProvince::WagnisProvince(Context* context) : MovableEntity(context){
    1818        RegisterObject(WagnisProvince);
    1919        this->owner_ID = 0;
     
    2828    }
    2929
     30    //XML Port
     31    void WagnisProvince::XMLPort(Element& xmlelement,XMLPort::Mode mode){
     32        XMLPortParam(WagnisProvince, "ID", setID, getID, xmlelement, mode);
     33        XMLPortParam(WagnisProvince, "continent", setContinent, getContinent, xmlelement, mode);
     34    }
     35
    3036
    3137
     
    3339    //SET()
    3440
    35     //set Position
    36     void WagnisProvince::setPosition(const Vector3& position){
    37         //TODO
    38     }
    39     //set Orientation
    40     void WagnisProvince::setOrientation(const Quaternion& orientation){
    41         //TODO
    42     }
    4341    //set owner_ID
    4442    void WagnisProvince::setOwner_ID(int owner){
     
    6260
    6361    //get owner_ID
    64     int WagnisProvince::getOwner_ID(){
     62    int WagnisProvince::getOwner_ID() const{
    6563        return this->owner_ID;
    6664    }
    6765    //get troops
    68     int WagnisProvince::getTroops(){
     66    int WagnisProvince::getTroops() const{
    6967        return this->troops;
    7068    }
    7169    //get ID
    72     int WagnisProvince::getID(){
     70    int WagnisProvince::getID() const{
    7371        return this->ID;
    7472    }
    7573    //get continent
    76     int WagnisProvince::getContinent(){
     74    int WagnisProvince::getContinent() const{
    7775        return this-> continent;
    7876    }
Note: See TracChangeset for help on using the changeset viewer.