VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
fixedWingFlyIntoController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
15 
17 class DtCrashIntoTask;
18 
26 
32 
39 
42 {
43 
44 public:
45 
49  DtLocalObject* owner,
50  DtSimulationServices* simManager,
51  DtComponentDescriptor* desc = 0,
52  DtReaderWriterRegistry* parentRegistry = 0);
53 
55  virtual ~DtFixedWingFlyIntoController() override;
56 
58  //virtual void tick();
59 
62  virtual const char* type() const override;
63 
67  virtual void setComponentDescriptor(DtComponentDescriptor* desc) override;
68 
70  virtual void registerTaskMsgCallbacks() override;
71 
75  static DtSimComponent * creator(const DtString& name,
76  DtLocalObject* owner,
77  DtSimulationServices* simManager,
78  DtComponentDescriptor* desc = 0,
79  DtReaderWriterRegistry* parentRegistry = 0);
80 
82  static void crashIntoCallback(DtSimMessage* msg, void* usr);
83 
87  virtual void processCrashInto(DtSimMessage* msg);
88 
92  virtual void processCrashIntoObject(DtCrashIntoTask* crashTask);
93 
97  virtual void processCrashIntoLocation(DtCrashIntoTask* crashTask);
98 
105  virtual void doFlying() override;
106 
110  virtual void processWaypointChanged(const DtSimObject* obj) override;
111 
112 protected:
114  virtual void updateTaskVisualizations() override;
115  virtual bool terrainAvoidanceEnabled() const override;
116 
117 protected:
120  double myClimbRate = 0.;
121  bool myWarnedOnce = false;
122 
123 private:
128  const DtFixedWingFlyIntoController& orig);
131  const DtFixedWingFlyIntoController& orig);
132 };
133 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtFixedWingFlyIntoController is a controller that models flying into the ground for fixed-wing entiti...
Definition: fixedWingFlyIntoController.h:41
DtFixedWingMoveToController & operator=(const DtFixedWingMoveToController &orig)
assignment operator
DtFixedWingFlyIntoControllerDescriptor * myDescriptor
Definition: fixedWingFlyIntoController.h:118
DtCrashIntoTask is a task message intended to order an entity to manuver itself to crash directly int...
Definition: crashIntoTask.h:22
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
DtSimObjectReference myCrashIntoPoint
Definition: fixedWingFlyIntoController.h:119
virtual void processWaypointChanged(const DtSimObject *msg)
DtFixedWingFlyIntoControllerDescriptor; descriptor for the DtFixedWingFlyIntoControllerDescriptor com...
Definition: fixedWingFlyIntoControllerDescriptor.h:27
virtual bool terrainAvoidanceEnabled() const
virtual void setComponentDescriptor(DtComponentDescriptor *componentDescriptor)
The component descriptor specified in the order of battle file or parameter file that was used to cre...
File: simMsg.h.
Definition: simMessage.h:35
virtual const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual void doFlying()
Determines if the entity is five seconds or fewer away from being at the waypoint using the entity’s s...
DtFixedWingMoveToController is a controller used to model the movement of a fixed wing entity to a sp...
Definition: fixedWingMoveToController.h:28
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:80
virtual void updateTaskVisualizations() override
update visualizations
virtual void registerTaskMsgCallbacks() override
Overrides this so it can register its interest in MoveTo commands and all other messages described in...
A locally simulated VRF object.
Definition: localObject.h:98

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)