Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 28, 2006, 12:17:53 PM (19 years ago)
Author:
bensch
Message:

deleting weapons should be fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/weapon_manager.h

    r6981 r8844  
    7070    long getSlotCapability(int slot) const { return this->currentSlotConfig[slot].capability; };
    7171
    72     void setParent(WorldEntity* parent);
     72    void setParentEntity(WorldEntity* parent);
     73    WorldEntity* getParentEntity() const { return this->parentEntity; };
     74
     75    void setParentNode(PNode* node);
    7376    /** @returns the Parent (carrier) of this WeaponManager */
    74     PNode* getParent() const { return this->parent; };
     77    PNode* getParentNode() const { return this->parentNode; };
    7578
    7679    bool addWeapon(Weapon* weapon, int configID = -1, int slotID = -1);
     
    107110
    108111  private:
    109     WorldEntity*            parent;                                   //!< The parent, this WeaponManager is connected to.
     112    WorldEntity*            parentEntity;                             //!< The parent, this WeaponManager is connected to.
     113    PNode*                  parentNode;                               //!< The parented Node the WeaponManager is connected to. (by default == parentEntity).
    110114
    111115    int                     slotCount;                                //!< number of weapon slots the ship has.
Note: See TracChangeset for help on using the changeset viewer.