Changeset 12102 for code/branches/wagnis_HS18
- Timestamp:
- Nov 14, 2018, 10:30:44 AM (6 years ago)
- Location:
- code/branches/wagnis_HS18/src/modules/wagnis
- Files:
-
- 2 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 -
code/branches/wagnis_HS18/src/modules/wagnis/WagnisProvince.h
r12067 r12102 11 11 #include "core/XMLPort.h" 12 12 #include "worldentities/MovableEntity.h" 13 #include "graphics/Billboard.h" 13 14 #include <vector> 14 15 … … 22 23 virtual ~WagnisProvince(); 23 24 virtual void XMLPort(Element&,XMLPort::Mode); 25 void addMarkerBillboard(Billboard*); 26 Billboard* getMarkerBillboard(unsigned int) const; 24 27 25 28 void setOwner_ID(int); … … 41 44 int continent; 42 45 std::vector<WagnisProvince*> neighbors; 46 Billboard* markerBillboard; 43 47 }; 44 48 }
Note: See TracChangeset
for help on using the changeset viewer.