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);
365 int SetAnimationSpeed(
const double AnimationSpeedIn,
bool bndchk=
true);
385 myScaleEn = ScaleEnIn;
386 return(CIGI_SUCCESS);
404 int SetScale(
float XScaleIn,
float YScaleIn,
float ZScaleIn,
bool bndchk=
true);
412 void GetScale(
float& XScaleOut,
float& YScaleOut,
float& ZScaleOut )
const;
426 myWeightEn = WeightEnIn;
427 return(CIGI_SUCCESS);
443 int SetWeight(
const float WeightIn,
bool bndchk=
true);
455 int SetAnimation(
const std::string &AnimationIn,
bool bndchk=
true);
470 int SetHeadAppearance(
const std::string &HeadAppearanceIn,
bool bndchk=
true);
486 int SetItemAppearance(
const std::string &ItemAppearanceIn,
bool bndchk=
true);
499 static int CalculatePaddedStringSize(
int StringSizeIn );
500 static void BufferToString( PackPointer& CDta, std::string& StringOut );
539 static const int MaxStringCharCnt = 71;
const std::string & GetItemAppearance(void) const
Gets the Item Appearance string.
Definition: DtCigiBaseDiGuyCtrlExt.h:496
int SetWeightEn(const bool WeightEnIn, bool bndchk=true)
Sets the WeightEn with bound checking control.
Definition: DtCigiBaseDiGuyCtrlExt.h:424
AnimationStateGrp
The enumeration for the Animation Paused/Not Paused flag.
Definition: DtCigiBaseDiGuyCtrlExt.h:37
Cigi_uint16 myEntityID
Definition: DtCigiBaseDiGuyCtrlExt.h:505
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:464
float myWeight
Definition: DtCigiBaseDiGuyCtrlExt.h:520
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:459
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:511
int myHeadAppearanceSize
Definition: DtCigiBaseDiGuyCtrlExt.h:510
float myYScale
Definition: DtCigiBaseDiGuyCtrlExt.h:518
double myAnimationSpeed
Definition: DtCigiBaseDiGuyCtrlExt.h:514
double GetAnimationSpeed(void) const
Gets the AnimationSpeed.
Definition: DtCigiBaseDiGuyCtrlExt.h:371
Contains DLL export macros.
PostureGrp myPosture
Definition: DtCigiBaseDiGuyCtrlExt.h:506
int GetHeadAppearanceSize(void) const
Definition: DtCigiBaseDiGuyCtrlExt.h:475
HealthStateGrp
The enumeration for the Health flag.
Definition: DtCigiBaseDiGuyCtrlExt.h:66
int myItemAppearanceSize
Definition: DtCigiBaseDiGuyCtrlExt.h:512
bool myPostureEn
Definition: DtCigiBaseDiGuyCtrlExt.h:522
bool myScaleEn
Definition: DtCigiBaseDiGuyCtrlExt.h:527
float GetWeight(void) const
Gets the Weight.
Definition: DtCigiBaseDiGuyCtrlExt.h:449
AnimationStateGrp myAnimationState
Definition: DtCigiBaseDiGuyCtrlExt.h:515
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:392
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:433
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:491
const int CIGI_DI_GUY_CTRL_EXT_PACKET_ID_V4
Definition: DtCigiBaseDiGuyCtrlExt.h:22
int myAnimationSize
Definition: DtCigiBaseDiGuyCtrlExt.h:508
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:526
int SetScaleEn(const bool ScaleEnIn, bool bndchk=true)
Sets the ScaleEn with bound checking control.
Definition: DtCigiBaseDiGuyCtrlExt.h:383
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:480
std::string myAnimation
Definition: DtCigiBaseDiGuyCtrlExt.h:509
#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:525
bool myAnimationStateEn
Definition: DtCigiBaseDiGuyCtrlExt.h:524
bool myWeightEn
Definition: DtCigiBaseDiGuyCtrlExt.h:528
WeaponStateGrp myWeaponState
Definition: DtCigiBaseDiGuyCtrlExt.h:507
float myXScale
Definition: DtCigiBaseDiGuyCtrlExt.h:517
std::string myItemAppearance
Definition: DtCigiBaseDiGuyCtrlExt.h:513
float myZScale
Definition: DtCigiBaseDiGuyCtrlExt.h:519
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:516
bool myWeaponStateEn
Definition: DtCigiBaseDiGuyCtrlExt.h:523
bool GetAnimationSpeedEn(void) const
Gets the AnimationSpeedEn value.
Definition: DtCigiBaseDiGuyCtrlExt.h:354