Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 27, 2015, 9:08:40 PM (9 years ago)
Author:
fvultier
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/fabienHS15/src/modules/pickup/items/MunitionPickup.h

    r10692 r10715  
    3939
    4040#include <string>
     41#include <vector>
    4142
    4243#include "pickup/Pickup.h"
     44#include "pickup/items/MunitionContainer.h"
    4345#include "core/class/SubclassIdentifier.h"
    4446#include "weaponsystem/Munition.h"
     
    5860            virtual void changedUsed(void); //!< Is called when the pickup has transited from used to unused or the other way around.
    5961
    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);
    6764
    6865        private:           
    6966            void initialize(void); //!< Initializes the member variables.
    7067            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_;
    7570
    7671    };
Note: See TracChangeset for help on using the changeset viewer.