VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
DtScriptAerodromeObject Class Reference
Inheritance diagram for DtScriptAerodromeObject:
Inheritance graph
[legend]

Public Member Functions

 DtScriptAerodromeObject (const DtSimulationServices *, const std::string &name)
 
 DtScriptAerodromeObject (const DtSimulationServices *, const MAKVRinTerra::DtAerodromeLoader::AerodromeData &)
 
 DtScriptAerodromeObject (const std::string &)
 
 DtScriptAerodromeObject (const DtScriptAerodromeObject &orig)
 
 DtScriptAerodromeObject ()
 
DtScriptAerodromeObjectoperator= (const DtScriptAerodromeObject &orig)
 
virtual ~DtScriptAerodromeObject () override
 
bool operator== (const DtScriptAerodromeObject &orig)
 
- Public Member Functions inherited from DtAsciiSerializable
 DtAsciiSerializable ()
 
 DtAsciiSerializable (const DtAsciiSerializable &orig)
 
virtual ~DtAsciiSerializable ()
 
virtual std::string objectTypeC () const
 
virtual void init (void *userData)
 
DtString myAerodrome
 
MAKVRinTerra::DtAerodromeLoader::AerodromeData myAerodromeData
 
const DtSimulationServicesmySimulationServices
 
DtSimObjectReference myVrfReference
 
virtual bool isValid () const
 
virtual int getAerodomeLightIntensity (const std::string &lightGroup) const
 
virtual bool isActive () const
 
virtual bool isManaged () const
 
virtual DtScriptVrfObject getSimObject () const
 
virtual DtLocation3D getLocation3D () const
 
virtual bool runwayExists (const std::string &) const
 
virtual std::list< std::string > getRunways () const
 
virtual int getRunwayLightIntensity (const std::string &runway, const std::string &lightGroup) const
 
virtual double getRunwayLength (const std::string &) const
 
virtual double getRunwayHeading (const std::string &) const
 
virtual bool runwayIsActive (const std::string &) const
 
virtual std::list< DtLocation3DgetRunwayLocations3D (const std::string &runway) const
 
virtual int getRunwayCondition (const std::string &runway) const
 
virtual bool runwayIsDamaged (const std::string &runway) const
 
virtual std::string getAirportCode () const
 
virtual std::string getAirportName () const
 
virtual int getForceType () const
 
virtual DtString objectType () const override
 
virtual void setSimulationServices (const DtSimulationServices *simManager)
 
virtual DtString serialize () override
 
virtual bool deserialize (const DtString &data) override
 
void testValid () const
 
const DtSimulationServicessimulationServices () const
 
static DtAsciiSerializablecreator ()
 
virtual DtSimObjectReference simObjectReference () const
 

Constructor & Destructor Documentation

DtScriptAerodromeObject::DtScriptAerodromeObject ( const DtSimulationServices ,
const std::string &  name 
)
DtScriptAerodromeObject::DtScriptAerodromeObject ( const DtSimulationServices ,
const MAKVRinTerra::DtAerodromeLoader::AerodromeData  
)
DtScriptAerodromeObject::DtScriptAerodromeObject ( const std::string &  )
DtScriptAerodromeObject::DtScriptAerodromeObject ( const DtScriptAerodromeObject orig)
DtScriptAerodromeObject::DtScriptAerodromeObject ( )

This constructor will produce an invalid object. However, it is needed by luabind to instantiate a function out-parameter (which gets assigned a value before the function returns).

virtual DtScriptAerodromeObject::~DtScriptAerodromeObject ( )
overridevirtual

Member Function Documentation

DtScriptAerodromeObject& DtScriptAerodromeObject::operator= ( const DtScriptAerodromeObject orig)
bool DtScriptAerodromeObject::operator== ( const DtScriptAerodromeObject orig)
virtual bool DtScriptAerodromeObject::isValid ( ) const
virtual

Script API functions. ////////////////////////////////////.

Returns whether or not this is a valid aerodrome

virtual int DtScriptAerodromeObject::getAerodomeLightIntensity ( const std::string &  lightGroup) const
virtual

If published on the network, the value of the given light group from 0 - 100%.

virtual bool DtScriptAerodromeObject::isActive ( ) const
virtual

If published on the network returns whether or not this is active. If it is not on the network always assumed to be active.

virtual bool DtScriptAerodromeObject::isManaged ( ) const
virtual

Returns whether or not the state of this aerodrome is managed by VRF.

virtual DtScriptVrfObject DtScriptAerodromeObject::getSimObject ( ) const
virtual

Returns a DtScriptVrfObject if this aerodrome is simulated on the network, or a null object.

virtual DtLocation3D DtScriptAerodromeObject::getLocation3D ( ) const
virtual

Returns the location of the aerodrome. If this is a unit, it returns the center mass of the living subordinates.

virtual bool DtScriptAerodromeObject::runwayExists ( const std::string &  ) const
virtual

Returns true if this route exists at the aerodrome.

virtual std::list<std::string> DtScriptAerodromeObject::getRunways ( ) const
virtual

Returns the names of all the runways with this aerodrome.

virtual int DtScriptAerodromeObject::getRunwayLightIntensity ( const std::string &  runway,
const std::string &  lightGroup 
) const
virtual

If published on the network, the value of the given light group of the runway from 0 - 100%.

virtual double DtScriptAerodromeObject::getRunwayLength ( const std::string &  ) const
virtual

Returns the length of the specified runway (in meters)

virtual double DtScriptAerodromeObject::getRunwayHeading ( const std::string &  ) const
virtual

Returns the heading of the given runway (in degrees)

virtual bool DtScriptAerodromeObject::runwayIsActive ( const std::string &  ) const
virtual

Returns whether or not this runway is active. If this is published on the network will check the network representation, else, it is considered active.

virtual std::list<DtLocation3D> DtScriptAerodromeObject::getRunwayLocations3D ( const std::string &  runway) const
virtual

Returns the points of the specified runway object or an empty list if the runway does not exist. Use runwayExists to see if the runway exists before making this call.

virtual int DtScriptAerodromeObject::getRunwayCondition ( const std::string &  runway) const
virtual

Returns the condition of the runway if the aerodrome is published. If the aerodrome is not a published aerodrome will always return 0 (Unknown)

virtual bool DtScriptAerodromeObject::runwayIsDamaged ( const std::string &  runway) const
virtual

Gets whether or not runway is damaged if the aerodrome is published. If the aerodrome is not published will always return false.

virtual std::string DtScriptAerodromeObject::getAirportCode ( ) const
virtual

Returns the airport code of this aerodrome.

virtual std::string DtScriptAerodromeObject::getAirportName ( ) const
virtual

Returns the long name of this aerodrome.

virtual int DtScriptAerodromeObject::getForceType ( ) const
virtual

Returns the force type of this aerodrome. If it is published will return the published force value, else will return DtForceNeutral.

virtual DtString DtScriptAerodromeObject::objectType ( ) const
overridevirtual

Script API functions above. ////////////////////////////////////.

Implements DtAsciiSerializable.

virtual void DtScriptAerodromeObject::setSimulationServices ( const DtSimulationServices simManager)
virtual

Used by the object serializer so that an instance of this object can call checkSelf()

virtual DtString DtScriptAerodromeObject::serialize ( )
overridevirtual

Inherited from DtAsciiSerializable. Returns a string serialized version of this class.

Implements DtAsciiSerializable.

virtual bool DtScriptAerodromeObject::deserialize ( const DtString data)
overridevirtual

Inherited from DtAsciiSerializable. Returns true if it could fill its members with the data contained in the string. False otherwise.

Implements DtAsciiSerializable.

static DtAsciiSerializable* DtScriptAerodromeObject::creator ( )
static

Inherited from DtAsciiSerializable. Returns a new object of this type with default values.

void DtScriptAerodromeObject::testValid ( ) const

Makes sure the object is valid. If not, throws exception.

const DtSimulationServices* DtScriptAerodromeObject::simulationServices ( ) const

Simulation services associated with this object.

virtual DtSimObjectReference DtScriptAerodromeObject::simObjectReference ( ) const
protectedvirtual

Script API functions. ////////////////////////////////////.

Returns whether or not this is a valid aerodrome

Member Data Documentation

DtString DtScriptAerodromeObject::myAerodrome
protected

Script API functions. ////////////////////////////////////.

Returns whether or not this is a valid aerodrome

MAKVRinTerra::DtAerodromeLoader::AerodromeData DtScriptAerodromeObject::myAerodromeData
mutableprotected

Script API functions. ////////////////////////////////////.

Returns whether or not this is a valid aerodrome

const DtSimulationServices* DtScriptAerodromeObject::mySimulationServices
protected

Script API functions. ////////////////////////////////////.

Returns whether or not this is a valid aerodrome

DtSimObjectReference DtScriptAerodromeObject::myVrfReference
mutableprotected

Script API functions. ////////////////////////////////////.

Returns whether or not this is a valid aerodrome


The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)