- Timestamp:
- Nov 14, 2018, 10:30:44 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/wagnis_HS18/src/modules/wagnis/WagnisProvince.cc
r12072 r12102 2 2 #include "core/CoreIncludes.h" 3 3 #include "BulletDynamics/Dynamics/btRigidBody.h" 4 #include "worldentities/StaticEntity.h" 4 5 #include <vector> 5 6 … … 16 17 this->continent = -1; 17 18 this->neighbors = std::vector<WagnisProvince*>(); 19 this->markerBillboard = nullptr; 18 20 } 19 21 //Destructor … … 26 28 SUPER(WagnisProvince, XMLPort, xmlelement, mode); 27 29 30 XMLPortObject(WagnisProvince, Billboard, "MarkerBillboard", addMarkerBillboard, getMarkerBillboard, xmlelement, mode); 28 31 XMLPortParam(WagnisProvince, "ID", setID, getID, xmlelement, mode); 29 32 XMLPortParam(WagnisProvince, "continent", setContinent, getContinent, xmlelement, mode); 33 } 34 35 void WagnisProvince::addMarkerBillboard(Billboard* billi){ 36 this->markerBillboard = billi; 37 attach(billi); 38 } 39 Billboard* WagnisProvince::getMarkerBillboard(unsigned int i) const{ 40 if(i != 0) return nullptr; 41 return this->markerBillboard; 30 42 } 31 43
Note: See TracChangeset
for help on using the changeset viewer.