17 #define DtDEC_APPEARANCE( P, p, T, N, n, E ) \
19 void set##N( const T& val ) {\
20 set##P##AppearanceAttribute( E, DtAppearAttrVal( val << E##BitShift ) );\
22 T n() const { return (T)( p##AppearanceAttribute(E) >> E##BitShift ); }\
24 namespace MAKVrExchange
66 virtual void setGeneralAppearanceAttribute(
67 DtAppearAttribute attr, DtAppearAttrVal val );
69 virtual DtAppearAttrVal generalAppearanceAttribute(
70 DtAppearAttribute attr )
const;
73 percentComplete, DtAppObjectPercentComplete );
75 damagedAppearance, DtAppObjectDamage );
77 objectPreDistributed, DtAppObjectPredistributed );
79 deactivated, DtAppObjectState );
81 smoking, DtAppObjectSmoking );
83 flaming, DtAppObjectFlaming );
91 virtual void setSpecificAppearanceAttribute(
92 DtAppearAttribute attr, DtAppearAttrVal val );
94 virtual DtU32 specificAppearanceAttribute(
95 DtAppearAttribute attr )
const;
101 breachedStatus, DtAppObjectMinefieldBreach );
103 mineCount, DtAppObjectMinefieldMineCount );
117 virtual unsigned int netSize()
const;
118 virtual void writeSelfToBuffer(
void* buffer,
int bufferSize )
const;
119 virtual void readSelfFromBuffer(
const void* buffer,
int bufferSize );
121 virtual std::ostream& printDataToStream( std::ostream& str )
const;
#define DtDEC_APPEARANCE(P, p, T, N, n, E)
This macro defines a setter and getter for a specific attribute within the appearance attribute...
Definition: pArealObject.h:17
#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
DtPortalArealObject()
CTOR.
The base class for all messages passed through the portal.
Definition: pMessage.h:67
Contains the DtPortalReflectedObjectManager class declaration.
Represents Environment Objects in a simulation.
Definition: pEnvironmentObject.h:20
static const DtPortalMessageKind theKind
Definition: pArealObject.h:113
Portal areal object for sending areal object types (minefield, etc.).
Definition: pArealObject.h:29
Contains the DtPortalEnvironmentObject class declaration.
DtPortalMessageKind
A List of message kinds distributed with the Portal.
Definition: pMessageKinds.h:23
static DtPortalMessage * create()
Definition: pArealObject.h:126