Changeset 6669 in orxonox.OLD for trunk/src/world_entities/weapons/weapon_manager.h
- Timestamp:
- Jan 24, 2006, 2:26:15 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/weapon_manager.h
r6561 r6669 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 … … 72 75 73 76 bool addWeapon(Weapon* weapon); 74 bool addWeapon(Weapon* weapon, int configID = -1, int slotID = -1);77 bool addWeapon(Weapon* weapon, int configID, int slotID = -1); 75 78 void removeWeapon(Weapon* weapon, int configID = -1); 79 76 80 Weapon* getWeapon(int slotID) const { return (slotID >= 0 && slotID < this->slotCount)? this->currentSlotConfig[slotID].nextWeapon: NULL; }; 77 81 … … 82 86 void previousWeaponConfig(); 83 87 void changeWeaponConfig(int weaponConfig); 88 89 float addAmmunition(ClassID projectileType, float ammo); 90 84 91 85 92 /** @returns a fixed target namely the Crosshair's 3D position */ … … 97 104 // private: 98 105 int getNextFreeSlot(int configID, long capability = WTYPE_ALL); 106 CountPointer<AmmoContainer>& getAmmoContainer(ClassID projectileType); 99 107 100 108 private: … … 112 120 Crosshair* crosshair; //!< an aim. 113 121 tAnimation<Crosshair>* crossHairSizeAnim; //!< An animation for the crosshair (scaling) 122 123 std::vector<CountPointer<AmmoContainer> > ammo; //!< Containers 114 124 }; 115 125
Note: See TracChangeset
for help on using the changeset viewer.