VR-Engage  2.3
Loading...
Searching...
No Matches
vreDiGuyController.h
Go to the documentation of this file.
1/****************************************************************************
2 * Copyright (c) 2026 MAK Technologies, Inc.
3 * All rights reserved.
4 ****************************************************************************/
5
6//! \file vreDiGuyController.h
7//! \brief Contains the DtVreDiGuyController class declaration.
8//! \ingroup vreVrfmodel
9
10#pragma once
11
13
14#include <vrfobjcore/humanLocalObjectFacade.h>
15
16#include <vrfmodel/diGuyController.h>
17
18namespace makVre
19{
20
21 //! \brief Type identifier for the VRE DiGuy controller component
22 const char DtVreDIGuyControllerType[] = "vre-di-guy-controller";
23
24 //! \brief Controller for managing DiGuy human animation and behavior.
25 //! DtVreDiGuyController extends the base DiGuy controller with VRE-specific logic
26 //! to better support player control and animation states. It provides overrides
27 //! for certain behaviors to improve the base implementation and to
28 //! ensure proper animation selection based on various entity states.
29 class VREVRFMODEL_DLL DtVreDiGuyController : public DtVreSimComponent<DtDiGuyController>
30 {
31 public:
32
33 //! \brief Constructor
34 //! Creates a new DiGuy controller component with the specified parameters.
35 //! \param name The name of this component
36 //! \param owner The local object that owns this component
37 //! \param simManager The simulation services manager
38 //! \param desc Component descriptor with configuration parameters
39 //! \param parentRegistry Optional parent registry for reader/writer functionality
40 DtVreDiGuyController( const DtString& name, DtLocalObject* owner, DtSimulationServices* simManager,
41 DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0 );
42
43 //! \brief Virtual destructor
44 //! Cleans up resources used by the DiGuy controller component.
45 virtual ~DtVreDiGuyController() override;
46
47 //! \brief Gets the type identifier for this component
48 //! Implements the DtSimComponent::type() method to return the type identifier for this component.
49 //! \return String identifying the component type (DtVreDIGuyControllerType)
50 virtual const char* type() const override;
51
52 //! \brief Factory method to create a new instance of this component
53 //! Static factory method used by the component creation system to instantiate
54 //! new instances of this component type.
55 //! \param name The name for the new component
56 //! \param owner The local object that will own this component
57 //! \param simManager The simulation services manager
58 //! \param desc Optional component descriptor
59 //! \param parentRegistry Optional parent registry for reader/writer functionality
60 //! \return Pointer to the newly created component
61 static DtSimComponent* creator( const DtString& name, DtLocalObject* owner, DtSimulationServices* simManager,
62 DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0 );
63
64 //! \brief Updates the controller state each simulation frame
65 //! Overridden to give up animation control when the entity is player-controlled.
66 //! This allows player inputs to directly control animation states rather than
67 //! having the AI controller determine animations.
68 virtual void tick() override;
69
70 // VRE NOTE: A preFirstTickInit() override that worked around VRF-5547 was
71 // removed when rebasing on VR-Forces r292798; VR-Forces fixed the issue in
72 // r244686/r246155 (before the 5.2 baseline).
73
74 private:
75
76 //! \brief Default constructor (not implemented)
77 //! Default constructor is private and not implemented to prevent
78 //! creation of instances without proper initialization.
80
81 //! \brief Copy constructor (not implemented)
82 //! Copy constructor is private and not implemented to prevent copy construction.
84
85 //! \brief Assignment operator (not implemented)
86 //! Assignment operator is private and not implemented to prevent assignment.
87 //! \return Reference to this object
89
90 };
91
92} // namespace makVre
DtVreDiGuyController()
Default constructor (not implemented) Default constructor is private and not implemented to prevent c...
DtVreDiGuyController(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Constructor Creates a new DiGuy controller component with the specified parameters.
virtual const char * type() const override
Gets the type identifier for this component Implements the DtSimComponent::type() method to return th...
const DtVreDiGuyController & operator=(const DtVreDiGuyController &orig)
Assignment operator (not implemented) Assignment operator is private and not implemented to prevent a...
DtVreDiGuyController(const DtVreDiGuyController &orig)
Copy constructor (not implemented) Copy constructor is private and not implemented to prevent copy co...
virtual ~DtVreDiGuyController() override
Virtual destructor Cleans up resources used by the DiGuy controller component.
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Factory method to create a new instance of this component Static factory method used by the component...
virtual void tick() override
Updates the controller state each simulation frame Overridden to give up animation control when the e...
DtVreSimComponent(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Definition vreSimComponent.h:63
#define VREVRFMODEL_DLL
Definition export.h:22
!
Definition glsVreMessageUtil.h:50
const char DtVreDIGuyControllerType[]
Type identifier for the VRE DiGuy controller component.
Definition vreDiGuyController.h:22
Base template class for VR-Engage simulation components.