Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7209 in orxonox.OLD for branches/std/src/world_entities


Ignore:
Timestamp:
Mar 10, 2006, 2:20:08 AM (19 years ago)
Author:
bensch
Message:

orxonox/std: even less evil

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  
    9292}
    9393
    94 void WeaponPowerUp::setWeaponClass(const char* name)
     94void WeaponPowerUp::setWeaponClass(const std::string& name)
    9595{
    9696  this->weapon = dynamic_cast<Weapon*>(Factory::fabricate(name));
    9797  if (this->weapon == NULL)
    9898  {
    99     PRINTF(1)("Unable to load Weapon. %s\n", name);
     99    PRINTF(1)("Unable to load Weapon. %s\n", name.c_str());
    100100    this->weapon = dynamic_cast<Weapon*>(Factory::fabricate("Turret"));
    101101  }
  • branches/std/src/world_entities/power_ups/weapon_power_up.h

    r7065 r7209  
    2222
    2323  Weapon* getWeapon();
    24   void setWeaponClass(const char* name);
     24  void setWeaponClass(const std::string& name);
    2525
    2626  virtual int writeBytes(const byte* data, int length, int sender);
Note: See TracChangeset for help on using the changeset viewer.