![]() |
VR-Forces Developer's Guide
|
vrvCore singleton base class for the ballistic manager.
Provides a vrvCore-visible interface for spawning and removing GPU-simulated projectile bursts. The concrete implementation is registered by vrvOsg at startup.

Classes | |
| struct | BallisticData |
| struct | BallisticIdentifier |
Public Member Functions | |
| virtual | ~DtBallisticManager () |
| DtBallisticManager ()=delete | |
| DtBallisticManager (const DtBallisticManager &)=delete | |
| DtBallisticManager & | operator= (const DtBallisticManager &)=delete |
| virtual void | tick (void)=0 |
| virtual void | createProjectiles (const BallisticIdentifier &id, const BallisticData &data)=0 |
| virtual void | removeProjectiles (const BallisticIdentifier &id)=0 |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtBallisticManager & | instance (DtDe &de) |
Protected Member Functions | |
| DtBallisticManager (DtDe &de) | |
Protected Attributes | |
| DtDe & | myDe |
|
virtual |
Virtual destructor.
|
protected |
Protected constructor; use the concrete subclass to instantiate.
| de | The simulation environment this manager is associated with. |
|
delete |
Default construction is not supported.
|
delete |
Copy construction is not supported.
|
static |
Returns the registered DtBallisticManager singleton for the given DtDe.
| de | The simulation environment to look up the manager in. |
| DtException | if no manager has been registered. |
|
delete |
Assignment is not supported.
|
pure virtual |
Called each simulation tick; implemented by the concrete subclass.
Implemented in makVrv::DtOsgBallisticManager.
|
pure virtual |
Spawns a burst of projectiles described by the given data.
| id | Identifier of the firing entity. |
| data | Ballistic parameters for the burst. |
Implemented in makVrv::DtOsgBallisticManager.
|
pure virtual |
Cancels and removes all active projectiles fired by the given entity.
| id | Identifier of the firing entity whose projectiles should be removed. |
Implemented in makVrv::DtOsgBallisticManager.
|
protected |
Reference to the simulation environment this manager is associated with.