![]() |
VR-Forces Developer's Guide
|
ID value for a hit zone. Consists of a zone function (weapon, sensor, movement, etc.) and a zone number. Includes functions for packing/unpacking into an int.
Public Member Functions | |
| DtHitZoneId () | |
| DtHitZoneId (DtU8 zoneFunction, DtU8 zoneNumber) | |
| DtHitZoneId (int packedValue) | |
| bool | operator== (const DtHitZoneId &rhs) const |
| bool | operator< (const DtHitZoneId &rhs) const |
| DtU8 | zoneFunction () const |
| void | setZoneFunction (DtU8 v) |
| DtU8 | zoneNumber () const |
| void | setZoneNumber (DtU8 v) |
| int | toInt () const |
| void | setFromInt (int packedValue) |
Static Public Member Functions | |
| static DtHitZoneId | fromInt (int packedValue) |
Private Attributes | |
| DtU8 | myZoneFunction |
| DtU8 | myZoneNumber |
| DtHitZoneId::DtHitZoneId | ( | ) |
| DtHitZoneId::DtHitZoneId | ( | DtU8 | zoneFunction, |
| DtU8 | zoneNumber | ||
| ) |
|
explicit |
Construct from packed int.
|
inline |
References myZoneFunction, and myZoneNumber.
|
inline |
References myZoneFunction, and myZoneNumber.
| DtU8 DtHitZoneId::zoneFunction | ( | ) | const |
Get the zone function.
| void DtHitZoneId::setZoneFunction | ( | DtU8 | v | ) |
Set the zone function.
| DtU8 DtHitZoneId::zoneNumber | ( | ) | const |
Get the zone number.
| void DtHitZoneId::setZoneNumber | ( | DtU8 | v | ) |
Set the zone number.
| int DtHitZoneId::toInt | ( | ) | const |
Pack into int: (zoneFunction<<8)|zoneNumber.
| void DtHitZoneId::setFromInt | ( | int | packedValue | ) |
Unpack from int into members.
|
static |
|
private |
Referenced by operator<(), and operator==().
|
private |
Referenced by operator<(), and operator==().