10 #include <CigiBaseVariableSizePckt.h>
130 virtual int Pack(CigiBasePacket *
Base, Cigi_uint8 * Buff,
void *Spec)
const;
142 virtual int Unpack(Cigi_uint8 * Buff,
bool Swap,
void *Spec);
152 {
return(PacketSize + refPacket.GetVariableDataSize()); }
170 myEntityID = EntityIDIn;
171 return(CIGI_SUCCESS);
194 myPostureEn = PostureEnIn;
195 return(CIGI_SUCCESS);
217 int SetPosture(
const PostureGrp PostureIn,
bool bndchk=
true);
241 myWeaponStateEn = WeaponStateEnIn;
242 return(CIGI_SUCCESS);
262 int SetWeaponState(
const WeaponStateGrp WeaponStateIn,
bool bndchk=
true);
284 myAnimationStateEn = AnimationStateEnIn;
285 return(CIGI_SUCCESS);
305 int SetAnimationState(
const AnimationStateGrp AnimationStateIn,
bool bndchk=
true);
327 myHealthStateEn = HealthStateEnIn;
328 return(CIGI_SUCCESS);
348 int SetHealthState(
const HealthStateGrp HealthStateIn,
bool bndchk=
true);
370 myAnimationSpeedEn = AnimationSpeedEnIn;
371 return(CIGI_SUCCESS);
388 int SetAnimationSpeed(
const double AnimationSpeedIn,
bool bndchk=
true);
400 int SetAnimation(
const std::string &AnimationIn,
bool bndchk=
true);
432 static const int MaxCharCnt = 224;
bool GetAnimationSpeedEn(void) const
Gets the AnimationSpeedEn value.
Definition: DtCigiDiGuyCtrl.h:377
std::string myAnimation
Definition: DtCigiDiGuyCtrl.h:416
AnimationStateGrp myAnimationState
Definition: DtCigiDiGuyCtrl.h:418
double myAnimationSpeed
Definition: DtCigiDiGuyCtrl.h:417
bool GetHealthStateEn(void) const
Gets the HealthStateEn value.
Definition: DtCigiDiGuyCtrl.h:334
PostureGrp myPosture
Definition: DtCigiDiGuyCtrl.h:414
This is the original DiGuy control packet for V3. It is maintained for backward compatibility, but is deprecated. New users should use DtCigiDiGuyCtrlExt for V3.x and DtCigiDiGuyCtrlExtV4 for V4.
Definition: DtCigiDiGuyCtrl.h:53
bool myPostureEn
Definition: DtCigiDiGuyCtrl.h:421
double GetAnimationSpeed(void) const
Gets the AnimationSpeed.
Definition: DtCigiDiGuyCtrl.h:394
Cigi_uint16 GetEntityID(void) const
Gets the Entity ID value.
Definition: DtCigiDiGuyCtrl.h:180
Contains DLL export macros.
bool myHealthStateEn
Definition: DtCigiDiGuyCtrl.h:425
AnimationStateGrp GetAnimationState(void) const
Gets the AnimationState value.
Definition: DtCigiDiGuyCtrl.h:313
HealthStateGrp
The enumeration for the Health flag.
Definition: DtCigiDiGuyCtrl.h:89
bool myAnimationStateEn
Definition: DtCigiDiGuyCtrl.h:423
const int CIGI_DI_GUY_CTRL_PACKET_SIZE
Definition: DtCigiDiGuyCtrl.h:45
WeaponStateGrp myWeaponState
Definition: DtCigiDiGuyCtrl.h:415
WeaponStateGrp GetWeaponState(void) const
Gets the WeaponState value.
Definition: DtCigiDiGuyCtrl.h:270
const int CIGI_DI_GUY_CTRL_PACKET_ID
Definition: DtCigiDiGuyCtrl.h:42
int SetPostureEn(const bool PostureEnIn, bool bndchk=true)
Sets the PostureEn with bound checking control.
Definition: DtCigiDiGuyCtrl.h:192
int SetWeaponStateEn(const bool WeaponStateEnIn, bool bndchk=true)
Sets the WeaponStateEn with bound checking control.
Definition: DtCigiDiGuyCtrl.h:239
bool myAnimationSpeedEn
Definition: DtCigiDiGuyCtrl.h:424
PostureGrp
The enumeration for the Posture flags.
Definition: DtCigiDiGuyCtrl.h:78
bool GetAnimationStateEn(void) const
Gets the AnimationStateEn value.
Definition: DtCigiDiGuyCtrl.h:291
Cigi_uint16 myEntityID
Definition: DtCigiDiGuyCtrl.h:413
bool myWeaponStateEn
Definition: DtCigiDiGuyCtrl.h:422
HealthStateGrp myHealthState
Definition: DtCigiDiGuyCtrl.h:419
const std::string & GetAnimation(void) const
Gets the Animation (Action) string.
Definition: DtCigiDiGuyCtrl.h:409
bool GetWeaponStateEn(void) const
Gets the WeaponStateEn value.
Definition: DtCigiDiGuyCtrl.h:248
virtual int GetTruePacketSize(CigiBaseVariableSizePckt &refPacket)
A virtual function to determine the size that the packet will take up when packed.
Definition: DtCigiDiGuyCtrl.h:151
int SetAnimationStateEn(const bool AnimationStateEnIn, bool bndchk=true)
Sets the AnimationStateEn with bound checking control.
Definition: DtCigiDiGuyCtrl.h:282
int SetAnimationSpeedEn(const bool AnimationSpeedEnIn, bool bndchk=true)
Sets the AnimationSpeedEn with bound checking control.
Definition: DtCigiDiGuyCtrl.h:368
#define DT_DLL_MAKCIGIEXTENSIONS
Definition: makCigiExtensions.h:17
HealthStateGrp GetHealthState(void) const
Gets the HealthState value.
Definition: DtCigiDiGuyCtrl.h:356
int GetAnimationSize(void) const
Definition: DtCigiDiGuyCtrl.h:404
bool GetPostureEn(void) const
Gets the PostureEn value.
Definition: DtCigiDiGuyCtrl.h:201
WeaponStateGrp
The enumeration for the Weapon State flag.
Definition: DtCigiDiGuyCtrl.h:69
int SetHealthStateEn(const bool HealthStateEnIn, bool bndchk=true)
Sets the HealthStateEn with bound checking control.
Definition: DtCigiDiGuyCtrl.h:325
int SetEntityID(const Cigi_uint16 EntityIDIn, bool bndchk=true)
Sets the Entity ID with bound checking control.
Definition: DtCigiDiGuyCtrl.h:168
PostureGrp GetPosture(void) const
Gets the Posture value.
Definition: DtCigiDiGuyCtrl.h:227
AnimationStateGrp
The enumeration for the Animation Paused/Not Paused flag.
Definition: DtCigiDiGuyCtrl.h:60