The DtAmmunitionManager is a clas that will maintain ammunition (that which is not published, such as bullets in a gun), their munition type, and the targets they can currently target.
More...
The DtAmmunitionManager is a clas that will maintain ammunition (that which is not published, such as bullets in a gun), their munition type, and the targets they can currently target.
| DtAmmunitionManager::DtAmmunitionManager |
( |
| ) |
|
Constructs the ammunition manager.
| virtual DtAmmunitionManager::~DtAmmunitionManager |
( |
| ) |
|
|
virtual |
Not defined! copy constructor.
| virtual bool DtAmmunitionManager::init |
( |
| ) |
|
|
virtual |
Initializes the ammunition manager.
- Clears out ammunition paramters
- Returns
- a boolean signifying success or failure.
| virtual bool DtAmmunitionManager::reinitialize |
( |
| ) |
|
|
virtual |
Resets the ammunition manager to initial state.
- calls init to initialize the manager.
- Returns
- a boolean signifying success or failure.
- See Also
- init
| virtual bool DtAmmunitionManager::loadParametersFromFile |
( |
const DtFilename & |
filename | ) |
|
|
virtual |
Calls createParameters() to get a new instance of the parameter object, and calls getSelf() on the parameters to load them from the file.
Assigns the newly loaded parameters to myParameters and processes parameters specified. If there are parameters already in this class it will merge the parameters in. Make sure to call reinitialize before load if you want to load parameters into a clean list
- Returns
- True on success.
| virtual void DtAmmunitionManager::resetParameters |
( |
| ) |
|
|
virtual |
Sets parameters and returns the existing parameters.
Once set this class will take ownership of the memory. If you do not need the old parameters that are returned, delete them
| virtual bool DtAmmunitionManager::parametersLoaded |
( |
| ) |
const |
|
virtual |
- Returns
- true if a parameter set has been loaded.
| virtual const DtFilename& DtAmmunitionManager::parametersFile |
( |
| ) |
const |
|
virtual |
- Returns
- The name of the detonation parameters file that was loaded.
Set this in order to be able to map between the ammunition name in the priorities list and the ammunition type.
If this manager is not present then there can be no mapping
| DtFilename DtAmmunitionManager::myParametersFile |
|
protected |
Parameters for this ammunition manager.
The global instance that can be referened by other classes.
This must be set in order to be used. The creation of an ammunition manager will not, by default, set this value
The documentation for this class was generated from the following file:
- /data/exports/nrhent7-1/nightly/docs/vrForces.vrf4-10-branch/include/vrfobjparam/ammunitionManager.h