10 #include <CigiBaseVariableSizePckt.h>
107 virtual int Pack(CigiBasePacket *
Base, Cigi_uint8 * Buff,
void *Spec)
const = 0;
119 virtual int Unpack(Cigi_uint8 * Buff,
bool Swap,
void *Spec) = 0;
129 {
return(PacketSize + refPacket.GetVariableDataSize()); }
147 myEntityID = EntityIDIn;
148 return(CIGI_SUCCESS);
171 myPostureEn = PostureEnIn;
172 return(CIGI_SUCCESS);
194 int SetPosture(
const PostureGrp PostureIn,
bool bndchk=
true);
218 myWeaponStateEn = WeaponStateEnIn;
219 return(CIGI_SUCCESS);
239 int SetWeaponState(
const WeaponStateGrp WeaponStateIn,
bool bndchk=
true);
261 myAnimationStateEn = AnimationStateEnIn;
262 return(CIGI_SUCCESS);
282 int SetAnimationState(
const AnimationStateGrp AnimationStateIn,
bool bndchk=
true);
304 myHealthStateEn = HealthStateEnIn;
305 return(CIGI_SUCCESS);
325 int SetHealthState(
const HealthStateGrp HealthStateIn,
bool bndchk=
true);
347 myAnimationSpeedEn = AnimationSpeedEnIn;
348 return(CIGI_SUCCESS);
366 int SetAnimationSpeed(
const double AnimationSpeedIn,
bool bndchk=
true);
386 myScaleEn = ScaleEnIn;
387 return(CIGI_SUCCESS);
406 int SetScale(
float XScaleIn,
float YScaleIn,
float ZScaleIn,
bool bndchk=
true);
414 void GetScale(
float& XScaleOut,
float& YScaleOut,
float& ZScaleOut )
const;
428 myWeightEn = WeightEnIn;
429 return(CIGI_SUCCESS);
446 int SetWeight(
const float WeightIn,
bool bndchk=
true);
458 int SetAnimation(
const std::string &AnimationIn,
bool bndchk=
true);
473 int SetHeadAppearance(
const std::string &HeadAppearanceIn,
bool bndchk=
true);
489 int SetItemAppearance(
const std::string &ItemAppearanceIn,
bool bndchk=
true);
502 static int CalculatePaddedStringSize(
int StringSizeIn );
503 static void BufferToString( PackPointer& CDta, std::string& StringOut );
542 static const int MaxStringCharCnt = 71;
const std::string & GetItemAppearance(void) const
Gets the Item Appearance string.
Definition: DtCigiBaseDiGuyCtrlExt.h:499
int SetWeightEn(const bool WeightEnIn, bool bndchk=true)
Sets the WeightEn with bound checking control.
Definition: DtCigiBaseDiGuyCtrlExt.h:426
AnimationStateGrp
The enumeration for the Animation Paused/Not Paused flag.
Definition: DtCigiBaseDiGuyCtrlExt.h:37
Cigi_uint16 myEntityID
Definition: DtCigiBaseDiGuyCtrlExt.h:508
WeaponStateGrp GetWeaponState(void) const
Gets the WeaponState value.
Definition: DtCigiBaseDiGuyCtrlExt.h:247
const std::string & GetAnimation(void) const
Gets the Animation (Action) string.
Definition: DtCigiBaseDiGuyCtrlExt.h:467
float myWeight
Definition: DtCigiBaseDiGuyCtrlExt.h:523
int SetAnimationStateEn(const bool AnimationStateEnIn, bool bndchk=true)
Sets the AnimationStateEn with bound checking control.
Definition: DtCigiBaseDiGuyCtrlExt.h:259
const int CIGI_DI_GUY_CTRL_EXT_PACKET_SIZE
Definition: DtCigiBaseDiGuyCtrlExt.h:20
PostureGrp GetPosture(void) const
Gets the Posture value.
Definition: DtCigiBaseDiGuyCtrlExt.h:204
WeaponStateGrp
The enumeration for the Weapon State flag.
Definition: DtCigiBaseDiGuyCtrlExt.h:46
The base class for all DiGuy Control (extended) packets.
Definition: DtCigiBaseDiGuyCtrlExt.h:30
int GetAnimationSize(void) const
Definition: DtCigiBaseDiGuyCtrlExt.h:462
Cigi_uint16 GetEntityID(void) const
Gets the Entity ID value.
Definition: DtCigiBaseDiGuyCtrlExt.h:157
PostureGrp
The enumeration for the Posture flags.
Definition: DtCigiBaseDiGuyCtrlExt.h:55
std::string myHeadAppearance
Definition: DtCigiBaseDiGuyCtrlExt.h:514
int myHeadAppearanceSize
Definition: DtCigiBaseDiGuyCtrlExt.h:513
float myYScale
Definition: DtCigiBaseDiGuyCtrlExt.h:521
double myAnimationSpeed
Definition: DtCigiBaseDiGuyCtrlExt.h:517
double GetAnimationSpeed(void) const
Gets the AnimationSpeed.
Definition: DtCigiBaseDiGuyCtrlExt.h:372
Contains DLL export macros.
PostureGrp myPosture
Definition: DtCigiBaseDiGuyCtrlExt.h:509
int GetHeadAppearanceSize(void) const
Definition: DtCigiBaseDiGuyCtrlExt.h:478
HealthStateGrp
The enumeration for the Health flag.
Definition: DtCigiBaseDiGuyCtrlExt.h:66
int myItemAppearanceSize
Definition: DtCigiBaseDiGuyCtrlExt.h:515
bool myPostureEn
Definition: DtCigiBaseDiGuyCtrlExt.h:525
bool myScaleEn
Definition: DtCigiBaseDiGuyCtrlExt.h:530
float GetWeight(void) const
Gets the Weight.
Definition: DtCigiBaseDiGuyCtrlExt.h:452
AnimationStateGrp myAnimationState
Definition: DtCigiBaseDiGuyCtrlExt.h:518
virtual int GetTruePacketSize(CigiBaseVariableSizePckt &refPacket)
A virtual function to determine the size that the packet will take up when packed.
Definition: DtCigiBaseDiGuyCtrlExt.h:128
bool GetScaleEn(void) const
Gets the ScaleEn value.
Definition: DtCigiBaseDiGuyCtrlExt.h:393
const int CIGI_DI_GUY_CTRL_EXT_PACKET_SIZE_V4
Definition: DtCigiBaseDiGuyCtrlExt.h:25
bool GetAnimationStateEn(void) const
Gets the AnimationStateEn value.
Definition: DtCigiBaseDiGuyCtrlExt.h:268
bool GetWeightEn(void) const
Gets the WeightEn value.
Definition: DtCigiBaseDiGuyCtrlExt.h:435
HealthStateGrp GetHealthState(void) const
Gets the HealthState value.
Definition: DtCigiBaseDiGuyCtrlExt.h:333
int SetPostureEn(const bool PostureEnIn, bool bndchk=true)
Sets the PostureEn with bound checking control.
Definition: DtCigiBaseDiGuyCtrlExt.h:169
int GetItemAppearanceSize(void) const
Definition: DtCigiBaseDiGuyCtrlExt.h:494
const int CIGI_DI_GUY_CTRL_EXT_PACKET_ID_V4
Definition: DtCigiBaseDiGuyCtrlExt.h:22
int myAnimationSize
Definition: DtCigiBaseDiGuyCtrlExt.h:511
bool GetWeaponStateEn(void) const
Gets the WeaponStateEn value.
Definition: DtCigiBaseDiGuyCtrlExt.h:225
int SetHealthStateEn(const bool HealthStateEnIn, bool bndchk=true)
Sets the HealthStateEn with bound checking control.
Definition: DtCigiBaseDiGuyCtrlExt.h:302
int SetEntityID(const Cigi_uint16 EntityIDIn, bool bndchk=true)
Sets the Entity ID with bound checking control.
Definition: DtCigiBaseDiGuyCtrlExt.h:145
const int CIGI_DI_GUY_CTRL_EXT_PACKET_ID
Definition: DtCigiBaseDiGuyCtrlExt.h:17
int SetWeaponStateEn(const bool WeaponStateEnIn, bool bndchk=true)
Sets the WeaponStateEn with bound checking control.
Definition: DtCigiBaseDiGuyCtrlExt.h:216
bool myHealthStateEn
Definition: DtCigiBaseDiGuyCtrlExt.h:529
int SetScaleEn(const bool ScaleEnIn, bool bndchk=true)
Sets the ScaleEn with bound checking control.
Definition: DtCigiBaseDiGuyCtrlExt.h:384
AnimationStateGrp GetAnimationState(void) const
Gets the AnimationState value.
Definition: DtCigiBaseDiGuyCtrlExt.h:290
const std::string & GetHeadAppearance(void) const
Gets the Head Appearance string.
Definition: DtCigiBaseDiGuyCtrlExt.h:483
std::string myAnimation
Definition: DtCigiBaseDiGuyCtrlExt.h:512
#define DT_DLL_MAKCIGIEXTENSIONS
Definition: makCigiExtensions.h:17
int SetAnimationSpeedEn(const bool AnimationSpeedEnIn, bool bndchk=true)
Sets the AnimationSpeedEn with bound checking control.
Definition: DtCigiBaseDiGuyCtrlExt.h:345
bool myAnimationSpeedEn
Definition: DtCigiBaseDiGuyCtrlExt.h:528
bool myAnimationStateEn
Definition: DtCigiBaseDiGuyCtrlExt.h:527
bool myWeightEn
Definition: DtCigiBaseDiGuyCtrlExt.h:531
WeaponStateGrp myWeaponState
Definition: DtCigiBaseDiGuyCtrlExt.h:510
float myXScale
Definition: DtCigiBaseDiGuyCtrlExt.h:520
std::string myItemAppearance
Definition: DtCigiBaseDiGuyCtrlExt.h:516
float myZScale
Definition: DtCigiBaseDiGuyCtrlExt.h:522
bool GetPostureEn(void) const
Gets the PostureEn value.
Definition: DtCigiBaseDiGuyCtrlExt.h:178
bool GetHealthStateEn(void) const
Gets the HealthStateEn value.
Definition: DtCigiBaseDiGuyCtrlExt.h:311
HealthStateGrp myHealthState
Definition: DtCigiBaseDiGuyCtrlExt.h:519
bool myWeaponStateEn
Definition: DtCigiBaseDiGuyCtrlExt.h:526
bool GetAnimationSpeedEn(void) const
Gets the AnimationSpeedEn value.
Definition: DtCigiBaseDiGuyCtrlExt.h:354