Public Member Functions |
| | DtScriptOwnshipObject (const DtString &name, DtVrfObject *const vrfObject) |
| | DtScriptOwnshipObject (const DtString &name, DtSimManager *simManager, DtVrfObject *const vrfobject) |
| | DtScriptOwnshipObject (const DtScriptOwnshipObject &orig) |
| | ~DtScriptOwnshipObject () |
|
| void | setLocation3D (const DtLocation3D &newloc) |
| | Script API functions.
|
| void | setHeading (const double heading) |
| | Script API functions.
|
| virtual std::list< std::string > | getResourceNames (void) const |
| | Script API functions.
|
| virtual double | getResourceAmounts (const std::string &resourceName, double *fullAmount) const |
| | Returns the current amount as the return value for the supplied resource name.
|
| virtual void | depleteResource (const std::string &resourceName, double amount) |
| | Deplete the resource by the current amount, not going below zero.
|
| virtual void | replenishResource (const std::string &resourceName, double amount) |
| | Replenishes the resource amount, not going above full.
|
| virtual std::string | getMunitionType (const std::string &resourceName) |
| | Returns the entity type of the munition resource.
|
| virtual bool | addResource (const std::string &resourceType, const std::string &resourceName, double currentAmount, double fullAmount) |
| | Adds a new resource given the type, name (including any systems it should be in) current amount and full amount.
|
| virtual void | updateStateAndParameterProperties () |
| | If this is a psuedo aggregate will update state and parameter properties in the state repository given the composition of the leaf nodes and their current values.
|
| virtual void | removeResource (const std::string &resourceName) |
| | Removes the resource from the supplied system.
|
virtual boost::shared_ptr
< DtScriptComponentSystem > | lookupSystem (const std::string &systemName) |
| | Gets a script component system from the system name.
|
| virtual std::list< std::string > | getSystemNames () |
| | Gets a list of all system names for this entity.
|
| virtual bool | isUnderFire () const |
| | True if under fire, as defined in the object state repository.
|
virtual std::list
< DtScriptVrfObject > | getObservedHostileContacts (void) |
| | It gets the list of contacts for the entity and filters out all but known hostile objects that were detected by sensors (vs.
|
virtual std::list
< DtScriptVrfObject > | getAllHostileContacts (void) |
| | It gets the list of contacts for the entity and filters out all but known hostile objects.
|
virtual std::list
< DtScriptVrfObject > | getAllContacts (void) |
| | It gets the list of contacts and returns it.
|
| virtual bool | registerDetonationInterest (double range, const std::string &munitionType) |
| | It registers interest in any detonation that occurs within the specified range of the object with the specified munition type.
|
| virtual bool | getLastDetonation (std::string &munitionType, DtLocation3D &location) |
| | If interest in detonations has previously been registered, this function will return the munition type and location of the detonation.
|
| virtual void | setDestroyed (bool destroyed) |
| | Sets the damage state of this entity to be destroyed if true, or not damaged if false.
|
| virtual std::string | getRulesOfEngagement () |
| | Returns the current rules of engagement of this entity.
|
| virtual void | setRulesOfEngagement (const std::string &rule) |
| | Sets the rules of engagement of this entity.
|
| virtual std::list< std::string > | embeddedEntityNames () |
| | Returns the complete list of Embedded Entity names available to this object.
|
| virtual std::list< std::string > | embeddedEntitiesOfType (std::string typeString) |
| | Returns a list of Embedded Entity names available to this object matching the given typeString, where typeString is a string representation of the seven digit DIS enumeration.
|
| virtual std::list< std::string > | embeddedEntitiesCapableOf (std::string taskSetName) |
| | Returns a list of Embedded Entity names available to this object that are capable of the given task/set, where taskSetName is the string identifier of any task or set.
|
| virtual DtScriptVrfObject | simObjectByEmbeddedEntityName (std::string eeName) |
| | Returns the DtScriptVrfObject corresponding to the given Embedded Entity name.
|
| virtual std::string | embeddedEntityStatus (std::string eeName) |
| | Returns the deployment status of the Embedded Entity with the given name.
|
| virtual double | normalizedSensorSignature (const DtScriptVrfObject &targetEntity, std::string domain) |
| | This function determines if the given target entity is detectable by the ownship entity in the given domain.
|
| | DtScriptVrfObject (const DtString &name, DtVrfObject *const vrfObject) |
| | DtScriptVrfObject (const DtString &name, DtSimManager *simManager, DtVrfObject *const vrfObject) |
| | DtScriptVrfObject (const DtScriptVrfObject &orig) |
| DtScriptVrfObject & | operator= (const DtScriptVrfObject &orig) |
| | ~DtScriptVrfObject () |
| bool | operator== (const DtScriptVrfObject &orig) |
| virtual double | getHeightAboveTerrain () const |
| | Gets the height above terrain, which is just ownship altitude - terrain altitude.
|
| virtual bool | hasLosToObject (const DtScriptVrfObject &target, bool &dataAvailable) const |
| | Check LOS to a target entity through terrain and objects, except for ownship object and target object.
|
| virtual bool | isPointInside (const DtLocation3D &point) const |
| | Determine if the given point is inside the polygon described by the vertices (footprint) of this object.
|
| virtual bool | hasLosToLocation (DtLocation3D &targetLoc, bool &dataAvailable) const |
| | Check LOS to a location through terrain and objects, except for ownship object.
|
| virtual std::string | getEntityType () const |
| | Return the entity type.
|
| virtual bool | isAggregate () const |
| | Returns whether the object is an aggregate, using the object state repository definition of isAggregate().
|
| virtual bool | isPseudoAggregate () const |
| | Returns whether the object is an aggregate, using the object state repository definition of isAggregate() and the object is in a DtDisaggregated state.
|
| virtual std::string | getEchelonLevel () const |
| | Returns the echelon level as a string.
|
| virtual std::string | getForceType () const |
| | Returns entity force.
|
| virtual int | getForceEnumeration () const |
| | Returns entity force enumeration (integer)
|
| virtual std::string | getDamageState () const |
| | Returns the current damage state as: none slight moderate destroyed.
|
| virtual unsigned | getLifeformPosture () const |
| | Returns the DIS enumerated value for the current lifeform posture.
|
| virtual unsigned | getAppearance () const |
| | Returns the current appearance bits of the entity.
|
| virtual bool | isDestroyed () const |
| | Returns whether or not this entity is destroyed.
|
| virtual bool | isEmbarked () const |
| | Returns whether or not this item is embarked on any other item.
|
| virtual DtScriptVrfObject | getEmbarkedOn () const |
virtual std::list
< DtScriptVrfObject > | getEmbarkedObjects (void) const |
virtual std::list
< DtScriptVrfObject > | getSubordinates (void) const |
| | Returns a list of the immediate subordinates of this aggregate.
|
virtual std::list
< DtScriptVrfObject > | getAllSubordinates (void) const |
| | Returns a list of all leaf (lowest level) nodes (subordinates) of this aggregate.
|
virtual std::list
< DtScriptVrfObject > | getCapableSubordinates (void) const |
| virtual std::list< DtLocation3D > | getLocations3D (void) const |
| virtual std::string | getName () const |
| virtual std::string | getLabel () const |
| virtual void | setLabel (const std::string &) |
| virtual std::string | getExtendedLabel (int) const |
| virtual void | setExtendedLabel (int, const std::string &) |
| virtual std::string | getGlobalId () const |
| virtual std::string | getObjectId () const |
| virtual double | getHeading () const |
| virtual double | getDraft () const |
| void | terrainSurfaceDebug () |
| | For debugging the terrain surface(s) at the entity's location.
|
| void | deleteObject () |
| | Deletes object from simulation.
|
| bool | isDeleted () const |
| | Returns true if the object has been deleted from the simulation.
|
| virtual bool | isValid () const |
| virtual bool | isLocal () const |
| | Returns true if the object is local to the back-end the script is running on.
|
| virtual DtVectorOffset3D | getBoundingVolume (DtVectorOffset3D &offset) const |
| | Returns the bounding volume and the bounding volume offset.
|
| virtual std::string | getNbcDamage (int &dmgPerSec, int &moppLvl) const |
| | Returns the damage type, damage per second, and the MOPP level required to protect against the NBC contaminated area.
|
| virtual std::string | getNbcAgent () const |
| | Returns the agent type of the NBC area.
|
| virtual bool | isBreached () const |
| | Returns true if this is an engineering object which has been breached.
|
| virtual DtLocation3D | getClosestPointToLocation2D (const DtLocation3D &location, double &distance) const |
| | Finds the closest point on the object's geometry to the given location.
|
| virtual DtLocation3D | getIntersectionPointWithLine2D (const DtLocation3D &point1, const DtLocation3D &point2, bool &hasIntersection) const |
| | Calculates the point where the line defined by the two points intersects with the object.
|
| virtual void | setSimManager (DtSimManager *simManager) |
| | Script API functions above.
|
| virtual DtString | objectType () const |
| | Should return the string name of this object.
|
| DtString | serialize () |
| | Inherited from DtAsciiSerializable. Returns a string serialized version of this class.
|
| bool | deserialize (const DtString &data) |
| | Inherited from DtAsciiSerializable.
|
| DtVrfObject * | vrfObject () const |
| | For use by C++ side methods.
|
| void | testValid () const |
| | Makes sure the object is valid. If not, throws exception.
|
| virtual DtLocation3D | getLocation3D () const |
| | Script API functions.
|
| virtual double | getSpeed () const |
| | Returns the objects current speed in meters/second.
|
| virtual DtVector3D | getDirection3D () const |
| | Vector info about entity.
|
| virtual DtVector3D | getVelocity3D () const |
| | Velocity of entity, meters/sec.
|
| bool | hasStateProperty (const std::string &propertyName) |
| | Checks to see if the property exists.
|
| bool | hasParameterProperty (const std::string &propertyName) |
| | Checks to see if the property exists.
|
| | DtAsciiSerializable () |
| | The implementer of this interface should be sure to create a creator function to create an empty object that returns a pointer to this interface.
|
| | DtAsciiSerializable (const DtAsciiSerializable &orig) |
| virtual | ~DtAsciiSerializable () |
| virtual std::string | objectTypeC () const |
| | Returns a std::string version of the objectType.
|
| virtual void | init (void *userData) |
| | This function is called right after the object is constructed during the deserialization process, but before deserialize() is called.
|
The "this" version is the own-ship object.
It is separated to allow special functions for the ownship that are not available for other objects.