VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
missileTargetController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
11 
13 class DtMissileTargetControllerComponentDescriptor;
15 
19 {
20 private:
21  //Not Implemented.
23  //Not Implemented.
25  //Not Implemented.
27 
28 public:
29 
30  //\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
31  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
33  DtVrfObject* owner,
34  DtSimManager* simManager,
35  DtComponentDescriptor* desc = NULL,
36  DtReaderWriterRegistry* parentRegistry = NULL);
37 
38  virtual ~DtMissileTargetController();
39 
40  //Initial setup of component after creation.
41  virtual bool init();
42 
43  //Creates the process state repository for this component.
44  virtual bool createPSR();
45 
46  //\copydoc DtSimComponent::type()
47  //\return DtTurnAndMoveControllerType.
48  virtual const char* type() const;
49 
50  //Main processing for component.
51  virtual void tick();
52 
53 protected:
54 
56  virtual double launchTime() const;
57 
60  virtual double initialLaunchTime() const;
61 
63  virtual double moveOutHeading() const;
64 
66  virtual std::string scriptedMovementObject() const;
67 
68  virtual void preFirstTickInit();
69 
70 public:
71 
72  //\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
73  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
74  //\return New instance of this class.
75  static DtSimComponent * creator(const DtString& name,
76  DtVrfObject* owner,
77  DtSimManager* simManager,
78  DtComponentDescriptor* desc = 0,
79  DtReaderWriterRegistry* parentRegistry = 0);
80 
81 protected:
83  virtual void createObjectForPhase(int phase);
84 
86  virtual DtTaitBryan launchOrientation(const DtScriptedMovementPhase& phase) const;
87 
89  virtual void setup();
90 
91 protected:
94  bool myValid;
96 };

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)