Changeset 6578 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Jan 18, 2006, 3:55:23 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/playable.cc
r6568 r6578 54 54 this->weaponMan->addWeapon(weapon, configID, slotID); 55 55 56 if (this->currentPlayer != NULL) 56 this->weaponConfigChanged(); 57 } 58 59 void Playable::removeWeapon(Weapon* weapon) 60 { 61 this->weaponMan->removeWeapon(weapon); 62 57 63 this->weaponConfigChanged(); 58 64 } 59 65 60 void Playable::removeWeapon(Weapon* weapon) 61 { 62 this->weaponMan->removeWeapon(weapon); 63 64 if (this->currentPlayer != NULL) 66 void Playable::nextWeaponConfig() 67 { 68 this->weaponMan->nextWeaponConfig(); 65 69 this->weaponConfigChanged(); 66 70 } 67 71 68 void Playable::nextWeaponConfig() 69 { 70 this->weaponMan->nextWeaponConfig(); 71 if (this->currentPlayer != NULL) 72 void Playable::previousWeaponConfig() 73 { 74 this->weaponMan->previousWeaponConfig(); 72 75 this->weaponConfigChanged(); 73 76 } 74 77 75 void Playable::previousWeaponConfig()76 {77 this->weaponMan->previousWeaponConfig();78 if (this->currentPlayer != NULL)79 this->weaponConfigChanged();80 }81 82 78 void Playable::weaponConfigChanged() 83 79 { 84 this->currentPlayer->weaponConfigChanged(); 80 if (this->currentPlayer != NULL) 81 this->currentPlayer->weaponConfigChanged(); 85 82 } 86 83
Note: See TracChangeset
for help on using the changeset viewer.