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 
25 
31 
38 
41 {
42 
43 public:
44 
48  DtLocalObject* owner,
49  DtSimulationServices* simManager,
50  DtComponentDescriptor* desc = 0,
51  DtReaderWriterRegistry* parentRegistry = 0);
52 
55 
57  //virtual void tick();
58 
61  virtual const char* type() const;
62 
67 
69  virtual void registerTaskMsgCallbacks();
70 
74  static DtSimComponent * creator(const DtString& name,
75  DtLocalObject* owner,
76  DtSimulationServices* simManager,
77  DtComponentDescriptor* desc = 0,
78  DtReaderWriterRegistry* parentRegistry = 0);
79 
81  static void crashIntoCallback(DtSimMessage* msg, void* usr);
82 
86  virtual void processCrashInto(DtSimMessage* msg);
87 
94  virtual void doFlying();
95 
99  virtual void processWaypointChanged(const DtSimObject* obj);
100 
101 protected:
104 
105 private:
110  const DtFixedWingFlyIntoController& orig);
113  const DtFixedWingFlyIntoController& orig);
114 };
115 
#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:40
DtFixedWingMoveToController & operator=(const DtFixedWingMoveToController &orig)
assignment operator
virtual void registerTaskMsgCallbacks()
Overrides this so it can register its interest in MoveTo commands and all other messages described in...
DtFixedWingFlyIntoControllerDescriptor * myDescriptor
Definition: fixedWingFlyIntoController.h:102
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
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:103
virtual void processWaypointChanged(const DtSimObject *msg)
DtFixedWingFlyIntoControllerDescriptor; descriptor for the DtFixedWingFlyIntoControllerDescriptor com...
Definition: fixedWingFlyIntoControllerDescriptor.h:27
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 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
virtual const char * type() const
Returns a string identifies the class type of component. Type values are defined in compTypes...
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:95
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:91
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:88
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)