Changeset 7209 in orxonox.OLD for branches/std/src/world_entities
- Timestamp:
- Mar 10, 2006, 2:20:08 AM (19 years ago)
- Location:
- branches/std/src/world_entities/power_ups
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/world_entities/power_ups/weapon_power_up.cc
r7193 r7209 92 92 } 93 93 94 void WeaponPowerUp::setWeaponClass(const char*name)94 void WeaponPowerUp::setWeaponClass(const std::string& name) 95 95 { 96 96 this->weapon = dynamic_cast<Weapon*>(Factory::fabricate(name)); 97 97 if (this->weapon == NULL) 98 98 { 99 PRINTF(1)("Unable to load Weapon. %s\n", name );99 PRINTF(1)("Unable to load Weapon. %s\n", name.c_str()); 100 100 this->weapon = dynamic_cast<Weapon*>(Factory::fabricate("Turret")); 101 101 } -
branches/std/src/world_entities/power_ups/weapon_power_up.h
r7065 r7209 22 22 23 23 Weapon* getWeapon(); 24 void setWeaponClass(const char*name);24 void setWeaponClass(const std::string& name); 25 25 26 26 virtual int writeBytes(const byte* data, int length, int sender);
Note: See TracChangeset
for help on using the changeset viewer.