VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCigiBaseDiGuyExecuteGesture.h
Go to the documentation of this file.
1 
5 
6 #pragma once
7 
9 
10 #include <CigiBaseVariableSizePckt.h>
11 
12 #include <string>
13 
14 namespace makCigiExt
15 {
16 
18 
19  // This is the size of the FIXED portion of the packet
21 
23 
24  // This is the size of the FIXED portion of the packet
26 
27  //=========================================================
32  {
33  public:
34 
35  //==> Management
36 
37  //=========================================================
41 
42  //=========================================================
45  virtual ~DtCigiBaseDiGuyExecuteGesture(void);
46 
47  //=========================================================
51 
52  //=========================================================
56 
57  //==> Buffer Packing/Unpacking
58 
59  //=========================================================
70  virtual int Pack(CigiBasePacket * Base, Cigi_uint8 * Buff, void *Spec) const = 0;
71 
72  //=========================================================
82  virtual int Unpack(Cigi_uint8 * Buff, bool Swap, void *Spec) = 0;
83 
84  //=========================================================
92  { return(PacketSize + refPacket.GetVariableDataSize()); }
93 
94  //==> Accessing Member Variable Values functions
95 
96  //+> EntityID
97 
98  //=========================================================
108  int SetEntityID(const Cigi_uint16 EntityIDIn, bool bndchk=true)
109  {
110  myEntityID = EntityIDIn;
111  return(CIGI_SUCCESS);
112  }
113 
114  //=========================================================
120  Cigi_uint16 GetEntityID(void) const { return(myEntityID); }
121 
122  //+> PostureEn
123 
124  //=========================================================
132  int SetRepetitionsEn(const bool RepetitionsEnIn, bool bndchk=true)
133  {
134  myRepetitionsEn = RepetitionsEnIn;
135  return(CIGI_SUCCESS);
136  }
137 
138  //=========================================================
141  bool GetRepetitionsEn(void) const { return(myRepetitionsEn); }
142 
143  //+> Repetitions
144 
145  //=========================================================
155  int SetRepetitions(const Cigi_uint16 RepetitionsIn, bool bndchk=true);
156 
157  //=========================================================
161  Cigi_uint16 GetRepetitions(void) const { return(myRepetitions); }
162 
163  //+> WeaponStateEn
164 
165  //=========================================================
173  int SetDurationEn(const bool DurationEnIn, bool bndchk=true)
174  {
175  myDurationEn = DurationEnIn;
176  return(CIGI_SUCCESS);
177  }
178 
179  //=========================================================
182  bool GetDurationEn(void) const { return(myDurationEn); }
183 
184  //+> Duration
185 
186  //=========================================================
195  int SetDuration(float DurationIn, bool bndchk=true);
196 
197  //=========================================================
203  float GetDuration(void) const { return(myDuration); }
204 
205  //+> ChannelAWeightEn
206 
207  //=========================================================
215  int SetChannelAWeightEn(const bool ChannelAWeightEnIn, bool bndchk=true)
216  {
217  myChannelAWeightEn = ChannelAWeightEnIn;
218  return(CIGI_SUCCESS);
219  }
220 
221  //=========================================================
224  bool GetChannelAWeightEn(void) const { return(myChannelAWeightEn); }
225 
226  //+> ChannelAWeight
227 
228  //=========================================================
237  int SetChannelAWeight(float ChannelAWeightIn, bool bndchk=true);
238 
239  //=========================================================
243  float GetChannelAWeight(void) const { return(myChannelAWeight); }
244 
245  //+> Gesture
246 
249  int SetGesture(const std::string &GestureIn, bool bndchk=true);
250 
253  int GetGestureSize(void) const { return(VariableDataSize); }
254 
255  //=========================================================
258  const std::string & GetGesture(void) const { return(myGesture); }
259 
260  protected:
261 
262  Cigi_uint16 myEntityID;
263  Cigi_uint16 myRepetitions;
264  float myDuration;
266  std::string myGesture;
267 
271 
272  //=========================================================
278  static const int MaxCharCnt = 221;
279  };
280 }
281 
The base class for all execute gesture packets.
Definition: DtCigiBaseDiGuyExecuteGesture.h:30
int SetChannelAWeightEn(const bool ChannelAWeightEnIn, bool bndchk=true)
Sets the ChannelAWeightEn with bound checking control.
Definition: DtCigiBaseDiGuyExecuteGesture.h:215
Cigi_uint16 GetRepetitions(void) const
Gets the Repetitions value.
Definition: DtCigiBaseDiGuyExecuteGesture.h:161
const int CIGI_DI_GUY_EXECUTE_GESTURE_PACKET_SIZE_V4
Definition: DtCigiBaseDiGuyExecuteGesture.h:25
const int CIGI_DI_GUY_EXECUTE_GESTURE_PACKET_SIZE
Definition: DtCigiBaseDiGuyExecuteGesture.h:20
int SetEntityID(const Cigi_uint16 EntityIDIn, bool bndchk=true)
Sets the Entity ID with bound checking control.
Definition: DtCigiBaseDiGuyExecuteGesture.h:108
bool GetRepetitionsEn(void) const
Gets the RepetitionsEn value.
Definition: DtCigiBaseDiGuyExecuteGesture.h:141
float myChannelAWeight
Definition: DtCigiBaseDiGuyExecuteGesture.h:265
Contains DLL export macros.
Cigi_uint16 myRepetitions
Definition: DtCigiBaseDiGuyExecuteGesture.h:263
Cigi_uint16 GetEntityID(void) const
Gets the Entity ID value.
Definition: DtCigiBaseDiGuyExecuteGesture.h:120
const std::string & GetGesture(void) const
Gets the Animation (Action) string.
Definition: DtCigiBaseDiGuyExecuteGesture.h:258
virtual int GetTruePacketSize(CigiBaseVariableSizePckt &refPacket)
A virtual function to determine the size that the packet will take up when packed.
Definition: DtCigiBaseDiGuyExecuteGesture.h:91
int GetGestureSize(void) const
Definition: DtCigiBaseDiGuyExecuteGesture.h:253
int SetDurationEn(const bool DurationEnIn, bool bndchk=true)
Sets the DurationEn with bound checking control.
Definition: DtCigiBaseDiGuyExecuteGesture.h:173
Cigi_uint16 myEntityID
Definition: DtCigiBaseDiGuyExecuteGesture.h:262
bool GetDurationEn(void) const
Gets the DurationEn value.
Definition: DtCigiBaseDiGuyExecuteGesture.h:182
float GetDuration(void) const
Gets the duration value.
Definition: DtCigiBaseDiGuyExecuteGesture.h:203
const int CIGI_DI_GUY_EXECUTE_GESTURE_PACKET_ID
Definition: DtCigiBaseDiGuyExecuteGesture.h:17
float myDuration
Definition: DtCigiBaseDiGuyExecuteGesture.h:264
bool myChannelAWeightEn
Definition: DtCigiBaseDiGuyExecuteGesture.h:270
bool GetChannelAWeightEn(void) const
Gets the ChannelAWeightEnEn value.
Definition: DtCigiBaseDiGuyExecuteGesture.h:224
#define DT_DLL_MAKCIGIEXTENSIONS
Definition: makCigiExtensions.h:17
float GetChannelAWeight(void) const
Gets the ChannelAWeight value.
Definition: DtCigiBaseDiGuyExecuteGesture.h:243
int SetRepetitionsEn(const bool RepetitionsEnIn, bool bndchk=true)
Sets the RepetitionsEn with bound checking control.
Definition: DtCigiBaseDiGuyExecuteGesture.h:132
bool myRepetitionsEn
Definition: DtCigiBaseDiGuyExecuteGesture.h:268
std::string myGesture
Definition: DtCigiBaseDiGuyExecuteGesture.h:266
bool myDurationEn
Definition: DtCigiBaseDiGuyExecuteGesture.h:269
const int CIGI_DI_GUY_EXECUTE_GESTURE_PACKET_ID_V4
Definition: DtCigiBaseDiGuyExecuteGesture.h:22

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)