VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtSpectatorHudUpdater Class Reference

Detailed Description

This component manages the spectator's heads-up display (HUD), providing real-time information overlay and visual feedback. It updates HUD elements based on simulation state and spectator interactions, displaying relevant information such as objectives, location data, and event notifications.

#include <hudUpdater.h>

Inheritance diagram for makVre::DtSpectatorHudUpdater:
[legend]

Public Member Functions

 DtSpectatorHudUpdater ()
 
virtual ~DtSpectatorHudUpdater () override
 
virtual bool initialize (makVre::DtPlayerStation *player, makVre::DtInitTable &config) override
 
virtual void tick (double dt) override
 
virtual const char * type () const override
 
virtual void shutdown () override
 
- Public Member Functions inherited from makVre::DtPlayerComponent
 DtPlayerComponent ()
 
virtual ~DtPlayerComponent ()
 
virtual bool postInitialize ()
 
virtual void setName (const std::string &name)
 
virtual const std::string & name ()
 
virtual DtPlayerStationplayer ()
 
virtual DtAttributeHandleplayerAttributeStore ()
 
virtual const DtAttributeHandleplayerAttributeStore () const
 

Additional Inherited Members

- Protected Member Functions inherited from makVre::DtPlayerComponent
virtual void initializeStateAttributes ()
 
- Protected Attributes inherited from makVre::DtPlayerComponent
std::string myName
 
DtInitTable myConfig
 
DtPlayerStationmyPlayer
 
makVrv::DtDe * myDe
 
DtEntityResolvermyResolver
 
DtAttributeCallbackManager myAttributeCallbacks
 

Constructor & Destructor Documentation

◆ DtSpectatorHudUpdater()

makVre::DtSpectatorHudUpdater::DtSpectatorHudUpdater ( )

Default constructor.

◆ ~DtSpectatorHudUpdater()

virtual makVre::DtSpectatorHudUpdater::~DtSpectatorHudUpdater ( )
overridevirtual

Virtual destructor.

Member Function Documentation

◆ initialize()

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

Initializes the HUD updater component.

Parameters
playerPointer to the player station
configReference to the initialization configuration
Returns
True if initialization was successful, false otherwise

Sets up HUD elements and registers message handlers for HUD events

Reimplemented from makVre::DtPlayerComponent.

References makVre::DtPlayerComponent::player().

◆ tick()

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

Updates HUD state each frame.

Parameters
dtDelta time since the last update in seconds

Updates HUD elements based on current simulation state

Implements makVre::DtPlayerComponent.

◆ type()

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

Returns the component type identifier.

Returns
The component type string

Implements makVre::DtPlayerComponent.

◆ shutdown()

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

Performs cleanup when the component is shut down.

Releases HUD resources and unregisters message handlers

Reimplemented from makVre::DtPlayerComponent.


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