14#include <vrfutil/rwLocationReference.h>
16#include <vlpi/appearance.h>
17#include <matrix/vlVector.h>
22class DtRwLocationReference;
105 virtual void tick(
double dt)
override;
108 virtual const char*
type()
const override;
110 virtual void useDrone(
const DtEntityIdentifier&
id = DtEntityIdentifier::nullId(),
const std::string& marking =
"");
Type-specific handle class for attributes.
Definition attributeHandle.h:229
virtual void toggleDronePIDMenu()
DtAttributeHandleType< std::string > myDroneLoiterRelativeBearingDisplayAttr
Definition droneControlLogic.h:220
virtual void setDroneAutopilotMode(const std::string &mode)
DtAttributeHandleType< DtEntityResolver * > myDroneEntityResolverAttr
Definition droneControlLogic.h:228
virtual void toggleFocusOnEntity()
double myDroneLoiterRelativeAltitudeFeet
Definition droneControlLogic.h:196
bool myDroneLoiterUseCurrentRelativeAltitudeFeet
Definition droneControlLogic.h:195
DtAttributeHandleType< ObserverAttachMode > myObserverAttachModeAttr
Definition droneControlLogic.h:223
virtual void fireSelectedDroneWeapon()
DtAttributeHandleType< makVrv::DtIntersector * > myIntersectorAttr
Definition droneControlLogic.h:229
virtual void startDroneLoiter(const DtRwLocationReference &targetLocationReference)
DtAttributeHandleType< DtEntityIdentifier > myForwardControlsToAttr
Definition droneControlLogic.h:214
DtAttributeHandleType< double > myDroneFullAmountAttr
Definition droneControlLogic.h:227
virtual void toggleDroneLoiter()
DtAttributeHandleType< bool > myDroneManualControlAttr
Definition droneControlLogic.h:215
virtual void cycleDroneLoiterOrbitDirection()
virtual void toggleDroneAutopilotMode()
virtual void checkForDroneBatteryWarning(float amount)
bool isSupportedDroneWeaponTargetingMethod(const std::string &targetingMethod) const
ObserverAttachMode myCachedAttachMode
Definition droneControlLogic.h:186
bool myDroneLoiterUseCurrentRelativeBearingDeg
Definition droneControlLogic.h:199
double myDroneStatusUpdateDisplayTime
Definition droneControlLogic.h:183
float myMaxDGain
Definition droneControlLogic.h:172
void restartDroneLoiterIfActive()
void onForwardControlsChanged(bool forwardControls)
bool myLookAtDroneOnUse
Definition droneControlLogic.h:188
virtual makVre::DtVreMessageResult handleResourceUpdate(makVre::DtVreMessage *msg)
SensorViews myLastSensorViewMode
Definition droneControlLogic.h:190
virtual makVre::DtVreMessageResult handleWeaponConfigResponse(makVre::DtVreMessage *msg)
std::map< int, bool > myDroneBatteryWarnings
Definition droneControlLogic.h:182
void updateDroneLoiterModeAttributes()
virtual void setFocusOnEntity(bool val)
virtual makVre::DtVreMessageResult handleEnterPlayerState(makVre::DtVreMessage *msg)
bool myDroneLoiterOrbitClockwise
Definition droneControlLogic.h:201
DtAttributeHandleType< bool > myUsingDroneAttr
Definition droneControlLogic.h:210
virtual void cycleDroneLoiterMode()
std::string mySelectedDroneWeaponName
Definition droneControlLogic.h:189
virtual const char * type() const override
Returns the component type identifier.
virtual bool initialize(DtPlayerStation *player, DtInitTable &config) override
Initializes the entity control logic.
DtAttributeHandleType< std::vector< std::string > > myDroneSensorModesAttr
Definition droneControlLogic.h:205
virtual void toggleRemoteViewViewport()
double myDroneLoiterRelativeHorizontalDistanceMeters
Definition droneControlLogic.h:198
DtAttributeHandleType< DtDamageState > myOwnshipDamageStateAttr
Definition droneControlLogic.h:222
DtAttributeHandleType< bool > myDroneStopUsingAvailableAttr
Definition droneControlLogic.h:209
virtual makVre::DtVreMessageResult handleExitPlayerState(makVre::DtVreMessage *msg)
bool myThirdPersonOnUseDrone
Definition droneControlLogic.h:185
virtual void setDroneLoiterRelativeAltitudeFromDisplay(const std::string &value)
DtAttributeHandleType< std::string > myDroneLoiterOrbitDirectionNameAttr
Definition droneControlLogic.h:221
bool myDroneLoiterUseCurrentRelativeHorizontalDistanceMeters
Definition droneControlLogic.h:197
DtAttributeHandleType< bool > myDroneSignalLostAttr
Definition droneControlLogic.h:207
float myPGain
Definition droneControlLogic.h:175
virtual void setDroneLoiterRelativeHorizontalDistanceFromDisplay(const std::string &value)
DtAttributeHandleType< std::string > myDroneLoiterModeNameAttr
Definition droneControlLogic.h:216
void onUsingDroneChanged(bool usingDrone)
DtAttributeHandleType< bool > myDroneLoiteringAttr
Definition droneControlLogic.h:226
DtAttributeHandleType< bool > myDroneSignalLostDismissedAttr
Definition droneControlLogic.h:208
DtAttributeHandleType< DeployableObjectStateMap > myDeployableObjectsAttr
Definition droneControlLogic.h:224
virtual void returnToHome()
virtual void setForwardControls(bool val)
virtual void dismissDroneSignalLost()
virtual makVre::DtVreMessageResult handleEntityRemoved(makVre::DtVreMessage *msg)
virtual void stopUsingDroneOrDismissSignalLost()
virtual void useDrone(const DtEntityIdentifier &id=DtEntityIdentifier::nullId(), const std::string &marking="")
DtAttributeHandleType< int > myDroneCurrentSensorAttr
Definition droneControlLogic.h:204
virtual void shutdown() override
Shuts down the entity control logic.
std::map< enum SensorViews, std::string > mySensorModes
Definition droneControlLogic.h:191
void onDamageStateChanged(DtDamageState val)
double myDroneLoiterRelativeBearingDeg
Definition droneControlLogic.h:200
virtual void setDroneLoiterRelativeBearingFromDisplay(const std::string &value)
void updateLoiterDisplayAttributes()
DtAttributeHandleType< bool > myFocusOnEntityAttr
Definition droneControlLogic.h:212
virtual makVre::DtVreMessageResult handleSimState(makVre::DtVreMessage *msg) override
Message handlers.
bool myShowPidMenu
Definition droneControlLogic.h:180
int myDroneLoiterModeIndex
Definition droneControlLogic.h:203
float myMaxPGain
Definition droneControlLogic.h:170
virtual makVre::DtVreMessageResult handleEntityRealized(makVre::DtVreMessage *msg)
float myFGain
Definition droneControlLogic.h:178
DtAttributeHandleType< std::string > myDroneLoiterRelativeHorizontalDistanceDisplayAttr
Definition droneControlLogic.h:219
float myMaxIGain
Definition droneControlLogic.h:171
virtual void stopUsingDrone(bool force=false)
Releases the drone currently in use, closing its remote view and releasing control.
virtual bool postInitialize() override
Performs post-initialization setup.
float myDGain
Definition droneControlLogic.h:177
DtAttributeHandleType< DtEntityIdentifier > myDroneEntityIdAttr
Definition droneControlLogic.h:211
DtAttributeHandleType< bool > myDroneLoiterModeIsOrbitAttr
Definition droneControlLogic.h:217
virtual bool operatingDrone()
void requestDroneWeaponConfig(const DtEntityIdentifier &droneId)
DtAttributeHandleType< std::string > myRemoteViewChannelNameAttr
Definition droneControlLogic.h:225
DtAttributeHandleType< std::string > myDroneCurrentSensorNameAttr
Definition droneControlLogic.h:206
virtual void toggleForwardControls()
virtual ~DtDroneControlLogic() override
float myIGain
Definition droneControlLogic.h:176
virtual void tick(double dt) override
Updates the entity control logic each frame.
virtual void setDroneDestroyed()
float myMaxFGain
Definition droneControlLogic.h:173
DtDroneInputLogic * myInputLogic
Definition droneControlLogic.h:168
DtRwLocationReference myDroneLoiterTargetRef
Definition droneControlLogic.h:193
DtAttributeHandleType< std::string > myDroneLoiterRelativeAltitudeDisplayAttr
Definition droneControlLogic.h:218
DtAttributeHandleType< bool > myForwardControlsAttr
Definition droneControlLogic.h:213
void selectDroneWeapon(const DtEntityIdentifier &droneId, const std::string &weaponName)
DtEntityControlLogic()
Constructor.
Table-based access to Lua state for configuration data.
Definition initializer.h:38
virtual DtPlayerStation & player()
Gets the player station.
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Defines the logic for controlling entities in VR-Engage.
constexpr const char * thirdPersonOnUseDrone
Definition droneControlLogic.h:65
constexpr const char * droneSensorModes
Definition droneControlLogic.h:47
constexpr const char * loiterDefaultsRelativeHorizontalDistanceMeters
Definition droneControlLogic.h:80
constexpr const char * maxDGain
Definition droneControlLogic.h:53
constexpr const char * maxFGain
Definition droneControlLogic.h:56
constexpr const char * loiterDefaultsRelativeAltitudeFeet
Definition droneControlLogic.h:77
constexpr const char * loiterDefaults
\vreRoleParam{loiterDefaults,table,{},droneControlLogic,Optional defaults for loiter mode,...
Definition droneControlLogic.h:71
constexpr const char * maxPGain
Definition droneControlLogic.h:62
constexpr const char * droneStatusUpdateDisplayTime
Definition droneControlLogic.h:50
constexpr const char * maxIGain
Definition droneControlLogic.h:59
constexpr const char * loiterDefaultsMode
Definition droneControlLogic.h:74
constexpr const char * lookAtDroneOnUse
Definition droneControlLogic.h:68
constexpr const char * loiterDefaultsOrbitDirection
Definition droneControlLogic.h:86
constexpr const char * droneOverlaySections
Definition droneControlLogic.h:44
constexpr const char * loiterDefaultsRelativeBearingDeg
Definition droneControlLogic.h:83
constexpr const char * droneBatteryWarnings
Definition droneControlLogic.h:41
Defines export/import macros for the vreCommonComponents library.
#define VRECOMMONCOMPONENTS_DLL
DLL export/import macro for the vreCommonComponents library.
Definition export.h:28
Definition droneControlLogic.h:33
!
Definition glsVreMessageUtil.h:50
ObserverAttachMode
Enumeration of camera/observer attachment offsets.
Definition stateDefines.h:44
constexpr const char * DtDroneControlLogicType
Type identifier for DtDroneControlLogic component.
Definition droneControlLogic.h:94
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
SensorViews
Enumeration of available sensor view modes.
Definition stateDefines.h:18
Definition appLauncherComponent.h:28
Common enumeration definitions used throughout the VREngage system.
Defines the base class for all VREngage messages.