![]() |
VR-Forces Development_Version Class Documentation
|
The base class for all packets. More...

Public Types | |
| enum | AnimationStateGrp { Unpaused = 0, Paused = 1 } |
| The enumeration for the Animation Paused/Not Paused flag. More... | |
| enum | WeaponStateGrp { Stowed = 0, Deployed = 1 } |
| The enumeration for the Weapon State flag. More... | |
| enum | PostureGrp { Standing = 0, Sitting = 1, Crouched = 2, Prone = 3 } |
| The enumeration for the Posture flags. More... | |
| enum | HealthStateGrp { Alive = 0, Dead = 1 } |
| The enumeration for the Health flag. More... | |
Public Member Functions | |
| DtCigiDiGuyCtrl (void) | |
| General Constructor. | |
| virtual | ~DtCigiDiGuyCtrl (void) |
| General Destructor. | |
| DtCigiDiGuyCtrl (const DtCigiDiGuyCtrl &BaseIn) | |
| Copy Constructor. | |
| DtCigiDiGuyCtrl & | operator= (const DtCigiDiGuyCtrl &BaseIn) |
| Assignment operator. | |
| virtual int | Pack (CigiBasePacket *Base, Cigi_uint8 *Buff, void *Spec) const |
| A pure virtual Pack function. | |
| virtual int | Unpack (Cigi_uint8 *Buff, bool Swap, void *Spec) |
| A pure virtual Unpack function. | |
| virtual int | GetTruePacketSize (CigiBaseVariableSizePckt &refPacket) |
| A virtual function to determine the size that the packet will take up when packed. | |
| int | SetEntityID (const Cigi_uint16 EntityIDIn, bool bndchk=true) |
| Sets the Entity ID with bound checking control. | |
| Cigi_uint16 | GetEntityID (void) const |
| Gets the Entity ID value. | |
| int | SetPostureEn (const bool PostureEnIn, bool bndchk=true) |
| Sets the PostureEn with bound checking control. | |
| bool | GetPostureEn (void) const |
| Gets the PostureEn value. | |
| int | SetPosture (const PostureGrp PostureIn, bool bndchk=true) |
| Sets the Posture with bound checking control. | |
| PostureGrp | GetPosture (void) const |
| Gets the Posture value. | |
| int | SetWeaponStateEn (const bool WeaponStateEnIn, bool bndchk=true) |
| Sets the WeaponStateEn with bound checking control. | |
| bool | GetWeaponStateEn (void) const |
| Gets the WeaponStateEn value. | |
| int | SetWeaponState (const WeaponStateGrp WeaponStateIn, bool bndchk=true) |
| Sets the WeaponState with bound checking control. | |
| WeaponStateGrp | GetWeaponState (void) const |
| Gets the WeaponState value. | |
| int | SetAnimationStateEn (const bool AnimationStateEnIn, bool bndchk=true) |
| Sets the AnimationStateEn with bound checking control. | |
| bool | GetAnimationStateEn (void) const |
| Gets the AnimationStateEn value. | |
| int | SetAnimationState (const AnimationStateGrp AnimationStateIn, bool bndchk=true) |
| Sets the AnimationState with bound checking control. | |
| AnimationStateGrp | GetAnimationState (void) const |
| Gets the AnimationState value. | |
| int | SetHealthStateEn (const bool HealthStateEnIn, bool bndchk=true) |
| Sets the HealthStateEn with bound checking control. | |
| bool | GetHealthStateEn (void) const |
| Gets the HealthStateEn value. | |
| int | SetHealthState (const HealthStateGrp HealthStateIn, bool bndchk=true) |
| Sets the HealthState with bound checking control. | |
| HealthStateGrp | GetHealthState (void) const |
| Gets the HealthState value. | |
| int | SetAnimationSpeedEn (const bool AnimationSpeedEnIn, bool bndchk=true) |
| Sets the AnimationSpeedEn with bound checking control. | |
| bool | GetAnimationSpeedEn (void) const |
| Gets the AnimationSpeedEn value. | |
| int | SetAnimationSpeed (const double AnimationSpeedIn, bool bndchk=true) |
| Sets the AnimationSpeed. | |
| double | GetAnimationSpeed (void) const |
| Gets the AnimationSpeed. | |
| int | SetAnimation (const std::string &AnimationIn, bool bndchk=true) |
| int | GetAnimationSize (void) const |
| const std::string & | GetAnimation (void) const |
| Gets the Animation (Action) string. | |
Protected Attributes | |
| Cigi_uint16 | myEntityID |
| PostureGrp | myPosture |
| WeaponStateGrp | myWeaponState |
| std::string | myAnimation |
| double | myAnimationSpeed |
| AnimationStateGrp | myAnimationState |
| HealthStateGrp | myHealthState |
| bool | myPostureEn |
| bool | myWeaponStateEn |
| bool | myAnimationStateEn |
| bool | myAnimationSpeedEn |
| bool | myHealthStateEn |
Static Protected Attributes | |
| static const int | MaxCharCnt = 224 |
| MaxCharCnt The maximum number of bytes not including NULLs for the animation(action) string. | |
The base class for all packets.
| makCigiExt::DtCigiDiGuyCtrl::DtCigiDiGuyCtrl | ( | void | ) |
General Constructor.
|
virtual |
General Destructor.
| makCigiExt::DtCigiDiGuyCtrl::DtCigiDiGuyCtrl | ( | const DtCigiDiGuyCtrl & | BaseIn | ) |
Copy Constructor.
| DtCigiDiGuyCtrl& makCigiExt::DtCigiDiGuyCtrl::operator= | ( | const DtCigiDiGuyCtrl & | BaseIn | ) |
Assignment operator.
|
virtual |
A pure virtual Pack function.
This function is not implemented in this class.
| Base | - A pointer to the instance of the packet to be packed. (Downcast to CigiBasePacket) |
| Buff | - A pointer to the current pack point. |
| Spec | - A pointer to special data. |
|
virtual |
A pure virtual Unpack function.
This function is not implemented in this class.
| Buff | - A pointer to the current pack point. |
| Swap | - N/A for V1 & V2 |
| Spec | - A pointer to special data. |
|
inlinevirtual |
A virtual function to determine the size that the packet will take up when packed.
| refPacket | - A pointer to the packet being checked. |
|
inline |
Sets the Entity ID with bound checking control.
| EntityIDIn | - Uniquely identifies the specific entity 0 - The ownship All other values - An Application defined entity |
| bndchk | - Enables (true) or disables (false) bounds checking |
|
inline |
Gets the Entity ID value.
Sets the PostureEn with bound checking control.
| PostureEnIn | - Specifies if the posture data is valid and to be used. |
| bndchk | - Enables (true) or disables (false) bounds checking. |
|
inline |
Gets the PostureEn value.
| int makCigiExt::DtCigiDiGuyCtrl::SetPosture | ( | const PostureGrp | PostureIn, |
| bool | bndchk = true |
||
| ) |
Sets the Posture with bound checking control.
| PostureIn | - Specifies the DiGuy's posture 0 Standing 1 Sitting 2 Crouched 3 Prone |
| bndchk | - Enables (true) or disables (false) bounds checking |
|
inline |
Gets the Posture value.
|
inline |
Sets the WeaponStateEn with bound checking control.
| WeaponStateEnIn | - Specifies if the weaponState data is valid and to be used. |
| bndchk | - Enables (true) or disables (false) bounds checking. |
|
inline |
Gets the WeaponStateEn value.
| int makCigiExt::DtCigiDiGuyCtrl::SetWeaponState | ( | const WeaponStateGrp | WeaponStateIn, |
| bool | bndchk = true |
||
| ) |
Sets the WeaponState with bound checking control.
| WeaponStateIn | - Specifies the DiGuy's weaponState 0 Stowed 1 Deployed |
| bndchk | - Enables (true) or disables (false) bounds checking |
|
inline |
Gets the WeaponState value.
|
inline |
Sets the AnimationStateEn with bound checking control.
| AnimationStateEnIn | - Specifies if the animationState data is valid and to be used. |
| bndchk | - Enables (true) or disables (false) bounds checking. |
|
inline |
Gets the AnimationStateEn value.
| int makCigiExt::DtCigiDiGuyCtrl::SetAnimationState | ( | const AnimationStateGrp | AnimationStateIn, |
| bool | bndchk = true |
||
| ) |
Sets the AnimationState with bound checking control.
| AnimationStateIn | - Specifies the DiGuy's animation state 0 Unpaused 1 Paused |
| bndchk | - Enables (true) or disables (false) bounds checking |
|
inline |
Gets the AnimationState value.
|
inline |
Sets the HealthStateEn with bound checking control.
| HealthStateEnIn | - Specifies if the healthState data is valid and to be used. |
| bndchk | - Enables (true) or disables (false) bounds checking. |
|
inline |
Gets the HealthStateEn value.
| int makCigiExt::DtCigiDiGuyCtrl::SetHealthState | ( | const HealthStateGrp | HealthStateIn, |
| bool | bndchk = true |
||
| ) |
Sets the HealthState with bound checking control.
| HealthStateIn | - Specifies the DiGuy's health state 0 Alive 1 Dead |
| bndchk | - Enables (true) or disables (false) bounds checking |
|
inline |
Gets the HealthState value.
|
inline |
Sets the AnimationSpeedEn with bound checking control.
| AnimationSpeedEnIn | - Specifies if the animationSpeed data is valid and to be used. |
| bndchk | - Enables (true) or disables (false) bounds checking. |
|
inline |
Gets the AnimationSpeedEn value.
| int makCigiExt::DtCigiDiGuyCtrl::SetAnimationSpeed | ( | const double | AnimationSpeedIn, |
| bool | bndchk = true |
||
| ) |
Sets the AnimationSpeed.
| AnimationSpeedIn | - Specifies the animation speed If 0., DI-Guy picks the speed (which is the recommended usage) |
|
inline |
Gets the AnimationSpeed.
| int makCigiExt::DtCigiDiGuyCtrl::SetAnimation | ( | const std::string & | AnimationIn, |
| bool | bndchk = true |
||
| ) |
|
inline |
|
inline |
Gets the Animation (Action) string.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
MaxCharCnt
The maximum number of bytes not including NULLs for the animation(action) string.