VR-Forces 4.1.1 Class Documentation
scriptedMovementController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 #include "vl/fireInter.h"
12 
14 
18 {
19 private:
20  //Not Implemented.
22  //Not Implemented.
24  //Not Implemented.
26 
27 public:
28 
29  //\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
30  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
32  DtVrfObject* owner,
33  DtSimManager* simManager,
34  DtComponentDescriptor* desc = NULL,
35  DtReaderWriterRegistry* parentRegistry = NULL);
36 
38 
39  //Initial setup of component after creation.
40  virtual bool init();
41 
42  //Creates the process state repository for this component.
43  virtual bool createPSR();
44 
45  //\copydoc DtSimComponent::type()
46  //\return DtTurnAndMoveControllerType.
47  virtual DtString type() const;
48 
49  //Main processing for component.
50  virtual void tick();
51 
52 protected:
53 
54  virtual void registerTaskMsgCallbacks();
55  static void scriptedMovementTaskCallback(DtSimMessage* msg, void* usr);
56  virtual void processScriptedMovementTask(DtSimMessage* msg);
57 
58  virtual void preFirstTickInit();
59 
60  virtual bool setup();
61 
62  virtual void calculateOrientation();
63  virtual void calculateLocation();
64  virtual void calculateSpeed();
65 
67  virtual DtVector groundClamp(const DtVector&) const;
68 
70  virtual DtFireInteraction* createFireInteraction() const;
71 
72  virtual void finishUp();
73  virtual void sendDetonation();
74 
77 
78  static void objectAboutToBeRemovedCallback(DtVrfObject* object, void* usr);
79  virtual void processObjectAboutToBeRemoved(DtVrfObject* object);
81 
83  virtual int detonationResultFromDistance(double d, const DtVector& detonationPosition) const;
84 
85 public:
86 
87  //\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
88  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
89  //\return New instance of this class.
90  static DtSimComponent * creator(const DtString& name,
91  DtVrfObject* owner,
92  DtSimManager* simManager,
93  DtComponentDescriptor* desc = 0,
94  DtReaderWriterRegistry* parentRegistry = 0);
95 
96 protected:
101 };

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)