- Timestamp:
- Oct 27, 2015, 9:08:40 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/fabienHS15/src/modules/pickup/items/MunitionPickup.h
r10692 r10715 39 39 40 40 #include <string> 41 #include <vector> 41 42 42 43 #include "pickup/Pickup.h" 44 #include "pickup/items/MunitionContainer.h" 43 45 #include "core/class/SubclassIdentifier.h" 44 46 #include "weaponsystem/Munition.h" … … 58 60 virtual void changedUsed(void); //!< Is called when the pickup has transited from used to unused or the other way around. 59 61 60 protected: 61 void setMunitionName(const std::string& munitionname); 62 inline const std::string& getMunitionName() const 63 { return this->munitionname_; } 64 void setMunitionAmount(int munitionAmount); 65 inline int getMunitionAmount() const 66 { return this->munitionAmount_; } 62 virtual void addMunitionContainer(MunitionContainer* munitionContainer); 63 MunitionContainer* getMunitionContainer(unsigned int index); 67 64 68 65 private: 69 66 void initialize(void); //!< Initializes the member variables. 70 67 Pawn* carrierToPawnHelper(void); //!< Helper to transform the PickupCarrier to a Pawn, and throw an error message if the conversion fails. 71 72 SubclassIdentifier<Munition> munitionType_; //!< Indentifier of the munition type. 73 std::string munitionname_; //!< String containing the class name of the munition type (e.g. "LaserMunition") 74 int munitionAmount_; //!< The amount of munition added if the pickup is used 68 69 std::vector<MunitionContainer*> munitionContainers_; 75 70 76 71 };
Note: See TracChangeset
for help on using the changeset viewer.