Changeset 6107 in orxonox.OLD for branches/powerups/src/world_entities/power_ups/weapon_power_up.cc
- Timestamp:
- Dec 14, 2005, 3:15:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/powerups/src/world_entities/power_ups/weapon_power_up.cc
r6040 r6107 61 61 { 62 62 this->weaponXML = elem; 63 createWeapon();63 respawn(); 64 64 } 65 65 else … … 74 74 } 75 75 76 void WeaponPowerUp:: createWeapon()76 void WeaponPowerUp::respawn() 77 77 { 78 78 this->weapon = dynamic_cast<Weapon*>((weaponXML == NULL) … … 85 85 this->weapon = dynamic_cast<Weapon*>(Factory::fabricate(name)); 86 86 } 87 88 void WeaponPowerUp::hide()89 {90 PowerUp::hide();91 this->createWeapon();92 }
Note: See TracChangeset
for help on using the changeset viewer.