VR-Exchange 2.2 API Documentation
pEntity.h
Go to the documentation of this file.
1 /*********************************************************************
2  ** Copyright (c) 1992-2010 VT MAK
3  ** All rights reserved.
4  *********************************************************************/
5 
6 
10 
11 #ifndef pEntity_H_
12 #define pEntity_H_
13 
14 
15 #include <portal/pBaseEntity.h>
16 #include <vlutil/vlString.h>
17 #include <matrix/vlTaitBryan.h>
18 #include <vlpi/articulatedPartCollection.h>
19 #include <vlpi/attachedPartCollection.h>
20 
21 namespace MAKVrExchange {
22 
26 class DT_DLL_LIBPORTAL DtPortalEntity: public DtPortalBaseEntity
27 {
28 
29 public:
30 
33 
35  virtual ~DtPortalEntity();
36 
37  DtPortalEntity(const DtPortalEntity& other);
38  DtPortalEntity &operator=(const DtPortalEntity& other);
39 
40  bool operator!=(const DtPortalEntity& other) const;
41  bool operator==(const DtPortalEntity& other) const;
42 
46 
48  DtDEC_ATTRIBUTE(DtU32, ForceId, forceId);
49 
51  DtDEC_ATTRIBUTE(DtU32, DamageState, damageState);
52 
55  DtDEC_ATTRIBUTE(DtString, MarkingText, markingText);
56 
59  DtDEC_ATTRIBUTE(DtString, FederateId, federateId);
60 
63  DtDEC_ATTRIBUTE(DtString, Guise, guise);
64 
66  DtDEC_ATTRIBUTE(DtU32, MarkingCharSet, markingCharSet);
67 
69  DtDEC_ATTRIBUTE(bool, MissionKill, missionKill);
70 
72  DtDEC_ATTRIBUTE(bool, FirePowerDisabled, firePowerDisabled);
73 
75  DtDEC_ATTRIBUTE(bool, Immobilized, immobilized);
76 
78  DtDEC_ATTRIBUTE(bool, IsConcealed, isConcealed);
79 
81  DtDEC_ATTRIBUTE(bool, EngineSmokeOn, engineSmokeOn);
82 
84  DtDEC_ATTRIBUTE(bool, PowerPlantOn, powerPlantOn);
85 
87  DtDEC_ATTRIBUTE(bool, RampDeployed, rampDeployed);
88 
90  DtDEC_ATTRIBUTE(bool, SmokePlumePresent, smokePlumePresent);
91 
93  DtDEC_ATTRIBUTE(bool, TentDeployed, tentDeployed);
94 
96  DtDEC_ATTRIBUTE(bool, AfterburnerOn,afterburnerOn);
97 
99  DtDEC_ATTRIBUTE(bool, HasAmmunitionSupplyCap,hasAmmunitionSupplyCap);
100 
102  DtDEC_ATTRIBUTE(bool, LauncherRaised,launcherRaised);
103 
105  DtDEC_ATTRIBUTE(bool, AntennaRaised,antennaRaised);
106 
108  DtDEC_ATTRIBUTE(bool, FlamesPresent, flamesPresent);
109 
111  DtDEC_ATTRIBUTE(bool, HasFuelSupplyCap, hasFuelSupplyCap);
112 
114  DtDEC_ATTRIBUTE(bool, HasRecoveryCap, hasRecoveryCap);
115 
117  DtDEC_ATTRIBUTE(bool, HasRepairCap, hasRepairCap);
118 
121  DtDEC_ATTRIBUTE(DtU32, HatchState, hatchState);
122 
125  DtDEC_ATTRIBUTE(DtU32, LifeformState, lifeformState);
126 
129  DtDEC_ATTRIBUTE(DtU32, LightState, lightState);
130 
132  DtDEC_ATTRIBUTE(DtU32, Density, density);
133 
135  DtDEC_ATTRIBUTE(DtU32, TrailState, trailState);
136 
138  DtDEC_ATTRIBUTE(DtU32, CamouflageType, camouflageType);
139 
141  DtDEC_ATTRIBUTE(DtU32, PrimaryWeaponState,primaryWeaponState);
142 
144  DtDEC_ATTRIBUTE(DtU32, SecondaryWeaponState,secondaryWeaponState);
145 
147  DtDEC_ATTRIBUTE(DtU32, ComplianceState,complianceState);
148 
150  DtDEC_ATTRIBUTE(DtArticulatedPartCollection, ArticulatedPartList, articulatedPartList);
151 
153  DtDEC_ATTRIBUTE(DtAttachedPartCollection, AttachedPartList, attachedPartList);
154 
155  DtDEC_ATTRIBUTE(DtString, DiGuyAction, diGuyAction);
156 
157  DtDEC_ATTRIBUTE(bool, DiGuyActionPaused, diGuyActionPaused);
158 
159  DtDEC_ATTRIBUTE(DtString, DiGuyAppearance, diGuyAppearance);
160 
161  DtDEC_ATTRIBUTE(DtString, DiGuyType, diGuyType);
162 
163  DtDEC_ATTRIBUTE(DtEntityIdentifier, DiGuyParent, diGuyParent);
164 
165  //Afmstt UniqueEntity attributes
166  DtDEC_ATTRIBUTE(DtString, LVCID, lvcID);
167 
168  DtDEC_ATTRIBUTE(DtString, SideName, sideName);
169 
170  DtDEC_ATTRIBUTE(DtString, MySuperior, mySuperior);
172 
173 public:
174  virtual DtPortalMessageKind kind() const { return DtPortalEntity::theKind; }
175  virtual const char* objectKindName() const { return "Entity State" ;}
176  virtual unsigned int netSize() const;
177  virtual void writeSelfToBuffer(void *buffer) const ;
178  virtual void readSelfFromBuffer(const void *buffer);
179  virtual std::ostream &printDataToStream(std::ostream &str) const;
180 
181 public:
182 
184  static DtPortalMessage *create() { return new DtPortalEntity; }
185 
186 };
187 }
188 
189 #endif //end #ifndef pEntity_H_

Document ID: Generated on Mon Apr 15 17:15:50 EDT 2013 from SVN revision 126154
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)