43class DtGunnerJoystickControl;
44class DtGunnerEventProcessor;
84 virtual void tick(
double dt)
override;
93 virtual const char*
type()
const override;
Type-specific handle class for attributes.
Definition attributeHandle.h:229
virtual bool initialize(DtPlayerStation *player, DtInitTable &config) override
Initializes the gunner range simulation component.
virtual ~DtGunnerRangeSimLogic() override
Destructor for DtGunnerRangeSimLogic.
virtual void shutdown() override
Shuts down the gunner range simulation component.
DtAttributeHandleType< double > myRangeAttr
Attribute handle storing the calculated range to the current aim point.
Definition gunnerRangeSimLogic.h:124
std::string myWindowName
Name of the window to use for ray casting.
Definition gunnerRangeSimLogic.h:115
double myTimeToUpdate
Simulation time at which the next range update should be computed.
Definition gunnerRangeSimLogic.h:105
std::string myChannelName
Name of the channel to use for ray casting.
Definition gunnerRangeSimLogic.h:120
virtual const char * type() const override
Returns the type identifier for this component.
DtAttributeHandleType< DtVector > myPositionAttr
Attribute handle storing the ownship's current geocentric position.
Definition gunnerRangeSimLogic.h:128
virtual void updateRange()
Computes the range to target at specified time intervals.
virtual void tick(double dt) override
Called every frame to update the range simulation.
DtAttributeHandleType< DtEntityIdentifier > myAttachedToAttr
Attribute handle storing the entity identifier of the vehicle the gunner is attached to.
Definition gunnerRangeSimLogic.h:132
double myUpdateInterval
Time interval in seconds between range updates.
Definition gunnerRangeSimLogic.h:110
DtGunnerRangeSimLogic()
Constructor for DtGunnerRangeSimLogic.
Table-based access to Lua state for configuration data.
Definition initializer.h:38
virtual DtPlayerStation & player()
Gets the player station.
DtPlayerComponent()
Constructor.
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
constexpr const char * channelName
Definition gunnerRangeSimLogic.h:31
constexpr const char * updateInterval
Definition gunnerRangeSimLogic.h:34
constexpr const char * windowName
Definition gunnerRangeSimLogic.h:37
Defines export/import macros for the vreCommonComponents library.
#define VRECOMMONCOMPONENTS_DLL
DLL export/import macro for the vreCommonComponents library.
Definition export.h:28
Provides configuration initialization for VREngage components.
Definition gunnerRangeSimLogic.h:23
!
Definition glsVreMessageUtil.h:50
constexpr const char * DtGunnerRangeSimLogicType
Type identifier for DtGunnerRangeSimLogic component.
Definition gunnerRangeSimLogic.h:47
Defines the DtPlayerComponent base class for VR-Engage role components.