Changeset 8844 in orxonox.OLD for trunk/src/world_entities/weapons/weapon_manager.h
- Timestamp:
- Jun 28, 2006, 12:17:53 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/weapon_manager.h
r6981 r8844 70 70 long getSlotCapability(int slot) const { return this->currentSlotConfig[slot].capability; }; 71 71 72 void setParent(WorldEntity* parent); 72 void setParentEntity(WorldEntity* parent); 73 WorldEntity* getParentEntity() const { return this->parentEntity; }; 74 75 void setParentNode(PNode* node); 73 76 /** @returns the Parent (carrier) of this WeaponManager */ 74 PNode* getParent () const { return this->parent; };77 PNode* getParentNode() const { return this->parentNode; }; 75 78 76 79 bool addWeapon(Weapon* weapon, int configID = -1, int slotID = -1); … … 107 110 108 111 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). 110 114 111 115 int slotCount; //!< number of weapon slots the ship has.
Note: See TracChangeset
for help on using the changeset viewer.