![]() |
VR-Forces Developer's Guide
|
1) Define the interface class that will be used to represent the next and curent frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented) Abstract interface for aerodrome (airport) state, providing access to runway and airport code data.

Public Member Functions | |
| DtAerodromeStateComponent (DtStateData *storage) | |
| virtual DtRunwayStateData & | addRunway () |
| virtual void | removeRunway (const DtUUID &) |
| virtual DtRunwayStateData & | runway (const DtUUID &) |
| virtual DtRunwayStateData & | runway (const std::string &) |
| virtual const DtRunwayStateData & | runway (const DtUUID &) const |
| virtual const DtRunwayStateData & | runway (const std::string &) const |
| virtual const DtRunwayLightStateData & | runwayState (const std::string &) const |
| virtual const std::map< DtUUID, DtRunwayStateData > & | runways () const |
| virtual void | setRunways (const std::map< DtUUID, DtRunwayStateData > &) |
| virtual std::vector< DtString > | runwaysArchived () const |
| virtual void | restoreRunwaysFromArchive (const std::vector< DtString > &) |
| virtual unsigned char | runwayValue (const DtString &, const DtString &runwayName) const |
| virtual void | setRunwayValue (const DtString &, unsigned char, const DtString &runwayName) |
| virtual unsigned char | value (const DtString &) const |
| virtual void | setValue (const DtString &, unsigned char) |
| virtual void | restoreFromArchive (const DtString &) |
Public Member Functions inherited from makVrf::DtSimulatedObjectStateComponent | |
| DtSimulatedObjectStateComponent (DtStateData *) | |
| virtual bool | mainComponentOnLegion () const |
Public Member Functions inherited from makVrf::DtFrameStateInterface | |
| DtFrameStateInterface (DtStateData *) | |
| virtual | ~DtFrameStateInterface () |
| void | setIsWritable (bool b) |
| bool | isWritable () const |
| UInt64 | stateId () const |
| UInt64 | legionGlobalId () const |
| void | setLegionGlobalId (UInt64 d) |
| virtual bool | isModified () const |
| virtual void | clearModified () |
| virtual void | markModified () |
| virtual DtStateComponent::StateComponentType | type () const |
| virtual DtStateComponent::StateComponentType | componentType () const =0 |
| virtual const char * | stringType () const =0 |
| void | setId (UInt64 id) |
| virtual UInt64 | id () const |
| virtual void | updateStateData (DtStateData *sd) |
| virtual Legion::ReadStateInstance | readStateInstance () const |
| virtual Legion::WriteStateInstance | writeStateInstance () |
| void | emitComponentUpdated () |
| void | setMarkedForRemoval (bool b) |
| bool | markedForRemoval () const |
| bool | cleared () const |
| bool | advancedFrame () const |
| virtual void | frameAdvanced () |
| virtual void | convertToRemote () |
| virtual void | convertToLocal () |
| virtual void | aboutToBeDeleted () |
|
inline |
Constructs the aerodrome state component with the given state data storage.
| storage | Pointer to the state data storage associated with this component. |
|
inlinevirtual |
Gets or sets the ICAO airport code identifying this aerodrome.
Gets or sets whether this aerodrome is active. Adds a new runway to this aerodrome and returns a reference to the new runway state data.
Reimplemented in makVrf::DtAerodromeStateComponentNextFrame.
|
inlinevirtual |
Removes the runway identified by the given UUID.
| id | UUID of the runway to remove. |
Reimplemented in makVrf::DtAerodromeStateComponentNextFrame.
|
inlinevirtual |
Returns a mutable reference to the runway identified by the given UUID.
| id | UUID of the runway. |
Reimplemented in makVrf::DtAerodromeStateComponentNextFrame.
|
inlinevirtual |
Returns a mutable reference to the runway identified by the given name.
| name | Name of the runway. |
Reimplemented in makVrf::DtAerodromeStateComponentNextFrame.
|
inlinevirtual |
Returns a const reference to the runway identified by the given UUID.
| id | UUID of the runway. |
Reimplemented in makVrf::DtAerodromeStateComponentCurrentFrame, and makVrf::DtAerodromeStateComponentNextFrame.
|
inlinevirtual |
Returns a const reference to the runway identified by the given name.
| name | Name of the runway. |
Reimplemented in makVrf::DtAerodromeStateComponentCurrentFrame, and makVrf::DtAerodromeStateComponentNextFrame.
|
inlinevirtual |
Returns the runway light state data for the runway end identified by the given name.
| runwayEndName | Name of the runway end. |
Reimplemented in makVrf::DtAerodromeStateComponentCurrentFrame, and makVrf::DtAerodromeStateComponentNextFrame.
|
inlinevirtual |
Returns a const map of all runways keyed by UUID.
Reimplemented in makVrf::DtAerodromeStateComponentCurrentFrame, and makVrf::DtAerodromeStateComponentNextFrame.
|
inlinevirtual |
Replaces all runways with the provided map.
| runways | Map of UUID to DtRunwayStateData to set. |
Reimplemented in makVrf::DtAerodromeStateComponentNextFrame.
|
inlinevirtual |
Returns a list of archived runway state strings.
Reimplemented in makVrf::DtAerodromeStateComponentCurrentFrame, and makVrf::DtAerodromeStateComponentNextFrame.
|
inlinevirtual |
Restores all runways from the provided list of archived state strings.
| archivedRunways | Vector of serialized runway state strings to restore. |
Reimplemented in makVrf::DtAerodromeStateComponentNextFrame.
|
inlinevirtual |
Returns the named appearance value for the specified runway.
| valueName | Name of the appearance attribute. |
| runwayName | Name of the runway. |
Reimplemented in makVrf::DtAerodromeStateComponentCurrentFrame, and makVrf::DtAerodromeStateComponentNextFrame.
|
inlinevirtual |
Sets the named appearance value for the specified runway.
| valueName | Name of the appearance attribute. |
| value | The appearance value to set. |
| runwayName | Name of the runway. |
Reimplemented in makVrf::DtAerodromeStateComponentNextFrame.
|
inlinevirtual |
Returns the named appearance value for this aerodrome.
| valueName | Name of the appearance attribute. |
Reimplemented in makVrf::DtAerodromeStateComponentCurrentFrame, and makVrf::DtAerodromeStateComponentNextFrame.
|
inlinevirtual |
Sets the named appearance value for this aerodrome.
| valueName | Name of the appearance attribute. |
| value | The appearance value to set. |
Reimplemented in makVrf::DtAerodromeStateComponentNextFrame.
|
inlinevirtual |
Restores this aerodrome's state from the given archived state string.
| archivedState | Serialized state string to restore from. |
Reimplemented in makVrf::DtAerodromeStateComponentNextFrame.