VR-Forces 4.1 Class Documentation
surfEntFolwCtl.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 #pragma once
12 
14 
15 class DtSimManager;
16 class DtSimMessage;
17 
18 
30 
34 {
35 
36 public:
37 
41  DtVrfObject* owner,
42  DtSimManager* simManager,
43  DtComponentDescriptor* desc = 0,
44  DtReaderWriterRegistry* parentRegistry = 0);
45 
50 
53  virtual DtString type() const;
54 
63  static void followEntityCallback(DtSimMessage* msg, void* usrData);
64 
71  virtual void processFollowEntityTask(DtSimMessage* msg);
72 
79  virtual const DtString& entityToFollow();
81  virtual void setEntityToFollow(const DtString& entity);
82 
87  virtual const DtVector& offsetVector() const;
88  virtual void setOffsetVector(const DtVector& offsets);
90 
94  virtual void registerTaskMsgCallbacks();
95 
102  virtual bool setupControlPoint();
103 
120  virtual void tick();
121 
130  virtual void matchFollowedEntity();
131 
134  virtual double findDesiredSpeed();
135 
138  virtual void setupGoalVector(const DtVector & goalPosition);
139 
142  virtual bool passedGoal();
143 
147  static DtSimComponent* creator(const DtString& name,
148  DtVrfObject* owner,
149  DtSimManager* simManager,
150  DtComponentDescriptor* desc = 0,
151  DtReaderWriterRegistry* parentRegistry = 0);
152 
161  virtual void doMoving (double desiredSpeed);
162 
163 protected:
166 
170 
174 
175 protected:
176 
179 
180 };

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)