|
VR-Engage
2.2
|
This class implements a specialized network interface for local entities in VREngage. It extends the standard interface with VREngage-specific functionality, particularly for improving the network update rates of player-controlled entities to ensure smoother movement and interactions in networked simulations.
#include <vreIndLocalNetIfWithProperties.h>
Public Member Functions | |
| DtVreIndividualLocalEntityNetInterface (makVrf::DtStateData *vrfObject, makVrf::DtVrlinkNetworkInterface *mgr, bool publishObject=true) | |
| virtual | ~DtVreIndividualLocalEntityNetInterface () |
| virtual void | updatePublisher () |
| virtual DtString | type () const |
Static Public Member Functions | |
| static DtSimObjectNetInterface * | creator (makVrf::DtStateData *vrfObject, makVrf::DtVrlinkNetworkInterface *mgr, bool publishObject) |
Protected Member Functions | |
| virtual bool | isPlayerControlled () |
Private Member Functions | |
| DtVreIndividualLocalEntityNetInterface () | |
| DtVreIndividualLocalEntityNetInterface (const DtVreIndividualLocalEntityNetInterface &orig) | |
| const DtVreIndividualLocalEntityNetInterface & | operator= (const DtVreIndividualLocalEntityNetInterface &orig) |
| makVre::DtVreIndividualLocalEntityNetInterface::DtVreIndividualLocalEntityNetInterface | ( | makVrf::DtStateData * | vrfObject, |
| makVrf::DtVrlinkNetworkInterface * | mgr, | ||
| bool | publishObject = true ) |
Constructor.
| vrfObject | The state data object for the entity |
| mgr | The VRLink network interface manager |
| publishObject | Flag indicating whether this object should be published (default: true) |
Initializes a new network interface for the specified entity with VREngage-specific enhancements for network publication.
Referenced by DtVreIndividualLocalEntityNetInterface(), and operator=().
|
virtual |
Destructor.
Cleans up resources used by the network interface.
|
private |
Default constructor (not implemented)
Default constructor is private and not implemented to prevent creation of instances without proper initialization.
|
private |
Copy constructor (not implemented)
| orig | The source object |
Copy constructor is private and not implemented to prevent copying.
References DtVreIndividualLocalEntityNetInterface().
|
virtual |
Updates the VR-Link publisher with current entity state.
Copies entity state data from the VR-Forces state components into the VR-Link state repository for publication to the network. This implementation enhances the update behavior for player-controlled entities to improve network fidelity of movement and other state changes.
|
virtual |
Gets the type identifier for this network interface.
Returns a unique type identifier string for this custom network interface. This is overridden to completely replace the default VR-Forces interface in the interface factory system.
|
static |
Factory function to create a new instance of this interface.
| vrfObject | The state data object for the entity |
| mgr | The VRLink network interface manager |
| publishObject | Flag indicating whether this object should be published |
Static factory function used by the interface creation system to instantiate new instances of this network interface type.
|
protectedvirtual |
Determines if the entity is currently player-controlled.
Checks if the entity is currently being controlled by a player in any role. This is determined by examining the extended data map for an entry starting with the string "role-" and having a non-empty string value, which indicates that a player is assigned to the entity in some capacity.
|
private |
Assignment operator (not implemented)
| orig | The source object |
Assignment operator is private and not implemented to prevent assignment.
References DtVreIndividualLocalEntityNetInterface().