![]() |
VR-Forces 4.0.4 Class Documentation
|
DtFixedWingFlyIntoController is a controller that models flying into the ground for fixed-wing entities. More...

Public Member Functions | |
| DtFixedWingFlyIntoController (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) | |
| (const DtString&,DtVrfObject*,DtSimManager*, | |
| virtual | ~DtFixedWingFlyIntoController () |
| destructor | |
| virtual DtString | type () const |
| Calculate new control values. | |
| virtual void | setComponentDescriptor (DtComponentDescriptor *desc) |
| Called by init. | |
| virtual void | registerTaskMsgCallbacks () |
| Overrides this so it can register its interest in CrashInto commands. | |
| virtual void | processCrashInto (DtSimMessage *msg) |
| Process a crashInto task message. | |
| virtual void | doFlying () |
| Overridden from the parent class to: -Not reset the ordered altitude. | |
| virtual void | processWaypointChanged (DtVrfObject *obj) |
| Overridden from DtFixedWingMoveToController to not set waypoint altitude when the target point moves. | |
Static Public Member Functions | |
| static DtSimComponent * | creator (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) |
| (const DtString&,DtVrfObject*,DtSimManager*, | |
| static void | crashIntoCallback (DtSimMessage *msg, void *usr) |
| Static callback for crashInto task messages. | |
Protected Attributes | |
| DtFixedWingFlyIntoControllerDescriptor * | myDescriptor |
Private Member Functions | |
| DtFixedWingFlyIntoController () | |
| Not implemented. | |
| DtFixedWingFlyIntoController (const DtFixedWingFlyIntoController &orig) | |
| Not implemented. | |
| DtFixedWingFlyIntoController & | operator= (const DtFixedWingFlyIntoController &orig) |
| Not implemented. | |
DtFixedWingFlyIntoController is a controller that models flying into the ground for fixed-wing entities.
End User Description: It registers for Crash-Into tasks, and when activated, it attempts to fly its parent entity directly into the point specified in the task. It is assumed that this is a ground point, or at least that it should be approaching the point from above. The difference between this and a move-to controller is that this controller maintains the altitude at the time the task was given until it is within a specified range or elevation-angle of the target position. Once within this range/angle, it flies directly toward the target position. This task does not complete. Since it is a suicidal task, it is assumed to be the last task this entity will perform.
Uses Descriptor Type: DtFixedWingFlyIntoControllerDescriptor
DtFixedWingFlyIntoController model description
| DtFixedWingFlyIntoController::DtFixedWingFlyIntoController | ( | const DtString & | name, |
| DtVrfObject * | owner, | ||
| DtSimManager * | simManager, | ||
| DtComponentDescriptor * | desc = 0, |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
(const DtString&,DtVrfObject*,DtSimManager*,
| name | Reader writer name of this component. |
| owner | The DtVrfObject that owns this component |
| simManager | The simulation manager (provides access to terrain, message interface, simulation clock). |
| desc | The component descriptor used to initialize this component. |
| parentRegistry | Pointer to the parent reader writer registry (the containing object that reads/writes this object). |
| virtual DtFixedWingFlyIntoController::~DtFixedWingFlyIntoController | ( | ) | [virtual] |
destructor
Not implemented.
| DtFixedWingFlyIntoController::DtFixedWingFlyIntoController | ( | const DtFixedWingFlyIntoController & | orig | ) | [private] |
Not implemented.
| virtual DtString DtFixedWingFlyIntoController::type | ( | ) | const [virtual] |
Calculate new control values.
Returns a string identifies the class type of component. Type values are defined in compTypes.h. DtSimComponent creation functions are registered with the DtSimComponentFactory using the type values as the key.
Reimplemented from DtFixedWingMoveToController.
| virtual void DtFixedWingFlyIntoController::setComponentDescriptor | ( | DtComponentDescriptor * | desc | ) | [virtual] |
Called by init.
Cast descriptor to the DtFixedWingFlyIntoControllerDescriptor and keep a pointer to it for use as we run.
Reimplemented from DtSimComponent.
| virtual void DtFixedWingFlyIntoController::registerTaskMsgCallbacks | ( | ) | [virtual] |
Overrides this so it can register its interest in CrashInto commands.
Reimplemented from DtFixedWingMoveToController.
| static DtSimComponent* DtFixedWingFlyIntoController::creator | ( | const DtString & | name, |
| DtVrfObject * | owner, | ||
| DtSimManager * | simManager, | ||
| DtComponentDescriptor * | desc = 0, |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) | [static] |
(const DtString&,DtVrfObject*,DtSimManager*,
| name | Reader writer name of this component. |
| owner | The DtVrfObject that owns this component |
| simManager | The simulation manager (provides access to terrain, message interface, simulation clock). |
| desc | The component descriptor used to initialize this component. |
| parentRegistry | Pointer to the parent reader writer registry (the containing object that reads/writes this object). |
Reimplemented from DtFixedWingMoveToController.
| static void DtFixedWingFlyIntoController::crashIntoCallback | ( | DtSimMessage * | msg, |
| void * | usr | ||
| ) | [static] |
Static callback for crashInto task messages.
| virtual void DtFixedWingFlyIntoController::processCrashInto | ( | DtSimMessage * | msg | ) | [virtual] |
Process a crashInto task message.
The actual altitude of the entity at this time is used as the ordered altitude.
| virtual void DtFixedWingFlyIntoController::doFlying | ( | ) | [virtual] |
Overridden from the parent class to: -Not reset the ordered altitude.
Ordered altitude is left as the actual altitude at the time the task was activated. -Once the entity is within the direct-fly-distance or within the direct-fly-elevation-angle, switches to using flyDirect() in place of the standard fly() method of the pilot controller.
Reimplemented from DtFixedWingMoveToController.
| virtual void DtFixedWingFlyIntoController::processWaypointChanged | ( | DtVrfObject * | obj | ) | [virtual] |
Overridden from DtFixedWingMoveToController to not set waypoint altitude when the target point moves.
Cruise missiles maintain ordered altitude when moving toward the target.
Reimplemented from DtFixedWingMoveToController.
| DtFixedWingFlyIntoController& DtFixedWingFlyIntoController::operator= | ( | const DtFixedWingFlyIntoController & | orig | ) | [private] |
Not implemented.