Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 15, 2005, 2:14:53 AM (18 years ago)
Author:
bensch
Message:

orxonox/branches/objectmanager: all the WorldEntities regigister/unregister ath the ObjectManager as they should

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/objectmanager/src/world_entities/weapons/weapon_manager.cc

    r6074 r6123  
    3535 * @param number of weapon slots of the model/ship <= 8 (limitied)
    3636 */
    37 WeaponManager::WeaponManager(PNode* parent)
     37WeaponManager::WeaponManager(WorldEntity* parent)
    3838{
    3939  this->init();
     
    155155 * a PNode.
    156156 */
    157 void WeaponManager::setParent(PNode* parent)
    158 {
    159   if (parent == NULL)
    160     parent = PNode::getNullParent();
     157void WeaponManager::setParent(WorldEntity* parent)
     158{
    161159  this->parent = parent;
    162160  if (this->parent != NULL)
     
    246244  //! @todo check if the weapon is already assigned to another config in another slot
    247245  this->configs[configID][slotID] = weapon;
     246  weapon->toList(parent->getOMListNumber());
    248247  if (this->parent != NULL)
    249     weapon->setParent(parent);
     248    this->parent->addChild(weapon);
    250249  PRINTF(3)("Added a new Weapon to the WeaponManager: config %i/ slot %i\n", configID, slotID);
    251250}
Note: See TracChangeset for help on using the changeset viewer.