VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtVreAmmunitionManager Class Reference

Detailed Description

The DtVreAmmunitionManager maintains ammunition that is not published to the network (such as bullets in a gun), their munition types, and the targets they can currently engage. This class extends the base ammunition manager to create VREngage-specific ammunition parameter objects that support the extended data found in ammunitionParams.mtl configuration files.

#include <vreAmmunitionManager.h>

Inheritance diagram for makVre::DtVreAmmunitionManager:
[legend]

Public Member Functions

 DtVreAmmunitionManager ()
 
virtual ~DtVreAmmunitionManager () override
 

Static Public Member Functions

static DtAmmunitionManager * create ()
 

Protected Member Functions

virtual DtAmmunitionParams * createParameters () override
 

Private Member Functions

 DtVreAmmunitionManager (const DtVreAmmunitionManager &orig)
 
DtVreAmmunitionManageroperator= (const DtVreAmmunitionManager &other)
 

Constructor & Destructor Documentation

◆ DtVreAmmunitionManager() [1/2]

makVre::DtVreAmmunitionManager::DtVreAmmunitionManager ( )

Default constructor.

Creates a new ammunition manager with default values.

Referenced by DtVreAmmunitionManager(), and operator=().

◆ ~DtVreAmmunitionManager()

virtual makVre::DtVreAmmunitionManager::~DtVreAmmunitionManager ( )
overridevirtual

Virtual destructor.

Cleans up resources used by the ammunition manager.

◆ DtVreAmmunitionManager() [2/2]

makVre::DtVreAmmunitionManager::DtVreAmmunitionManager ( const DtVreAmmunitionManager & orig)
private

Copy constructor (not implemented)

Parameters
origThe source manager to copy from

Copy constructor is private and not implemented to prevent copying.

References DtVreAmmunitionManager().

Member Function Documentation

◆ create()

static DtAmmunitionManager * makVre::DtVreAmmunitionManager::create ( )
static

Factory function to create a new ammunition manager.

Returns
Pointer to a newly created ammunition manager

Static factory function used to instantiate new instances of the ammunition manager.

◆ createParameters()

virtual DtAmmunitionParams * makVre::DtVreAmmunitionManager::createParameters ( )
overrideprotectedvirtual

Creates a new ammunition parameters object.

Returns
Pointer to a newly created ammunition parameters object

Creates a new instance of DtVreAmmunitionParams. If new parameters are used in a derived version of this class, override this method to return a derived version of DtVreAmmunitionParams.

This factory method enables the ammunition manager to create appropriate parameter objects specific to VREngage.

◆ operator=()

DtVreAmmunitionManager & makVre::DtVreAmmunitionManager::operator= ( const DtVreAmmunitionManager & other)
private

Assignment operator (not implemented)

Parameters
otherThe source manager to copy from
Returns
Reference to this manager after assignment

Assignment operator is private and not implemented to prevent assignment.

References DtVreAmmunitionManager().


The documentation for this class was generated from the following file: