Changeset 9869 in orxonox.OLD for trunk/src/world_entities/power_ups/weapon_power_up.cc
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/power_ups/weapon_power_up.cc
r9406 r9869 25 25 #include "util/loading/factory.h" 26 26 #include "util/loading/load_param.h" 27 #include "debug.h" 27 28 28 29 30 CREATE_FACTORY(WeaponPowerUp , CL_WEAPON_POWER_UP);29 #include "class_id_DEPRECATED.h" 30 ObjectListDefinitionID(WeaponPowerUp, CL_WEAPON_POWER_UP); 31 CREATE_FACTORY(WeaponPowerUp); 31 32 32 33 WeaponPowerUp::WeaponPowerUp(const TiXmlElement* root) : PowerUp(1.0, 1.0, 0.0) … … 45 46 void WeaponPowerUp::init() 46 47 { 47 this-> setClassID(CL_WEAPON_POWER_UP, "WeaponPowerUp");48 this->registerObject(this, WeaponPowerUp::_objectList); 48 49 this->loadPickupSound("sound/powerups/whats this2.wav"); 49 50 … … 87 88 { 88 89 this->weapon = dynamic_cast<Weapon*>((weaponXML == NULL) 89 ? Factory::fabricate( static_cast<ClassID>(this->weapon->getLeafClassID()))90 ? Factory::fabricate((this->weapon->getClassID())) 90 91 : Factory::fabricate((const TiXmlElement*)this->getXmlElem()->FirstChildElement("weapon"))); 91 92 this->model = this->weapon->getModel(0);
Note: See TracChangeset
for help on using the changeset viewer.