14 #include "CigiBaseVariableSizePckt.h"
145 virtual int Pack(CigiBasePacket *
Base, Cigi_uint8 * Buff,
void *Spec)
const;
157 virtual int Unpack(Cigi_uint8 * Buff,
bool Swap,
void *Spec);
167 {
return(PacketSize + refPacket.GetVariableDataSize()); }
183 int SetEntityID(
const Cigi_uint16 EntityIDIn,
bool bndchk=
true)
185 myEntityID = EntityIDIn;
186 return(CIGI_SUCCESS);
207 int SetPostureEn(
const bool PostureEnIn,
bool bndchk=
true)
209 myPostureEn = PostureEnIn;
210 return(CIGI_SUCCESS);
232 int SetPosture(
const PostureGrp PostureIn,
bool bndchk=
true);
254 int SetWeaponStateEn(
const bool WeaponStateEnIn,
bool bndchk=
true)
256 myWeaponStateEn = WeaponStateEnIn;
257 return(CIGI_SUCCESS);
277 int SetWeaponState(
const WeaponStateGrp WeaponStateIn,
bool bndchk=
true);
297 int SetAnimationStateEn(
const bool AnimationStateEnIn,
bool bndchk=
true)
299 myAnimationStateEn = AnimationStateEnIn;
300 return(CIGI_SUCCESS);
320 int SetAnimationState(
const AnimationStateGrp AnimationStateIn,
bool bndchk=
true);
340 int SetHealthStateEn(
const bool HealthStateEnIn,
bool bndchk=
true)
342 myHealthStateEn = HealthStateEnIn;
343 return(CIGI_SUCCESS);
363 int SetHealthState(
const HealthStateGrp HealthStateIn,
bool bndchk=
true);
383 int SetAnimationSpeedEn(
const bool AnimationSpeedEnIn,
bool bndchk=
true)
385 myAnimationSpeedEn = AnimationSpeedEnIn;
386 return(CIGI_SUCCESS);
403 int SetAnimationSpeed(
const double AnimationSpeedIn,
bool bndchk=
true);
421 int SetScaleEn(
const bool ScaleEnIn,
bool bndchk=
true)
423 myScaleEn = ScaleEnIn;
424 return(CIGI_SUCCESS);
442 int SetScale(
float XScaleIn,
float YScaleIn,
float ZScaleIn,
bool bndchk=
true);
450 void GetScale(
float& XScaleOut,
float& YScaleOut,
float& ZScaleOut )
const;
462 int SetWeightEn(
const bool WeightEnIn,
bool bndchk=
true)
464 myWeightEn = WeightEnIn;
465 return(CIGI_SUCCESS);
481 int SetWeight(
const float WeightIn,
bool bndchk=
true);
493 int SetAnimation(
const std::string &AnimationIn,
bool bndchk=
true);
508 int SetHeadAppearance(
const std::string &HeadAppearanceIn,
bool bndchk=
true);
524 int SetItemAppearance(
const std::string &ItemAppearanceIn,
bool bndchk=
true);
537 static int CalculatePaddedStringSize(
int StringSizeIn );
538 static void BufferToString( PackPointer& CDta, std::string& StringOut );
577 static const int MaxStringCharCnt = 71;