VR-Engage  2.2
Loading...
Searching...
No Matches
entityDetectionControlLogic.h
Go to the documentation of this file.
1/******************************************************************************
2** Copyright (c) 2024 MAK Technologies
3** All rights reserved.
4******************************************************************************/
5
6//! \brief Frontend component that subscribes to detection reports and updates
7//! the player attribute store with radar detection information for UI display.
8
9#pragma once
10
13
14constexpr auto DtEntityDetectionControlLogicType = "DtEntityDetectionControlLogic";
15
17{
18public:
21
22 //! Returns the component type identifier.
23 virtual const char* type() const override;
24
25 //! Configures message handlers and attribute store bindings.
27
28 virtual void shutdown() override;
29
30 virtual void tick(double dt) override {}
31
32 //! Handles incoming detection report messages from the simulation backend.
34
35protected:
36
38};
virtual bool initialize(makVre::DtPlayerStation *player, makVre::DtInitTable &config) override
Configures message handlers and attribute store bindings.
makVre::DtAttributeHandle myRadarDetections
Definition entityDetectionControlLogic.h:37
virtual ~DtEntityDetectionControlLogic() override
virtual const char * type() const override
Returns the component type identifier.
makVre::DtVreMessageResult handleDetectionReport(makVre::DtVreMessage *msg)
Handles incoming detection report messages from the simulation backend.
virtual void shutdown() override
Shuts down the component.
virtual void tick(double dt) override
Updates the component.
Definition entityDetectionControlLogic.h:30
Handle class for safe access to attributes.
Definition attributeHandle.h:30
Table-based access to Lua state for configuration data.
Definition initializer.h:38
Base class for all role components in VR-Engage.
Definition playerComponent.h:78
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
constexpr auto DtEntityDetectionControlLogicType
Frontend component that subscribes to detection reports and updates the player attribute store with r...
Definition entityDetectionControlLogic.h:14
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
Defines the DtPlayerComponent base class for VR-Engage role components.
Defines the DtPlayerStation class for managing engaged roles.