VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
fixedWingEmbarkationController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2005 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 #pragma once
12 
14 
16 
28 {
29 public:
30 
34  DtLocalObject* owner,
35  DtSimulationServices* simManager,
36  DtComponentDescriptor* desc = 0,
37  DtReaderWriterRegistry* parentRegistry = 0);
38 
41 
44  virtual const char* type() const;
45 
49  static DtSimComponent * creator(const DtString& name,
50  DtLocalObject* owner,
51  DtSimulationServices* simManager,
52  DtComponentDescriptor* desc = 0,
53  DtReaderWriterRegistry* parentRegistry = 0);
54 
55  virtual void atEmbarkationPoint();
56 
57 protected:
60  virtual void embark(const DtVector& loadPosition, const DtUUID& parentName, int appearance,
61  const DtTaitBryan& orientation, const DtVector& acceleration = DtVector(), const DtVector& velocty = DtVector(), bool invisibleWhenEmbarked = false,
62  const DtString& animation = DtString::nullString());
63 
65  virtual void issueMoveAlongToIngressTask();
66 
68  virtual void issueMoveAlongToEgressTask();
69 
72  virtual void processTaskComplete(DtSimMessage * msg);
73 
75  virtual void movingToEgress();
76 
78  virtual void movingToIngress();
79 
80  virtual bool init();
81  virtual void setLocation(const DtVector& world);
82 
83 private:
84 
87 
90  orig);
91 
95 
96 protected:
98 };
99 
DtFixedWingEmbarkationController is a controller used to model embarkation behavior for fixed-wing en...
Definition: fixedWingEmbarkationController.h:27
UUID is a unique ID wrapper class.
Definition: uuid.h:59
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtFixedWingEntityStateRepository * myFixedWingEntityState
Definition: fixedWingEmbarkationController.h:97
virtual void movingToEgress()
Called while entity is moving to egress point. Currently no-ops.
virtual void embark(const DtVector &loadPosition, const DtUUID &parent, int appearance=0xFFFFFFFF, const DtTaitBryan &orientation=DtTaitBryan(), const DtVector &acceleration=DtVector(), const DtVector &velocty=DtVector(), bool invisibleWhenEmbarked=false, const DtString &animation=DtString::nullString())
Called to complete embarkation via task.
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
DtEmbarkationController is a controller that supports base level embarkation/disembarkation for entit...
Definition: embarkationController.h:41
virtual void issueMoveAlongToIngressTask()
virtual void setLocation(const DtVector &)
Sends setLocation request to this entity for the specified world location.
virtual void processTaskComplete(DtSimMessage *msg)
File: simMsg.h.
Definition: simMessage.h:35
This repository holds all information that is common to all the forms of local fixed wing entities wi...
Definition: fixedWingEntityStateRepository.h:41
const DtEmbarkationController & operator=(const DtEmbarkationController &orig)
assignment operator; not implemented
virtual void atEmbarkationPoint()
If the descriptor says to stop at embarkation point, then this issues a DtStopMovingTask and sets the...
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:94
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:91
virtual bool init()
Initializes any state that is needed.
virtual void issueMoveAlongToEgressTask()
Override to issue a task that is different than the default DtMoveAlong task.
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
virtual void movingToIngress()
Called while the entity is moving to ingress point. If ingress is actually a route, when the entity gets to the first point of the route, embark it so it will avoid obstacles.
virtual const char * type() const
Returns a string identifies the class type of component. Type values are defined in compTypes...
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 Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)