- Timestamp:
- Oct 24, 2018, 11:22:05 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/wagnis_HS18/src/modules/wagnis/WagnisProvince.cc
r12050 r12051 15 15 16 16 //Constructor 17 WagnisProvince::WagnisProvince(Context* context) : StaticEntity(context){17 WagnisProvince::WagnisProvince(Context* context) : MovableEntity(context){ 18 18 RegisterObject(WagnisProvince); 19 19 this->owner_ID = 0; … … 28 28 } 29 29 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 30 36 31 37 … … 33 39 //SET() 34 40 35 //set Position36 void WagnisProvince::setPosition(const Vector3& position){37 //TODO38 }39 //set Orientation40 void WagnisProvince::setOrientation(const Quaternion& orientation){41 //TODO42 }43 41 //set owner_ID 44 42 void WagnisProvince::setOwner_ID(int owner){ … … 62 60 63 61 //get owner_ID 64 int WagnisProvince::getOwner_ID() {62 int WagnisProvince::getOwner_ID() const{ 65 63 return this->owner_ID; 66 64 } 67 65 //get troops 68 int WagnisProvince::getTroops() {66 int WagnisProvince::getTroops() const{ 69 67 return this->troops; 70 68 } 71 69 //get ID 72 int WagnisProvince::getID() {70 int WagnisProvince::getID() const{ 73 71 return this->ID; 74 72 } 75 73 //get continent 76 int WagnisProvince::getContinent() {74 int WagnisProvince::getContinent() const{ 77 75 return this-> continent; 78 76 }
Note: See TracChangeset
for help on using the changeset viewer.