VR-Engage  2.3
Loading...
Searching...
No Matches
makVre::DtGunnerControlLogic Class Reference

Detailed Description

DtGunnerControlLogic provides input handling and simulation logic for gunner roles, including weapon control, turret movement, firing, aiming modes, and commander override capabilities. It manages weapon selection, zoom levels, and sensor types.

#include <gunnerControlLogic.h>

Inheritance diagram for makVre::DtGunnerControlLogic:
[legend]

Public Member Functions

 DtGunnerControlLogic ()
 
virtual ~DtGunnerControlLogic () override
 
virtual bool initialize (DtPlayerStation *player, DtInitTable &config) override
 
virtual bool postInitialize () override
 
virtual void tick (double dt) override
 
virtual void shutdown () override
 
virtual const char * type () const override
 
virtual void fire (double val)
 
virtual void azimuth (double val)
 
virtual void elevation (double val)
 
virtual void stabilize (double val)
 
virtual void nextWeapon (double val)
 
virtual void previousWeapon (double val)
 
virtual void zoomIn (double val)
 
virtual void zoomOut (double val)
 
virtual void nextSensor (double val)
 
virtual void cycleAimingMode ()
 
virtual void switchToAltRole ()
 
virtual void handleSwitchToAltRole (float val)
 
virtual void turretUp (float val)
 
virtual void turretDown (float val)
 
virtual void turretRight (float val)
 
virtual void turretLeft (float val)
 
virtual void zoom (float val)
 
virtual void missileX (double val)
 
virtual void missileY (double val)
 
virtual void toggleArmed ()
 
virtual makVre::DtVreMessageResult handleMenuMessage (makVre::DtVreMessage *msg)
 
- Public Member Functions inherited from makVre::DtEntityControlLogic
 DtEntityControlLogic ()
 
virtual ~DtEntityControlLogic () override
 
virtual void setMouseControlEnabled (bool enabled)
 
virtual bool isMouseControlEnabled ()
 
virtual bool isMouseControlSupportAllowed () const
 
virtual void setMouseControlSupportAllowed (bool enable)
 
virtual const std::vector< std::string > & joystickGroups () const
 
virtual void sendJoystickCommand (const DtEntityIdentifier &id, const std::string &functionGroup, const std::string &function, double val, bool repeat=false)
 
virtual makVre::DtVreMessageResult handleSimState (makVre::DtVreMessage *msg)
 
virtual makVre::DtVreMessageResult handleReset (makVre::DtVreMessage *message)
 
virtual makVre::DtVreMessageResult handleCreationStatus (makVre::DtVreMessage *message)
 
virtual void reset (float val)
 
virtual void resetInPlace (float val)
 
virtual void toggleMouseControl (float val)
 
virtual void enableMouseControl (float val)
 
virtual makVre::DtVreMessageResult handleFocusMessage (makVre::DtVreMessage *message)
 
- Public Member Functions inherited from makVre::DtPlayerComponent
 DtPlayerComponent ()
 
virtual ~DtPlayerComponent ()
 
bool componentReady () const
 
void setComponentReady (bool ready)
 
virtual DtInitTickStatus finalizeInitTick (double dt)
 
virtual void setName (const std::string &name)
 
virtual const std::string & name ()
 
virtual DtPlayerStation & player ()
 
virtual DtAttributeHandle & playerAttributeStore ()
 
virtual const DtAttributeHandle & playerAttributeStore () const
 
virtual const DtAttributeHandle & ownshipState () const
 
virtual void setExtendedData (const std::string &key, const std::string &value, DtEntityIdentifier entity=DtEntityIdentifier::nullId())
 

Protected Member Functions

virtual bool aimWithObserver () const
 
virtual void setCommanderOverrideActive (bool active) const
 
void sendJoystickMessage (const std::string &func, const double val)
 
virtual void aimMissile (double x, double y)
 
virtual bool canFire ()
 
virtual void sendMissileTargetUpdate (const DtEntityIdentifier &missileId, const std::string &missileMarking, const DtVector &targetPos)
 
- Protected Member Functions inherited from makVre::DtEntityControlLogic
bool requiresControl () const
 
bool isAirborne () const
 
void showNotification (const QString &text, double duration)
 
virtual void takeControlOfPlayerEntity ()
 
virtual void releaseControlOfPlayerEntity ()
 
- Protected Member Functions inherited from makVre::DtPlayerComponent
virtual void initializeStateAttributes ()
 

Protected Attributes

std::string myPreviousMunitionType
 
std::string myMainControlGroup
 
DtInputLogic myInputLogic
 
std::string mySystemName
 
DtWeaponResourceLogic * myResourceLogic
 
std::vector< double > myZoomLevels
 
int myZoomIndex
 
makVre::DtInitTable myExtendedWeaponSystems
 
makVre::DtInitTable myCurrentExtendedSystem
 
DtVector myTargetLocation
 
makVrv::DtElementID myTargetElement
 
std::string myAltRole
 
bool myIsOverrideRole
 
std::string myOverrideSystem
 
bool myCycleWeaponFlag
 
double myDelayedCycleWeaponTimer
 
std::string myForceResourceType
 
double myProjectedTargetDistance
 
bool myTargetIsProjected
 
DtAttributeHandle myResourcesAttr
 
DtAttributeHandle myMunitionInfoAttr
 
double myMissileX
 
double myMissileY
 
double myMinRange
 
double myMaxRange
 
bool myPreviousMissileInFlight
 
double myMinGunAzimuth
 
double myMaxGunAzimuth
 
DtAttributeHandleType< std::string > mySystemCurrentMunitionAttr
 
DtAttributeHandleType< int > myCurrentSensorAttr
 
DtAttributeHandleType< bool > myFiringAttr
 
DtAttributeHandleType< bool > myArmedStateAttr
 
DtAttributeHandleType< double > myAzimuthStateAttr
 
DtAttributeHandleType< bool > myWeaponPoseValidAttr
 
DtAttributeHandleType< DtVector > myWeaponLocationAttr
 
DtAttributeHandleType< bool > myFireRequiresIntersectionAttr
 
DtAttributeHandleType< double > myZoomAttr
 
DtAttributeHandleType< bool > myZoomChangedAttr
 
DtAttributeHandleType< DtVector > myExtendedWeaponTargetLocationAttr
 
DtAttributeHandleType< makVrv::DtElementID > myExtendedWeaponTargetElementAttr
 
DtAttributeHandleType< std::string > myExtendedWeaponTargetElementNameAttr
 
DtAttributeHandleType< bool > myLauncherHasTargetEntityAttr
 
DtAttributeHandleType< bool > myMissileInFlightAttr
 
DtAttributeHandleType< bool > myManualMissileControlAttr
 
DtAttributeHandleType< DtVector > myObserverLocationAttr
 
DtAttributeHandleType< DtVector > myMissileTargetLocationAttr
 
DtAttributeHandleType< bool > myIsInGunnerSeatAttr
 
DtAttributeHandleType< std::vector< std::string > > mySensorModesAttr
 
DtAttributeHandleType< bool > myUsingIndirectCoordinateAttr
 
DtAttributeHandleType< DtVector > myIndirectFireCoordinateAttr
 
DtAttributeHandleType< bool > myHasLauncherTargetModesAttr
 
DtAttributeHandleType< std::string > myLauncherTargetModeAttr
 
DtAttributeHandleType< bool > myIsArmedAttr
 
DtAttributeHandleType< DtEntityIdentifier > myAttachedToAttr
 
DtAttributeHandleType< double > myRangeAttr
 
DtAttributeHandleType< DtTaitBryan > myWeaponOrientationAttr
 
DtAttributeHandleType< DtTaitBryan > myObserverOrientationAttr
 
DtAttributeHandleType< std::string > myCurrentMunitionAttr
 
- Protected Attributes inherited from makVre::DtEntityControlLogic
std::vector< std::string > myJoystickFunctionGroups
 
DtInputLogic myCommonInputLogic
 
std::string myInputConfigFile
 
bool myMouseControlEnabled
 
bool myMouseControlSupportAllowed
 
DtAttributeHandle myOwnshipAttr
 
DtAttributeHandleType< bool > myEmbarkedAttr
 
DtAttributeHandleType< DtEntityIdentifier > myEmbarkedHostAttr
 
DtAttributeHandleType< DtEntityType > myEmbarkedHostTypeAttr
 
DtAttributeHandleType< std::string > myEmbarkedHostMarkingAttr
 
DtAttributeHandleType< bool > myEmbarkedOnAircraftAttr
 
DtAttributeHandleType< std::string > myEmbarkedInSlotAttr
 
DtAttributeHandleType< unsigned int > myAppearanceAttr
 
DtAttributeHandleType< DtVector > myPositionAttr
 
DtAttributeHandleType< DtTaitBryan > myOrientationAttr
 
DtAttributeHandleType< double > mySpeedAttr
 
DtAttributeHandleType< DtVector32 > myVelocityAttr
 
DtAttributeHandleType< DtVector32 > myAccelerationAttr
 
DtAttributeHandleType< DtVector32 > myRotVelAttr
 
DtAttributeHandleType< DtEntityType > myEntityTypeAttr
 
DtAttributeHandleType< DtVector32 > myRelativeVelocityAttr
 
DtAttributeHandleType< DtDamageState > myDamageStateAttr
 
DtAttributeHandleType< int > mySimStateUpdateIndexAttr
 
DtAttributeHandleType< bool > myHideOccupantsAttr
 
- Protected Attributes inherited from makVre::DtPlayerComponent
bool myComponentReady = true
 
std::string myName
 
DtInitTable myConfig
 
DtPlayerStation * myPlayer
 
makVrv::DtDe * myDe
 
DtEntityResolver * myResolver
 
DtAttributeCallbackManager myAttributeCallbacks
 
DtVreMessageHandlerGroup myMessageHandlers
 

Constructor & Destructor Documentation

◆ DtGunnerControlLogic()

makVre::DtGunnerControlLogic::DtGunnerControlLogic ( )

Constructor for DtGunnerControlLogic.

Initializes component state and checks out required VRE_GROUND license

◆ ~DtGunnerControlLogic()

virtual makVre::DtGunnerControlLogic::~DtGunnerControlLogic ( )
overridevirtual

Destructor for DtGunnerControlLogic.

Member Function Documentation

◆ initialize()

virtual bool makVre::DtGunnerControlLogic::initialize ( DtPlayerStation * player,
DtInitTable & config )
overridevirtual

Initializes the gunner control logic component.

Parameters
playerPointer to the player station this component belongs to
configConfiguration table containing gunner settings
Returns
True if initialization succeeded, false otherwise

Sets up joystick controls, input handlers, state attributes, zoom levels, and extended weapon systems

Reimplemented from makVre::DtEntityControlLogic.

References makVre::DtPlayerComponent::player().

◆ postInitialize()

virtual bool makVre::DtGunnerControlLogic::postInitialize ( )
overridevirtual

Performs post-initialization after all components are initialized.

Returns
True if post-initialization succeeded, false otherwise

Locates and establishes connection with the DtWeaponResourceLogic component

Reimplemented from makVre::DtEntityControlLogic.

◆ tick()

virtual void makVre::DtGunnerControlLogic::tick ( double dt)
overridevirtual

Called every frame to update gunner control logic.

Parameters
dtDelta time since the last frame in seconds

Updates weapon system state, handles extended weapon system targeting, and sends firing position updates

Reimplemented from makVre::DtEntityControlLogic.

◆ shutdown()

virtual void makVre::DtGunnerControlLogic::shutdown ( )
overridevirtual

Shuts down the gunner control logic component.

Cleans up input handlers, message handlers, and disables commander override if active

Reimplemented from makVre::DtEntityControlLogic.

◆ type()

virtual const char * makVre::DtGunnerControlLogic::type ( ) const
overridevirtual

Returns the component type identifier.

Returns
The component type string

Reimplemented from makVre::DtEntityControlLogic.

◆ fire()

virtual void makVre::DtGunnerControlLogic::fire ( double val)
virtual

Input functions mapped to particular action strings in configuration.

Handles weapon firing input

Parameters
valInput value (1.0 = fire, 0.0 = stop firing)

◆ azimuth()

virtual void makVre::DtGunnerControlLogic::azimuth ( double val)
virtual

Controls turret azimuth (horizontal rotation)

Parameters
valInput value for azimuth rate (-1.0 to 1.0)

◆ elevation()

virtual void makVre::DtGunnerControlLogic::elevation ( double val)
virtual

Controls turret elevation (vertical angle)

Parameters
valInput value for elevation rate (-1.0 to 1.0)

◆ stabilize()

virtual void makVre::DtGunnerControlLogic::stabilize ( double val)
virtual

Controls weapon stabilization system.

Parameters
valInput value (1.0 = enable, 0.0 = disable)

◆ nextWeapon()

virtual void makVre::DtGunnerControlLogic::nextWeapon ( double val)
virtual

Selects the next available weapon.

Parameters
valInput value (1.0 = select next weapon)

◆ previousWeapon()

virtual void makVre::DtGunnerControlLogic::previousWeapon ( double val)
virtual

Selects the previous available weapon.

Parameters
valInput value (1.0 = select previous weapon)

◆ zoomIn()

virtual void makVre::DtGunnerControlLogic::zoomIn ( double val)
virtual

Increases the sight magnification level.

Parameters
valInput value (1.0 = zoom in one level)

◆ zoomOut()

virtual void makVre::DtGunnerControlLogic::zoomOut ( double val)
virtual

Decreases the sight magnification level.

Parameters
valInput value (1.0 = zoom out one level)

◆ nextSensor()

virtual void makVre::DtGunnerControlLogic::nextSensor ( double val)
virtual

Cycles to the next available sensor type (visual, NVG, thermal)

Parameters
valInput value (1.0 = select next sensor)

◆ cycleAimingMode()

virtual void makVre::DtGunnerControlLogic::cycleAimingMode ( )
virtual

Cycles between available aiming modes.

◆ switchToAltRole()

virtual void makVre::DtGunnerControlLogic::switchToAltRole ( )
virtual

Switches between gunner and alternate role (e.g., commander RWS)

◆ handleSwitchToAltRole()

virtual void makVre::DtGunnerControlLogic::handleSwitchToAltRole ( float val)
virtual

Handles input for switching to alternate role.

Parameters
valInput value (1.0 = switch role)

◆ turretUp()

virtual void makVre::DtGunnerControlLogic::turretUp ( float val)
virtual

Moves turret upward (direct control)

Parameters
valInput value (0.0 to 1.0 for speed)

◆ turretDown()

virtual void makVre::DtGunnerControlLogic::turretDown ( float val)
virtual

Moves turret downward (direct control)

Parameters
valInput value (0.0 to 1.0 for speed)

◆ turretRight()

virtual void makVre::DtGunnerControlLogic::turretRight ( float val)
virtual

Moves turret to the right (direct control)

Parameters
valInput value (0.0 to 1.0 for speed)

◆ turretLeft()

virtual void makVre::DtGunnerControlLogic::turretLeft ( float val)
virtual

Moves turret to the left (direct control)

Parameters
valInput value (0.0 to 1.0 for speed)

◆ zoom()

virtual void makVre::DtGunnerControlLogic::zoom ( float val)
virtual

Controls continuous zoom level directly.

Parameters
valInput value (-1.0 to 1.0) for zoom direction and speed

◆ missileX()

virtual void makVre::DtGunnerControlLogic::missileX ( double val)
virtual

Set x and y inputs for manual missile aiming.

◆ missileY()

virtual void makVre::DtGunnerControlLogic::missileY ( double val)
virtual

◆ toggleArmed()

virtual void makVre::DtGunnerControlLogic::toggleArmed ( )
virtual

Toggles armed state for a weapon that requires arming (weapons don't by default).

◆ handleMenuMessage()

virtual makVre::DtVreMessageResult makVre::DtGunnerControlLogic::handleMenuMessage ( makVre::DtVreMessage * msg)
virtual

Handles action menu messages for the gunner role.

Parameters
msgThe message to handle
Returns
Message handling result indicating if the message was handled

Processes menu actions like cycling weapons, sensors, aiming modes, and role switching

◆ aimWithObserver()

virtual bool makVre::DtGunnerControlLogic::aimWithObserver ( ) const
protectedvirtual

Determines if aiming should use the observer's view.

Returns
True if aiming should use the observer's view, false otherwise

◆ setCommanderOverrideActive()

virtual void makVre::DtGunnerControlLogic::setCommanderOverrideActive ( bool active) const
protectedvirtual

Sets the commander override active state.

Parameters
activeTrue to activate commander override, false to deactivate

◆ sendJoystickMessage()

void makVre::DtGunnerControlLogic::sendJoystickMessage ( const std::string & func,
const double val )
protected

Sends a joystick message to the entity.

Parameters
funcFunction name to trigger on the entity
valValue to send with the function (typically -1.0 to 1.0)

◆ aimMissile()

virtual void makVre::DtGunnerControlLogic::aimMissile ( double x,
double y )
protectedvirtual

Update missile's target point based on the x and y input. Called any time x and y are not 0.

◆ canFire()

virtual bool makVre::DtGunnerControlLogic::canFire ( )
protectedvirtual

Returns true if the weapon can fire. Checks for range, azimuth and isArmed.

◆ sendMissileTargetUpdate()

virtual void makVre::DtGunnerControlLogic::sendMissileTargetUpdate ( const DtEntityIdentifier & missileId,
const std::string & missileMarking,
const DtVector & targetPos )
protectedvirtual

Member Data Documentation

◆ myPreviousMunitionType

std::string makVre::DtGunnerControlLogic::myPreviousMunitionType
protected

Previously used munition name, used to detect changes.

◆ myMainControlGroup

std::string makVre::DtGunnerControlLogic::myMainControlGroup
protected

Primary control group name for this gunner station.

◆ myInputLogic

DtInputLogic makVre::DtGunnerControlLogic::myInputLogic
protected

Input logic that handles mapping of input actions to functions.

◆ mySystemName

std::string makVre::DtGunnerControlLogic::mySystemName
protected

Name of the weapon system controlled by this gunner.

◆ myResourceLogic

DtWeaponResourceLogic* makVre::DtGunnerControlLogic::myResourceLogic
protected

Pointer to the weapon resource logic component.

◆ myZoomLevels

std::vector<double> makVre::DtGunnerControlLogic::myZoomLevels
protected

Available zoom magnification levels.

◆ myZoomIndex

int makVre::DtGunnerControlLogic::myZoomIndex
protected

Current index into the zoom levels array.

◆ myExtendedWeaponSystems

makVre::DtInitTable makVre::DtGunnerControlLogic::myExtendedWeaponSystems
protected

Configuration table for extended weapon systems.

◆ myCurrentExtendedSystem

makVre::DtInitTable makVre::DtGunnerControlLogic::myCurrentExtendedSystem
protected

Configuration for the currently active extended weapon system.

◆ myTargetLocation

DtVector makVre::DtGunnerControlLogic::myTargetLocation
protected

Current target location for extended weapon systems.

◆ myTargetElement

makVrv::DtElementID makVre::DtGunnerControlLogic::myTargetElement
protected

Element ID of the current target.

◆ myAltRole

std::string makVre::DtGunnerControlLogic::myAltRole
protected

Name of the alternate role to switch to.

◆ myIsOverrideRole

bool makVre::DtGunnerControlLogic::myIsOverrideRole
protected

Flag indicating if this gunner is in override mode.

◆ myOverrideSystem

std::string makVre::DtGunnerControlLogic::myOverrideSystem
protected

Name of the system to override.

◆ myCycleWeaponFlag

bool makVre::DtGunnerControlLogic::myCycleWeaponFlag
protected

Flag indicating if a weapon cycle operation is in progress.

◆ myDelayedCycleWeaponTimer

double makVre::DtGunnerControlLogic::myDelayedCycleWeaponTimer
protected

Timer for delaying weapon cycling operations.

◆ myForceResourceType

std::string makVre::DtGunnerControlLogic::myForceResourceType
protected

Allow the configuration to specify a resource name directly.

◆ myProjectedTargetDistance

double makVre::DtGunnerControlLogic::myProjectedTargetDistance
protected

Distance (meters) to project a fallback aim point along the observer's boresight when the center-screen intersection finds no terrain or entity. 0.0 disables projection. Set via the projectedTargetDistance config parameter.

◆ myTargetIsProjected

bool makVre::DtGunnerControlLogic::myTargetIsProjected
protected

True when the current extended-weapon-system target came from projecting a fallback aim point (no real terrain/entity intersection was found). The shared "range" attribute (from DtGunnerRangeSimLogic, which uses its own intersection) is not meaningful in this case, so canFire() must not gate on it.

◆ myResourcesAttr

DtAttributeHandle makVre::DtGunnerControlLogic::myResourcesAttr
protected
Attribute Store Keyresources

◆ myMunitionInfoAttr

DtAttributeHandle makVre::DtGunnerControlLogic::myMunitionInfoAttr
protected
Attribute Store KeymunitionInfo

◆ myMissileX

double makVre::DtGunnerControlLogic::myMissileX
protected

◆ myMissileY

double makVre::DtGunnerControlLogic::myMissileY
protected

◆ myMinRange

double makVre::DtGunnerControlLogic::myMinRange
protected

◆ myMaxRange

double makVre::DtGunnerControlLogic::myMaxRange
protected

◆ myPreviousMissileInFlight

bool makVre::DtGunnerControlLogic::myPreviousMissileInFlight
protected

◆ myMinGunAzimuth

double makVre::DtGunnerControlLogic::myMinGunAzimuth
protected

◆ myMaxGunAzimuth

double makVre::DtGunnerControlLogic::myMaxGunAzimuth
protected

◆ mySystemCurrentMunitionAttr

DtAttributeHandleType<std::string> makVre::DtGunnerControlLogic::mySystemCurrentMunitionAttr
protected

Attribute handle storing the currently selected munition type for this weapon system.

The attribute key is system-prefixed: <systemName>.current-munition.

Attribute Store Key<systemName>.current-munition

◆ myCurrentSensorAttr

DtAttributeHandleType<int> makVre::DtGunnerControlLogic::myCurrentSensorAttr
protected

Attribute handle storing the active sensor view index (0=Visual, 1=NVG, 2=Thermal-white, 3=Thermal-black).

Attribute Store KeycurrentSensor

◆ myFiringAttr

DtAttributeHandleType<bool> makVre::DtGunnerControlLogic::myFiringAttr
protected

Attribute handle indicating whether the weapon is currently firing.

Attribute Store Keyfiring

◆ myArmedStateAttr

DtAttributeHandleType<bool> makVre::DtGunnerControlLogic::myArmedStateAttr
protected

Attribute handle indicating whether the weapon system is in the armed state.

The attribute key is configurable via the armedProperty config parameter.

Attribute Store Key<armedProperty>

◆ myAzimuthStateAttr

DtAttributeHandleType<double> makVre::DtGunnerControlLogic::myAzimuthStateAttr
protected

Attribute handle storing the current main-gun azimuth angle in radians.

The attribute key is configurable via the azimuthStateAttribute config parameter. Defaults to "mainGunAzimuth" if not specified.

Attribute Store KeymainGunAzimuth

◆ myWeaponPoseValidAttr

DtAttributeHandleType<bool> makVre::DtGunnerControlLogic::myWeaponPoseValidAttr
protected

Attribute handle indicating whether a valid weapon intersection pose has been computed.

Attribute Store KeyweaponPoseValid

◆ myWeaponLocationAttr

DtAttributeHandleType<DtVector> makVre::DtGunnerControlLogic::myWeaponLocationAttr
protected

Attribute handle storing the weapon muzzle location in geocentric coordinates.

Attribute Store KeyweaponLocation

◆ myFireRequiresIntersectionAttr

DtAttributeHandleType<bool> makVre::DtGunnerControlLogic::myFireRequiresIntersectionAttr
protected

Attribute handle indicating whether an intersection point is required before firing.

Attribute Store KeyfireRequiresIntersection

◆ myZoomAttr

DtAttributeHandleType<double> makVre::DtGunnerControlLogic::myZoomAttr
protected

Attribute handle storing the current zoom magnification level.

Attribute Store Keyzoom

◆ myZoomChangedAttr

DtAttributeHandleType<bool> makVre::DtGunnerControlLogic::myZoomChangedAttr
protected

Attribute handle indicating whether the zoom level has changed and interpolation needs updating.

Attribute Store KeyzoomChanged

◆ myExtendedWeaponTargetLocationAttr

DtAttributeHandleType<DtVector> makVre::DtGunnerControlLogic::myExtendedWeaponTargetLocationAttr
protected

Attribute handle storing the geocentric location of the extended weapon target.

Attribute Store KeyextendedWeaponTargetLocation

◆ myExtendedWeaponTargetElementAttr

DtAttributeHandleType<makVrv::DtElementID> makVre::DtGunnerControlLogic::myExtendedWeaponTargetElementAttr
protected

Attribute handle storing the scene element ID of the extended weapon target entity.

Attribute Store KeyextendedWeaponTargetElement

◆ myExtendedWeaponTargetElementNameAttr

DtAttributeHandleType<std::string> makVre::DtGunnerControlLogic::myExtendedWeaponTargetElementNameAttr
protected

Attribute handle storing the display name of the extended weapon target entity.

Attribute Store KeyextendedWeaponTargetElementName

◆ myLauncherHasTargetEntityAttr

DtAttributeHandleType<bool> makVre::DtGunnerControlLogic::myLauncherHasTargetEntityAttr
protected

Attribute handle indicating whether the missile launcher has a locked target entity.

Attribute Store KeylauncherHasTargetEntity

◆ myMissileInFlightAttr

DtAttributeHandleType<bool> makVre::DtGunnerControlLogic::myMissileInFlightAttr
protected

Attribute handle indicating whether a guided missile is currently in flight.

Attribute Store KeymissileInFlight

◆ myManualMissileControlAttr

DtAttributeHandleType<bool> makVre::DtGunnerControlLogic::myManualMissileControlAttr
protected

Attribute handle indicating whether the player has manual control of a missile in flight.

Attribute Store KeymanualMissileControl

◆ myObserverLocationAttr

DtAttributeHandleType<DtVector> makVre::DtGunnerControlLogic::myObserverLocationAttr
protected

Attribute handle storing the observer's geocentric position for targeting calculations.

Attribute Store KeyobserverLocation

◆ myMissileTargetLocationAttr

DtAttributeHandleType<DtVector> makVre::DtGunnerControlLogic::myMissileTargetLocationAttr
protected

Attribute handle storing the target impact point for missile guidance.

Attribute Store KeymissileTargetLocation

◆ myIsInGunnerSeatAttr

DtAttributeHandleType<bool> makVre::DtGunnerControlLogic::myIsInGunnerSeatAttr
protected

Attribute handle indicating whether the player is currently occupying the gunner's seat.

Attribute Store KeyisInGunnerSeat

◆ mySensorModesAttr

DtAttributeHandleType<std::vector<std::string> > makVre::DtGunnerControlLogic::mySensorModesAttr
protected

Attribute handle storing the list of available sensor mode name strings.

Attribute Store KeysensorModes

◆ myUsingIndirectCoordinateAttr

DtAttributeHandleType<bool> makVre::DtGunnerControlLogic::myUsingIndirectCoordinateAttr
protected

Attribute handle indicating whether indirect-fire coordinate targeting mode is active.

Attribute Store KeyusingIndirectCoordinate

◆ myIndirectFireCoordinateAttr

DtAttributeHandleType<DtVector> makVre::DtGunnerControlLogic::myIndirectFireCoordinateAttr
protected

Attribute handle storing the geocentric coordinate used for indirect fire targeting.

Attribute Store KeyindirectFireCoordinate

◆ myHasLauncherTargetModesAttr

DtAttributeHandleType<bool> makVre::DtGunnerControlLogic::myHasLauncherTargetModesAttr
protected

Attribute handle indicating whether the launcher supports selectable target modes.

Attribute Store KeyhasLauncherTargetModes

◆ myLauncherTargetModeAttr

DtAttributeHandleType<std::string> makVre::DtGunnerControlLogic::myLauncherTargetModeAttr
protected

Attribute handle storing the name of the currently selected launcher target mode.

Attribute Store KeylauncherTargetMode

◆ myIsArmedAttr

DtAttributeHandleType<bool> makVre::DtGunnerControlLogic::myIsArmedAttr
protected

Attribute handle indicating whether the weapon system is in a fully armed and ready state.

Attribute Store KeyisArmed

◆ myAttachedToAttr

DtAttributeHandleType<DtEntityIdentifier> makVre::DtGunnerControlLogic::myAttachedToAttr
protected

Attribute handle storing the entity identifier of the vehicle the gunner is attached to.

Attribute Store KeyattachedTo

◆ myRangeAttr

DtAttributeHandleType<double> makVre::DtGunnerControlLogic::myRangeAttr
protected

Attribute handle storing the calculated range to the current aim point.

Attribute Store Keyrange

◆ myWeaponOrientationAttr

DtAttributeHandleType<DtTaitBryan> makVre::DtGunnerControlLogic::myWeaponOrientationAttr
protected

Attribute handle storing the weapon's current orientation in Tait-Bryan angles.

Attribute Store KeyweaponOrientation

◆ myObserverOrientationAttr

DtAttributeHandleType<DtTaitBryan> makVre::DtGunnerControlLogic::myObserverOrientationAttr
protected

Attribute handle storing the observer's current orientation in Tait-Bryan angles.

Attribute Store KeyobserverOrientation

◆ myCurrentMunitionAttr

DtAttributeHandleType<std::string> makVre::DtGunnerControlLogic::myCurrentMunitionAttr
protected

Attribute handle storing the name of the currently selected munition.

Attribute Store Keycurrent-munition

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