VR-Exchange 2.10 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) 2016 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <portal/pBaseEntity.h>
15 #include <vlpi/articulatedPartCollection.h>
16 #include <vlpi/attachedPartCollection.h>
17 #include <matrix/vlTaitBryan.h>
18 #include <vlutil/vlString.h>
19 #include <vlutil/vlUuid.h>
20 
21 #include <string>
22 #include <vector>
23 
24 namespace MAKVrExchange
25 {
26 
31  {
32  public:
33 
36 
38  DtPortalEntity( const DtPortalEntity& other );
39 
41  virtual ~DtPortalEntity();
42 
44  DtPortalEntity& operator = ( const DtPortalEntity& other );
45 
48  bool operator == ( const DtPortalEntity& other ) const;
49  bool operator != ( const DtPortalEntity& other ) const;
51 
54 
56  DtDEC_ATTRIBUTE( DtU32, ForceId, forceId );
57 
59  DtDEC_ATTRIBUTE( DtU8, DamageState, damageState );
60 
63  DtDEC_ATTRIBUTE( DtString, MarkingText, markingText );
64 
67  DtDEC_ATTRIBUTE( DtString, FederateId, federateId );
68 
71  DtDEC_ATTRIBUTE( DtString, Guise, guise );
72 
74  DtDEC_ATTRIBUTE( DtU32, MarkingCharSet, markingCharSet );
75 
77  DtDEC_ATTRIBUTE( bool, MissionKill, missionKill );
78 
81  DtDEC_ATTRIBUTE( DtU16, LiveEntityMeasuredSpeed, liveEntityMeasuredSpeed );
82 
84  DtDEC_ATTRIBUTE( bool, FirePowerDisabled, firePowerDisabled );
85 
87  DtDEC_ATTRIBUTE( bool, Immobilized, immobilized );
88 
90  DtDEC_ATTRIBUTE( bool, IsConcealed, isConcealed );
91 
93  DtDEC_ATTRIBUTE( bool, EngineSmokeOn, engineSmokeOn );
94 
96  DtDEC_ATTRIBUTE( bool, PowerPlantOn, powerPlantOn );
97 
99  DtDEC_ATTRIBUTE( bool, RampDeployed, rampDeployed );
100 
102  DtDEC_ATTRIBUTE( bool, SmokePlumePresent, smokePlumePresent );
103 
105  DtDEC_ATTRIBUTE( bool, TentDeployed, tentDeployed );
106 
108  DtDEC_ATTRIBUTE( bool, AfterburnerOn,afterburnerOn );
109 
111  DtDEC_ATTRIBUTE( bool, HasAmmunitionSupplyCap,hasAmmunitionSupplyCap );
112 
114  DtDEC_ATTRIBUTE( bool, LauncherRaised,launcherRaised );
115 
117  DtDEC_ATTRIBUTE( bool, AntennaRaised,antennaRaised );
118 
120  DtDEC_ATTRIBUTE( bool, FlamesPresent, flamesPresent );
121 
123  DtDEC_ATTRIBUTE( bool, HasFuelSupplyCap, hasFuelSupplyCap );
124 
126  DtDEC_ATTRIBUTE( bool, HasRecoveryCap, hasRecoveryCap );
127 
129  DtDEC_ATTRIBUTE( bool, HasRepairCap, hasRepairCap );
130 
133  DtDEC_ATTRIBUTE( DtU8, HatchState, hatchState );
134 
137  DtDEC_ATTRIBUTE( DtU32, LifeformState, lifeformState );
138 
141  DtDEC_ATTRIBUTE( DtU32, LightState, lightState );
142 
144  DtDEC_ATTRIBUTE( DtU32, Density, density );
145 
147  DtDEC_ATTRIBUTE( DtU8, TrailState, trailState );
148 
150  DtDEC_ATTRIBUTE( DtU8, CamouflageType, camouflageType );
151 
153  DtDEC_ATTRIBUTE( DtU32, PrimaryWeaponState, primaryWeaponState );
154 
156  DtDEC_ATTRIBUTE( DtU32, SecondaryWeaponState, secondaryWeaponState );
157 
159  DtDEC_ATTRIBUTE( DtU32, ComplianceState, complianceState );
160 
162  DtDEC_ATTRIBUTE( DtArticulatedPartCollection, ArticulatedPartList, articulatedPartList );
163 
165  DtDEC_ATTRIBUTE( DtAttachedPartCollection, AttachedPartList, attachedPartList );
166 
169 
170  DtDEC_ATTRIBUTE( DtU16, InfraredSigRepIndex, infraredSigRepIndex );
171  DtDEC_ATTRIBUTE( DtU16, AcousticSigRepIndex, acousticSigRepIndex );
172  DtDEC_ATTRIBUTE( DtU16, RadarSigRepIndex, radarSigRepIndex );
173  DtDEC_ATTRIBUTE( DtPropulsionSystemDataList, PropulsionSystemData, propulsionSystemData );
174  DtDEC_ATTRIBUTE( DtNozzleSystemDataList, NozzleSystemData, nozzleSystemData );
175 
177 
180 
181  DtDEC_ATTRIBUTE( DtString, LVCID, lvcID );
182  DtDEC_ATTRIBUTE( DtString, SideName, sideName );
183  DtDEC_ATTRIBUTE( DtString, MySuperior, mySuperior );
184 
186 
190 
192  DtDEC_ATTRIBUTE( DtU8, Status, status );
193 
195  DtDEC_ATTRIBUTE( DtVrlUuid, UniqueId, uniqueId );
196 
199  DtDEC_ATTRIBUTE( DtVrlUuid, SourceUnit, sourceUnit );
200 
202  DtDEC_ATTRIBUTE( std::vector<DtVrlUuid>, EmbeddedUnitList, embeddedUnitList );
203 
205  DtDEC_ATTRIBUTE( std::wstring, Callsign, callsign );
206 
208  DtDEC_ATTRIBUTE( DtU16, Activity, activity );
209 
211  DtDEC_ATTRIBUTE( std::wstring, SymbolId, symbolId );
212 
214  DtDEC_ATTRIBUTE( DtU8, DestinationPointType, destinationPointType);
215 
217  DtDEC_ATTRIBUTE( DtVrlUuid, DestinationUuid, destinationUuid );
218 
220  DtDEC_ATTRIBUTE( DtVector, DestinationLocation, destinationLocation );
221 
223  DtDEC_ATTRIBUTE( DtU8, RoutePathType, routePathType );
224 
226  DtDEC_ATTRIBUTE( DtVrlUuid, RouteUuid, routeUuid );
227 
229  DtDEC_ATTRIBUTE( std::vector<DtVector>, RouteWaypoints, routeWaypoints );
230 
232 
234 
236  public:
237 
239 
240  static DtPortalMessage* create();
241 
242  virtual unsigned int netSize() const;
243  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
244  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
245 
246  virtual std::ostream& printDataToStream( std::ostream& str ) const;
247 
248  };
249 
250 
252  {
253  return new DtPortalEntity();
254  }
255 
256 }
static const DtPortalMessageKind theKind
NOTE: DtDEC_ATTRIBUTE resets the access specifier to protected.
Definition: pEntity.h:238
#define DT_DLL_LIBPORTAL
Definition: include/portal/dllExport.h:20
#define DtDEC_ATTRIBUTE(T, N, n)
A Macro to define an attribute; as well as make an accessor and mutator for that attribute.
Definition: addAttribute.h:49
Contains the DtPortalBaseEntity class declaration.
The base class for all messages passed through the portal.
Definition: pMessage.h:67
Contains the DtNozzleSystemData class declaration.
Contains the DtPropulsionSystemData class declaration.
Represents attributes common to Entities and Aggregates.
Definition: pBaseEntity.h:23
DtPortalMessageKind
A List of message kinds distributed with the Portal.
Definition: pMessageKinds.h:23
std::list< DtPropulsionSystemData > DtPropulsionSystemDataList
Definition: propulsionSystemData.h:59
std::list< DtNozzleSystemData > DtNozzleSystemDataList
Definition: nozzleSystemData.h:59
Messages which represent Entities with state.
Definition: pEntity.h:30
static DtPortalMessage * create()
Definition: pEntity.h:251

Document ID: Generated on Mon May 25 18:45:12 EDT 2026 from SVN revision 289111
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)