VR-Forces 4.1 Class Documentation
gndInterceptAndDestroyController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 #pragma once
11 
13 
14 #include <vlutil/vlString.h>
15 #include <matrix/vlVector.h>
16 
17 class DtSimManager;
18 class DtSimMessage;
19 class DtStringOutputPort;
20 class DtGroundInterceptAndDestroyControllerDescriptor;
21 
22 
33 {
34 
35 public:
36 
40  DtVrfObject* owner,
41  DtSimManager* simManager,
42  DtComponentDescriptor* desc = 0,
43  DtReaderWriterRegistry* parentRegistry = 0);
44 
47 
50  virtual DtString type() const;
51 
55  static void interceptAndDestroyCallback(DtSimMessage* msg, void* usrData);
56 
57  virtual void processInterceptAndDestroyTask(DtSimMessage* msg);
58 
63  virtual const DtString& entityToInterceptAndDestroy();
64  virtual void setEntityToInterceptAndDestroy(const DtString& entity);
65 
69  static DtSimComponent * creator(const DtString& name,
70  DtVrfObject* owner,
71  DtSimManager* simManager,
72  DtComponentDescriptor* desc = 0,
73  DtReaderWriterRegistry* parentRegistry = 0);
74 
76  virtual void registerTaskMsgCallbacks();
77 
81  virtual bool setupDestination();
82 
83  virtual void moveToDestination();
84 
87  virtual bool nearDestination();
88 
91  virtual bool atDestination();
92 
95  virtual bool passedDestination();
96 
99  virtual double findDesiredSpeed();
100 
104  virtual double findDesiredHeading();
105 
116  virtual void setupDestinationVector() const;
117 
123 
127  virtual void stop();
128 
129 protected:
133 
136  orig);
137 
141 
142  bool createPorts();
143 
144 protected:
145 
152  double myTargetBR;
153 
155 };
156 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)