Changeset 6442 in orxonox.OLD for trunk/src/world_entities/weapons
- Timestamp:
- Jan 8, 2006, 5:19:39 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/weapon_manager.h
r6142 r6442 54 54 55 55 void setSlotCount(unsigned int slotCount); 56 unsigned int getSlotCount() const { return this->slotCount; }; 56 57 // setting up the WeaponManager with the following functions 57 58 void setSlotPosition(int slot, const Vector& position); … … 69 70 void addWeapon(Weapon* weapon, int configID = -1, int slotID = -1); 70 71 void removeWeapon(Weapon* weapon, int configID = -1); 72 Weapon* getWeapon(int slotID) const { return (slotID >= 0 && slotID < this->slotCount)? this->currentSlotConfig[slotID].currentWeapon: NULL; }; 71 73 72 74 // FIXME ::
Note: See TracChangeset
for help on using the changeset viewer.