VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pEntity.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2014 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <portal/pBaseEntity.h>
13 #include <vlpi/articulatedPartCollection.h>
14 #include <vlpi/attachedPartCollection.h>
15 #include <matrix/vlTaitBryan.h>
16 #include <vlutil/vlString.h>
17 
18 namespace MAKVrExchange
19 {
20 
25  {
26  public:
27 
30 
32  DtPortalEntity( const DtPortalEntity& other );
33 
35  virtual ~DtPortalEntity();
36 
38  DtPortalEntity& operator = ( const DtPortalEntity& other );
39 
42 
43  bool operator == ( const DtPortalEntity& other ) const;
44  bool operator != ( const DtPortalEntity& other ) const;
45 
47 
50 
52  DtDEC_ATTRIBUTE( DtU32, ForceId, forceId );
53 
55  DtDEC_ATTRIBUTE( DtU32, DamageState, damageState );
56 
59  DtDEC_ATTRIBUTE( DtString, MarkingText, markingText );
60 
63  DtDEC_ATTRIBUTE( DtString, FederateId, federateId );
64 
67  DtDEC_ATTRIBUTE( DtString, Guise, guise );
68 
70  DtDEC_ATTRIBUTE( DtU32, MarkingCharSet, markingCharSet );
71 
73  DtDEC_ATTRIBUTE( bool, MissionKill, missionKill );
74 
76  DtDEC_ATTRIBUTE( bool, FirePowerDisabled, firePowerDisabled );
77 
79  DtDEC_ATTRIBUTE( bool, Immobilized, immobilized );
80 
82  DtDEC_ATTRIBUTE( bool, IsConcealed, isConcealed );
83 
85  DtDEC_ATTRIBUTE( bool, EngineSmokeOn, engineSmokeOn );
86 
88  DtDEC_ATTRIBUTE( bool, PowerPlantOn, powerPlantOn );
89 
91  DtDEC_ATTRIBUTE( bool, RampDeployed, rampDeployed );
92 
94  DtDEC_ATTRIBUTE( bool, SmokePlumePresent, smokePlumePresent );
95 
97  DtDEC_ATTRIBUTE( bool, TentDeployed, tentDeployed );
98 
100  DtDEC_ATTRIBUTE( bool, AfterburnerOn,afterburnerOn );
101 
103  DtDEC_ATTRIBUTE( bool, HasAmmunitionSupplyCap,hasAmmunitionSupplyCap );
104 
106  DtDEC_ATTRIBUTE( bool, LauncherRaised,launcherRaised );
107 
109  DtDEC_ATTRIBUTE( bool, AntennaRaised,antennaRaised );
110 
112  DtDEC_ATTRIBUTE( bool, FlamesPresent, flamesPresent );
113 
115  DtDEC_ATTRIBUTE( bool, HasFuelSupplyCap, hasFuelSupplyCap );
116 
118  DtDEC_ATTRIBUTE( bool, HasRecoveryCap, hasRecoveryCap );
119 
121  DtDEC_ATTRIBUTE( bool, HasRepairCap, hasRepairCap );
122 
125  DtDEC_ATTRIBUTE( DtU32, HatchState, hatchState );
126 
129  DtDEC_ATTRIBUTE( DtU32, LifeformState, lifeformState );
130 
133  DtDEC_ATTRIBUTE( DtU32, LightState, lightState );
134 
136  DtDEC_ATTRIBUTE( DtU32, Density, density );
137 
139  DtDEC_ATTRIBUTE( DtU32, TrailState, trailState );
140 
142  DtDEC_ATTRIBUTE( DtU32, CamouflageType, camouflageType );
143 
145  DtDEC_ATTRIBUTE( DtU32, PrimaryWeaponState,primaryWeaponState );
146 
148  DtDEC_ATTRIBUTE( DtU32, SecondaryWeaponState,secondaryWeaponState );
149 
151  DtDEC_ATTRIBUTE( DtU32, ComplianceState,complianceState );
152 
154  DtDEC_ATTRIBUTE( DtArticulatedPartCollection, ArticulatedPartList, articulatedPartList );
155 
157  DtDEC_ATTRIBUTE( DtAttachedPartCollection, AttachedPartList, attachedPartList );
158 
159  //Afmstt UniqueEntity attributes
160  DtDEC_ATTRIBUTE( DtString, LVCID, lvcID );
161 
162  DtDEC_ATTRIBUTE( DtString, SideName, sideName );
163 
164  DtDEC_ATTRIBUTE( DtString, MySuperior, mySuperior );
165 
167 
169  public:
170 
172 
173  static DtPortalMessage* create();
174 
175  virtual unsigned int netSize() const;
176  virtual void writeSelfToBuffer( void* buffer ) const ;
177  virtual void readSelfFromBuffer( const void* buffer );
178 
179  virtual std::ostream& printDataToStream( std::ostream& str ) const;
180 
181  };
182 
183 
185  {
186  return new DtPortalEntity();
187  }
188 
189 }

Document ID: Generated on Thu Jul 23 10:25:22 EDT 2015 from SVN revision 155065
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)