- Timestamp:
- Oct 24, 2015, 10:51:18 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/fabienHS15/src/orxonox/weaponsystem/Munition.h
r9667 r10688 39 39 namespace orxonox 40 40 { 41 enum Deployment 42 { 43 DEPLOYMENT_SHARE, 44 DEPLOYMENT_STACK, 45 DEPLOYMENT_SEPARATE 46 }; 47 48 41 49 class _OrxonoxExport Munition : public BaseObject 42 { 50 { 43 51 struct Magazine 44 52 { … … 68 76 inline unsigned int getMaxMunitionPerMagazine() const 69 77 { return this->maxMunitionPerMagazine_; } 78 inline bool getUseSeparateMagazines() const 79 { return deployment_ == DEPLOYMENT_SEPARATE; } 80 inline bool getStackMunition() const 81 { return deployment_ == DEPLOYMENT_STACK; } 70 82 71 83 bool canTakeMunition(unsigned int amount, WeaponMode* user) const; … … 95 107 std::map<WeaponMode*, Magazine*> currentMagazines_; 96 108 97 bool bUseSeparateMagazines_;98 bool bStackMunition_; 109 Deployment deployment_; 110 99 111 bool bAllowMunitionRefilling_; 100 112 bool bAllowMultiMunitionRemovementUnderflow_;
Note: See TracChangeset
for help on using the changeset viewer.