Changeset 10698 in orxonox.OLD for trunk/src/world_entities/weapons/weapon_manager.h
- Timestamp:
- Jun 14, 2007, 5:33:43 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/weapon_manager.h
r10437 r10698 60 60 // setting up the WeaponManager with the following functions 61 61 void setSlotPosition(int slot, const Vector& position, PNode* parent = NULL); 62 // inline void setSlotPosition(float slot, float x, float y,float z) {setSlotPosition((int)slot, Vector(x,y,z));}; 62 63 void setSlotDirection(int slot, const Quaternion& rotation); 63 64 /** @param slot the slot to get the relative position from @returns the relative position of the Carrier to the Slot */ 64 65 const Vector& getSlotPosition(int slot) const; 65 void setSlotCapability(int slot, long slotCapability);66 void setSlotCapability(int slot, unsigned long slotCapability); 66 67 /** @param slot the slot to get the capabilities from @returns the capabilies */ 67 68 long getSlotCapability(int slot) const; … … 76 77 bool addWeapon(Weapon* weapon, int configID = -1, int slotID = -1); 77 78 void removeWeapon(Weapon* weapon, int configID = -1); 79 80 inline void createWeaponSlot(int slot, float x, float y, float z, long capability) { 81 this->setSlotPosition(slot, Vector( x, y, z)); 82 this->setSlotCapability(slot, capability); }; 83 84 inline void addWeaponToSlot(int config, int slot, const std::string& weaponName){ 85 this->addWeapon( Weapon::createWeapon( weaponName ), config, slot); }; 86 78 87 79 88 Weapon* getWeapon(int slotID) const;
Note: See TracChangeset
for help on using the changeset viewer.