Changeset 10440 in orxonox.OLD for trunk/src/world_entities/weapons
- Timestamp:
- Jan 28, 2007, 2:09:09 PM (18 years ago)
- Location:
- trunk/src/world_entities/weapons
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/weapon_slot.cc
r10437 r10440 19 19 #include "weapon_slot.h" 20 20 #include "util/loading/factory.h" 21 #include "util/loading/load_param.h" 21 22 22 23 … … 27 28 { 28 29 this->registerObject(this, WeaponSlot::_objectList); 29 30 30 } 31 31 … … 34 34 this->registerObject(this, WeaponSlot::_objectList); 35 35 36 if( root != NULL) 37 this->loadParams( root); 36 38 } 37 39 … … 39 41 WeaponSlot::~WeaponSlot() 40 42 {} 43 44 45 46 void WeaponSlot::loadParams(const TiXmlElement* root) 47 { 48 PNode::loadParams( root); 49 50 // now check for the orx class to create 51 LoadParam(root, "WeaponClass", this, WeaponSlot, setWeaponClass) 52 .describe("Sets the class this mount points should host"); 53 } 54 55 56 57 58 void WeaponSlot::setWeaponClass() 59 { 60 61 } 62 -
trunk/src/world_entities/weapons/weapon_slot.h
r10438 r10440 23 23 virtual ~WeaponSlot(); 24 24 25 virtual void loadParams(const TiXmlElement* root); 26 27 void setWeaponClass(); 25 28 26 29 long getCapability() { return this->capability; }
Note: See TracChangeset
for help on using the changeset viewer.