14 #include <CigiBaseVariableSizePckt.h>
111 virtual int Pack(CigiBasePacket *
Base, Cigi_uint8 * Buff,
void *Spec)
const = 0;
123 virtual int Unpack(Cigi_uint8 * Buff,
bool Swap,
void *Spec) = 0;
133 {
return(PacketSize + refPacket.GetVariableDataSize()); }
151 myEntityID = EntityIDIn;
152 return(CIGI_SUCCESS);
175 myPostureEn = PostureEnIn;
176 return(CIGI_SUCCESS);
198 int SetPosture(
const PostureGrp PostureIn,
bool bndchk=
true);
222 myWeaponStateEn = WeaponStateEnIn;
223 return(CIGI_SUCCESS);
243 int SetWeaponState(
const WeaponStateGrp WeaponStateIn,
bool bndchk=
true);
265 myAnimationStateEn = AnimationStateEnIn;
266 return(CIGI_SUCCESS);
286 int SetAnimationState(
const AnimationStateGrp AnimationStateIn,
bool bndchk=
true);
308 myHealthStateEn = HealthStateEnIn;
309 return(CIGI_SUCCESS);
329 int SetHealthState(
const HealthStateGrp HealthStateIn,
bool bndchk=
true);
351 myAnimationSpeedEn = AnimationSpeedEnIn;
352 return(CIGI_SUCCESS);
369 int SetAnimationSpeed(
const double AnimationSpeedIn,
bool bndchk=
true);
389 myScaleEn = ScaleEnIn;
390 return(CIGI_SUCCESS);
408 int SetScale(
float XScaleIn,
float YScaleIn,
float ZScaleIn,
bool bndchk=
true);
416 void GetScale(
float& XScaleOut,
float& YScaleOut,
float& ZScaleOut )
const;
430 myWeightEn = WeightEnIn;
431 return(CIGI_SUCCESS);
447 int SetWeight(
const float WeightIn,
bool bndchk=
true);
459 int SetAnimation(
const std::string &AnimationIn,
bool bndchk=
true);
474 int SetHeadAppearance(
const std::string &HeadAppearanceIn,
bool bndchk=
true);
490 int SetItemAppearance(
const std::string &ItemAppearanceIn,
bool bndchk=
true);
503 static int CalculatePaddedStringSize(
int StringSizeIn );
504 static void BufferToString( PackPointer& CDta, std::string& StringOut );
543 static const int MaxStringCharCnt = 71;
const std::string & GetItemAppearance(void) const
Gets the Item Appearance string.
Definition: DtCigiBaseDiGuyCtrlExt.h:500
int SetWeightEn(const bool WeightEnIn, bool bndchk=true)
Sets the WeightEn with bound checking control.
Definition: DtCigiBaseDiGuyCtrlExt.h:428
AnimationStateGrp
The enumeration for the Animation Paused/Not Paused flag.
Definition: DtCigiBaseDiGuyCtrlExt.h:41
Cigi_uint16 myEntityID
Definition: DtCigiBaseDiGuyCtrlExt.h:509
WeaponStateGrp GetWeaponState(void) const
Gets the WeaponState value.
Definition: DtCigiBaseDiGuyCtrlExt.h:251
const std::string & GetAnimation(void) const
Gets the Animation (Action) string.
Definition: DtCigiBaseDiGuyCtrlExt.h:468
float myWeight
Definition: DtCigiBaseDiGuyCtrlExt.h:524
int SetAnimationStateEn(const bool AnimationStateEnIn, bool bndchk=true)
Sets the AnimationStateEn with bound checking control.
Definition: DtCigiBaseDiGuyCtrlExt.h:263
const int CIGI_DI_GUY_CTRL_EXT_PACKET_SIZE
Definition: DtCigiBaseDiGuyCtrlExt.h:24
PostureGrp GetPosture(void) const
Gets the Posture value.
Definition: DtCigiBaseDiGuyCtrlExt.h:208
WeaponStateGrp
The enumeration for the Weapon State flag.
Definition: DtCigiBaseDiGuyCtrlExt.h:50
The base class for all packets.
Definition: DtCigiBaseDiGuyCtrlExt.h:34
int GetAnimationSize(void) const
Definition: DtCigiBaseDiGuyCtrlExt.h:463
Cigi_uint16 GetEntityID(void) const
Gets the Entity ID value.
Definition: DtCigiBaseDiGuyCtrlExt.h:161
PostureGrp
The enumeration for the Posture flags.
Definition: DtCigiBaseDiGuyCtrlExt.h:59
std::string myHeadAppearance
Definition: DtCigiBaseDiGuyCtrlExt.h:515
int myHeadAppearanceSize
Definition: DtCigiBaseDiGuyCtrlExt.h:514
float myYScale
Definition: DtCigiBaseDiGuyCtrlExt.h:522
double myAnimationSpeed
Definition: DtCigiBaseDiGuyCtrlExt.h:518
double GetAnimationSpeed(void) const
Gets the AnimationSpeed.
Definition: DtCigiBaseDiGuyCtrlExt.h:375
Contains DLL export macros.
PostureGrp myPosture
Definition: DtCigiBaseDiGuyCtrlExt.h:510
int GetHeadAppearanceSize(void) const
Definition: DtCigiBaseDiGuyCtrlExt.h:479
HealthStateGrp
The enumeration for the Health flag.
Definition: DtCigiBaseDiGuyCtrlExt.h:70
int myItemAppearanceSize
Definition: DtCigiBaseDiGuyCtrlExt.h:516
bool myPostureEn
Definition: DtCigiBaseDiGuyCtrlExt.h:526
bool myScaleEn
Definition: DtCigiBaseDiGuyCtrlExt.h:531
float GetWeight(void) const
Gets the Weight.
Definition: DtCigiBaseDiGuyCtrlExt.h:453
AnimationStateGrp myAnimationState
Definition: DtCigiBaseDiGuyCtrlExt.h:519
virtual int GetTruePacketSize(CigiBaseVariableSizePckt &refPacket)
A virtual function to determine the size that the packet will take up when packed.
Definition: DtCigiBaseDiGuyCtrlExt.h:132
bool GetScaleEn(void) const
Gets the ScaleEn value.
Definition: DtCigiBaseDiGuyCtrlExt.h:396
const int CIGI_DI_GUY_CTRL_EXT_PACKET_SIZE_V4
Definition: DtCigiBaseDiGuyCtrlExt.h:29
bool GetAnimationStateEn(void) const
Gets the AnimationStateEn value.
Definition: DtCigiBaseDiGuyCtrlExt.h:272
bool GetWeightEn(void) const
Gets the WeightEn value.
Definition: DtCigiBaseDiGuyCtrlExt.h:437
HealthStateGrp GetHealthState(void) const
Gets the HealthState value.
Definition: DtCigiBaseDiGuyCtrlExt.h:337
int SetPostureEn(const bool PostureEnIn, bool bndchk=true)
Sets the PostureEn with bound checking control.
Definition: DtCigiBaseDiGuyCtrlExt.h:173
int GetItemAppearanceSize(void) const
Definition: DtCigiBaseDiGuyCtrlExt.h:495
const int CIGI_DI_GUY_CTRL_EXT_PACKET_ID_V4
Definition: DtCigiBaseDiGuyCtrlExt.h:26
int myAnimationSize
Definition: DtCigiBaseDiGuyCtrlExt.h:512
bool GetWeaponStateEn(void) const
Gets the WeaponStateEn value.
Definition: DtCigiBaseDiGuyCtrlExt.h:229
int SetHealthStateEn(const bool HealthStateEnIn, bool bndchk=true)
Sets the HealthStateEn with bound checking control.
Definition: DtCigiBaseDiGuyCtrlExt.h:306
int SetEntityID(const Cigi_uint16 EntityIDIn, bool bndchk=true)
Sets the Entity ID with bound checking control.
Definition: DtCigiBaseDiGuyCtrlExt.h:149
const int CIGI_DI_GUY_CTRL_EXT_PACKET_ID
Definition: DtCigiBaseDiGuyCtrlExt.h:21
int SetWeaponStateEn(const bool WeaponStateEnIn, bool bndchk=true)
Sets the WeaponStateEn with bound checking control.
Definition: DtCigiBaseDiGuyCtrlExt.h:220
bool myHealthStateEn
Definition: DtCigiBaseDiGuyCtrlExt.h:530
int SetScaleEn(const bool ScaleEnIn, bool bndchk=true)
Sets the ScaleEn with bound checking control.
Definition: DtCigiBaseDiGuyCtrlExt.h:387
AnimationStateGrp GetAnimationState(void) const
Gets the AnimationState value.
Definition: DtCigiBaseDiGuyCtrlExt.h:294
const std::string & GetHeadAppearance(void) const
Gets the Head Appearance string.
Definition: DtCigiBaseDiGuyCtrlExt.h:484
std::string myAnimation
Definition: DtCigiBaseDiGuyCtrlExt.h:513
#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:349
bool myAnimationSpeedEn
Definition: DtCigiBaseDiGuyCtrlExt.h:529
bool myAnimationStateEn
Definition: DtCigiBaseDiGuyCtrlExt.h:528
bool myWeightEn
Definition: DtCigiBaseDiGuyCtrlExt.h:532
WeaponStateGrp myWeaponState
Definition: DtCigiBaseDiGuyCtrlExt.h:511
float myXScale
Definition: DtCigiBaseDiGuyCtrlExt.h:521
std::string myItemAppearance
Definition: DtCigiBaseDiGuyCtrlExt.h:517
float myZScale
Definition: DtCigiBaseDiGuyCtrlExt.h:523
bool GetPostureEn(void) const
Gets the PostureEn value.
Definition: DtCigiBaseDiGuyCtrlExt.h:182
bool GetHealthStateEn(void) const
Gets the HealthStateEn value.
Definition: DtCigiBaseDiGuyCtrlExt.h:315
HealthStateGrp myHealthState
Definition: DtCigiBaseDiGuyCtrlExt.h:520
bool myWeaponStateEn
Definition: DtCigiBaseDiGuyCtrlExt.h:527
bool GetAnimationSpeedEn(void) const
Gets the AnimationSpeedEn value.
Definition: DtCigiBaseDiGuyCtrlExt.h:358