18#include <vrfobjcore/vrfMunitionLoader.h>
37 DtVreMunitionLoader(
const DtString& rwName = DtString::nullString(), DtReaderWriterRegistry* parentRegistry = 0);
46 DtReaderWriterRegistry* parentRegistry = 0);
67 virtual bool init(DtLocalObject* entity);
78 virtual void tick(
const DtSimMunition& correctMunition,
79 DtDetonatorFuze correctFuze,
81 int roundsAvailable = 1)
override;
123 virtual void load(DtTime startLoadTime,
const DtSimMunition& munition, DtDetonatorFuze fuze)
override;
DtVreMunitionLoader(const DtVreMunitionLoader &orig, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0)
Copy constructor.
virtual void useRounds(const int nRounds) override
Uses a specified number of rounds from the magazine.
virtual ~DtVreMunitionLoader() override
Virtual destructor.
virtual void tick(const DtSimMunition &correctMunition, DtDetonatorFuze correctFuze, DtTime currentTime, int roundsAvailable=1) override
Updates the munition loader state.
virtual void setAmmoStatePropertiesThresholdAlgorithm(int thresholdAlgorithm)
Sets the thresholding algorithm for ammunition state properties.
virtual void enableAmmoStatePropertiesThresholding()
Enables thresholding for ammunition state properties.
virtual void processSetRestored(DtSimMessage *msg)
Processes a state restoration message.
bool myReinitialize
Reinitialization flag.
Definition vreMunitionLoader.h:158
virtual void initializeClipStateProperty()
Initializes a clip state property.
virtual void load(DtTime startLoadTime, const DtSimMunition &munition, DtDetonatorFuze fuze) override
Begins loading a munition into the weapon system.
const DtVreMunitionLoader & operator=(const DtVreMunitionLoader &orig)
Assignment operator.
static void setRestoredCallback(DtSimMessage *msg, void *usrData)
Static callback for state restoration.
DtLocalObject * myEntity
Pointer to the associated entity.
Definition vreMunitionLoader.h:152
virtual bool init(DtLocalObject *entity)
Initializes the munition loader with an entity.
DtVreMunitionLoader(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0)
Constructor with optional name.
virtual void disableAmmoStatePropertiesThresholding()
Disables thresholding for ammunition state properties.
Export macros for the VREngage Object Core library.
#define VREVRFOBJCORE_DLL
Platform-specific DLL export/import declaration.
Definition export.h:27
Include export definitions for this library.
Definition glsVreMessageUtil.h:49