- Timestamp:
- Nov 27, 2015, 6:49:54 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/fabienHS15/src/orxonox/weaponsystem/Munition.h
r10794 r10878 97 97 98 98 bool canAddMagazines(unsigned int amount) const; 99 bool addMagazines(unsigned int amount); 99 /** 100 @brief Try to add magazines. 101 @param amount The amount of magazines tried to add. 102 @return The amount of magazines sucessfully added. 103 */ 104 unsigned int addMagazines(unsigned int amount); 100 105 101 106 bool canRemoveMagazines(unsigned int amount) const; … … 107 112 unsigned int maxMunitionPerMagazine_; 108 113 unsigned int maxMagazines_; 109 unsigned int magazines_;110 std::map<WeaponMode*, Magazine*> currentMagazines_; // Maps weapon modes to magazines that are currently used.114 unsigned int unassignedMagazines_; // Number of magazines that are not assigned to a weapon mode. These are alway treated as full. 115 std::map<WeaponMode*, Magazine*> assignedMagazines_; // Maps weapon modes to magazines that are currently used. 111 116 112 117 MunitionDeployment::Value deployment_; // Defines the behaviour how munition and magazines are distributed to the consuming weapon modes. … … 115 120 bool bAllowMultiMunitionRemovementUnderflow_; 116 121 117 float reloadTime_; 122 float reloadTime_; // The time needed to replace a magazine by a new one. 118 123 WeaponMode* lastFilledWeaponMode_; // Pointer to the weapon mode that got the last munition during the last call of addMunition. 119 124
Note: See TracChangeset
for help on using the changeset viewer.