|
VR-Engage
2.2
|
This class defines a descriptor for the weapons status controller component, which manages weapon selection and cycling behavior in VREngage. It extends the joystick device controller descriptor to add configuration for weapon cycling order and range ring update behavior.
#include <weaponsStatusControllerDescriptor.h>
Public Member Functions | |
| DtWeaponsStatusControllerDescriptor (const DtString &name, DtReaderWriterRegistry *parentRegistry=0) | |
| DtWeaponsStatusControllerDescriptor (const DtWeaponsStatusControllerDescriptor &orig, DtReaderWriterRegistry *parentRegistry=0) | |
| DtWeaponsStatusControllerDescriptor & | operator= (const DtWeaponsStatusControllerDescriptor &orig) |
| virtual DtComponentDescriptor * | clone (DtReaderWriterRegistry *parentRegistry=0) const override |
| virtual | ~DtWeaponsStatusControllerDescriptor () override |
| virtual DtString | type () const override |
| virtual std::vector< std::string > | weaponCycleOrder () const |
| virtual bool | updateRangeRings () const |
Static Public Member Functions | |
| static DtComponentDescriptor * | creator () |
Protected Attributes | |
| DtRwString | myWeaponCycleOrder |
| DtRwBoolean | myUpdateRangeRings |
| makVre::DtWeaponsStatusControllerDescriptor::DtWeaponsStatusControllerDescriptor | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
Constructor with component name.
| name | The name of this component |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new weapons status controller descriptor with the specified name.
Referenced by DtWeaponsStatusControllerDescriptor(), and operator=().
| makVre::DtWeaponsStatusControllerDescriptor::DtWeaponsStatusControllerDescriptor | ( | const DtWeaponsStatusControllerDescriptor & | orig, |
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
Copy constructor.
| orig | The source descriptor to copy from |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new weapons status controller descriptor as a copy of the provided original.
References DtWeaponsStatusControllerDescriptor().
|
overridevirtual |
Virtual destructor.
Cleans up resources used by the descriptor.
| DtWeaponsStatusControllerDescriptor & makVre::DtWeaponsStatusControllerDescriptor::operator= | ( | const DtWeaponsStatusControllerDescriptor & | orig | ) |
Assignment operator.
| orig | The source descriptor to copy from |
Assigns the contents of the provided descriptor to this one.
References DtWeaponsStatusControllerDescriptor().
|
overridevirtual |
Creates a clone of this descriptor.
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new weapons status controller descriptor as a deep copy of this one.
|
overridevirtual |
Gets the type identifier for this descriptor.
Returns a unique type identifier string for this descriptor type. Will return DtWeaponsStatusControllerDescriptorType.
|
virtual |
Gets the weapon cycle order.
Returns the ordered list of weapon categories that defines the sequence in which weapons will be cycled through when using the weapon selection controls.
|
virtual |
Checks if range rings should be updated.
Returns whether the controller should modify the entity's range rings based on which weapon is currently selected.
|
static |
Factory function to create a new instance of this descriptor.
Static factory function used by the descriptor creation system to instantiate new instances of this descriptor type.
|
protected |
Weapon categories in cycling order.
Semicolon-separated string of weapon categories, defining the order in which weapons will be cycled through when using the weapon selection controls. This allows the weapon cycle order to be specifically configured.
|
protected |
Flag for updating range rings.
When true, this controller will modify the entity's range rings based on which weapon is currently selected, providing visual feedback of the selected weapon's range.