Changeset 6693 in orxonox.OLD for branches/network/src/world_entities/weapons/weapon_manager.h
- Timestamp:
- Jan 25, 2006, 2:19:46 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/world_entities/weapons/weapon_manager.h
r6561 r6693 17 17 #include "crosshair.h" 18 18 #include "weapon.h" 19 20 #include "count_pointer.h" 21 #include "ammo_container.h" 19 22 20 23 // FORWARD DECLARATION … … 71 74 PNode* getParent() const { return this->parent; }; 72 75 73 bool addWeapon(Weapon* weapon);74 76 bool addWeapon(Weapon* weapon, int configID = -1, int slotID = -1); 75 77 void removeWeapon(Weapon* weapon, int configID = -1); 78 76 79 Weapon* getWeapon(int slotID) const { return (slotID >= 0 && slotID < this->slotCount)? this->currentSlotConfig[slotID].nextWeapon: NULL; }; 77 80 … … 82 85 void previousWeaponConfig(); 83 86 void changeWeaponConfig(int weaponConfig); 87 88 float addAmmunition(ClassID projectileType, float ammo); 89 84 90 85 91 /** @returns a fixed target namely the Crosshair's 3D position */ … … 97 103 // private: 98 104 int getNextFreeSlot(int configID, long capability = WTYPE_ALL); 105 CountPointer<AmmoContainer>& getAmmoContainer(ClassID projectileType); 99 106 100 107 private: … … 112 119 Crosshair* crosshair; //!< an aim. 113 120 tAnimation<Crosshair>* crossHairSizeAnim; //!< An animation for the crosshair (scaling) 121 122 std::vector<CountPointer<AmmoContainer> > ammo; //!< Containers 114 123 }; 115 124
Note: See TracChangeset
for help on using the changeset viewer.