Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6443 in orxonox.OLD for trunk/src/world_entities/playable.cc


Ignore:
Timestamp:
Jan 8, 2006, 5:44:04 PM (18 years ago)
Author:
bensch
Message:

huge pipeline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/playable.cc

    r6442 r6443  
    4444
    4545  }
     46}
     47
     48
     49void Playable::addWeapon(Weapon* weapon, int configID, int slotID)
     50{
     51  this->weaponMan->addWeapon(weapon, configID, slotID);
     52
     53  if (this->currentPlayer != NULL)
     54      this->currentPlayer->weaponConfigChanged();
     55}
     56
     57void Playable::removeWeapon(Weapon* weapon)
     58{
     59  this->weaponMan->removeWeapon(weapon);
     60
     61  if (this->currentPlayer != NULL)
     62    this->currentPlayer->weaponConfigChanged();
    4663}
    4764
Note: See TracChangeset for help on using the changeset viewer.