VR-Exchange 2.9 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 
20 namespace MAKVrExchange
21 {
22 
27  {
28  public:
29 
32 
34  DtPortalEntity( const DtPortalEntity& other );
35 
37  virtual ~DtPortalEntity();
38 
40  DtPortalEntity& operator = ( const DtPortalEntity& other );
41 
44 
45  bool operator == ( const DtPortalEntity& other ) const;
46  bool operator != ( const DtPortalEntity& other ) const;
47 
49 
52 
54  DtDEC_ATTRIBUTE( DtU32, ForceId, forceId );
55 
57  DtDEC_ATTRIBUTE( DtU8, DamageState, damageState );
58 
61  DtDEC_ATTRIBUTE( DtString, MarkingText, markingText );
62 
65  DtDEC_ATTRIBUTE( DtString, FederateId, federateId );
66 
69  DtDEC_ATTRIBUTE( DtString, Guise, guise );
70 
72  DtDEC_ATTRIBUTE( DtU32, MarkingCharSet, markingCharSet );
73 
75  DtDEC_ATTRIBUTE( bool, MissionKill, missionKill );
76 
78  DtDEC_ATTRIBUTE( bool, FirePowerDisabled, firePowerDisabled );
79 
81  DtDEC_ATTRIBUTE( bool, Immobilized, immobilized );
82 
84  DtDEC_ATTRIBUTE( bool, IsConcealed, isConcealed );
85 
87  DtDEC_ATTRIBUTE( bool, EngineSmokeOn, engineSmokeOn );
88 
90  DtDEC_ATTRIBUTE( bool, PowerPlantOn, powerPlantOn );
91 
93  DtDEC_ATTRIBUTE( bool, RampDeployed, rampDeployed );
94 
96  DtDEC_ATTRIBUTE( bool, SmokePlumePresent, smokePlumePresent );
97 
99  DtDEC_ATTRIBUTE( bool, TentDeployed, tentDeployed );
100 
102  DtDEC_ATTRIBUTE( bool, AfterburnerOn,afterburnerOn );
103 
105  DtDEC_ATTRIBUTE( bool, HasAmmunitionSupplyCap,hasAmmunitionSupplyCap );
106 
108  DtDEC_ATTRIBUTE( bool, LauncherRaised,launcherRaised );
109 
111  DtDEC_ATTRIBUTE( bool, AntennaRaised,antennaRaised );
112 
114  DtDEC_ATTRIBUTE( bool, FlamesPresent, flamesPresent );
115 
117  DtDEC_ATTRIBUTE( bool, HasFuelSupplyCap, hasFuelSupplyCap );
118 
120  DtDEC_ATTRIBUTE( bool, HasRecoveryCap, hasRecoveryCap );
121 
123  DtDEC_ATTRIBUTE( bool, HasRepairCap, hasRepairCap );
124 
127  DtDEC_ATTRIBUTE( DtU8, HatchState, hatchState );
128 
131  DtDEC_ATTRIBUTE( DtU32, LifeformState, lifeformState );
132 
135  DtDEC_ATTRIBUTE( DtU32, LightState, lightState );
136 
138  DtDEC_ATTRIBUTE( DtU32, Density, density );
139 
141  DtDEC_ATTRIBUTE( DtU8, TrailState, trailState );
142 
144  DtDEC_ATTRIBUTE( DtU8, CamouflageType, camouflageType );
145 
147  DtDEC_ATTRIBUTE( DtU32, PrimaryWeaponState, primaryWeaponState );
148 
150  DtDEC_ATTRIBUTE( DtU32, SecondaryWeaponState, secondaryWeaponState );
151 
153  DtDEC_ATTRIBUTE( DtU32, ComplianceState, complianceState );
154 
156  DtDEC_ATTRIBUTE( DtArticulatedPartCollection, ArticulatedPartList, articulatedPartList );
157 
159  DtDEC_ATTRIBUTE( DtAttachedPartCollection, AttachedPartList, attachedPartList );
160 
163 
164  DtDEC_ATTRIBUTE( DtU16, InfraredSigRepIndex, infraredSigRepIndex );
165  DtDEC_ATTRIBUTE( DtU16, AcousticSigRepIndex, acousticSigRepIndex );
166  DtDEC_ATTRIBUTE( DtU16, RadarSigRepIndex, radarSigRepIndex );
167  DtDEC_ATTRIBUTE( DtPropulsionSystemDataList, PropulsionSystemData, propulsionSystemData );
168  DtDEC_ATTRIBUTE( DtNozzleSystemDataList, NozzleSystemData, nozzleSystemData );
169 
171 
174 
175  DtDEC_ATTRIBUTE( DtString, LVCID, lvcID );
176  DtDEC_ATTRIBUTE( DtString, SideName, sideName );
177  DtDEC_ATTRIBUTE( DtString, MySuperior, mySuperior );
178 
180 
182 
184  public:
185 
187 
188  static DtPortalMessage* create();
189 
190  virtual unsigned int netSize() const;
191  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
192  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
193 
194  virtual std::ostream& printDataToStream( std::ostream& str ) const;
195 
196  };
197 
198 
200  {
201  return new DtPortalEntity();
202  }
203 
204 }
static const DtPortalMessageKind theKind
NOTE: DtDEC_ATTRIBUTE resets the access specifier to protected.
Definition: pEntity.h:186
#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:66
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:26
static DtPortalMessage * create()
Definition: pEntity.h:199

Document ID: Generated on Tue Jun 25 16:45:35 EDT 2024 from SVN revision 267383
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)