![]() |
VR-Forces Developer's Guide
|
Identifies a single burst sequence so callers can cancel pending (not-yet-spawned) rounds.
Pass to DtOsgBallisticManager::cancelBurst() to abort a burst early. Already-spawned projectiles continue to simulate until their natural expiry; only rounds not yet spawned are discarded. A default-constructed handle is invalid (isValid() == false).
Public Member Functions | |
| DtBallisticBurstHandle () | |
| DtBallisticBurstHandle (uint64_t id) | |
| bool | isValid () const |
| uint64_t | id () const |
| bool | operator== (const DtBallisticBurstHandle &other) const |
| bool | operator!= (const DtBallisticBurstHandle &other) const |
Protected Attributes | |
| uint64_t | myId |
| makVrv::DtBallisticBurstHandle::DtBallisticBurstHandle | ( | ) |
Constructs an invalid handle (isValid() returns false).
| makVrv::DtBallisticBurstHandle::DtBallisticBurstHandle | ( | uint64_t | id | ) |
Constructs a handle with the given opaque burst ID.
Callers should not construct handles directly; use DtOsgBallisticManager::createProjectiles().
| id | Opaque burst identifier assigned by the manager. |
| bool makVrv::DtBallisticBurstHandle::isValid | ( | ) | const |
Returns true if this handle refers to a live or recently completed burst record.
A default-constructed handle always returns false.
| uint64_t makVrv::DtBallisticBurstHandle::id | ( | ) | const |
Returns the opaque burst identifier.
| bool makVrv::DtBallisticBurstHandle::operator== | ( | const DtBallisticBurstHandle & | other | ) | const |
Returns true if both handles refer to the same burst.
| bool makVrv::DtBallisticBurstHandle::operator!= | ( | const DtBallisticBurstHandle & | other | ) | const |
Returns true if the handles refer to different bursts.
|
protected |
Opaque burst ID assigned by the manager; 0 indicates an invalid handle.