VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
launcherActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 #pragma once
11 
14 #include <vl/hostStructs.h>
15 
16 class DtSimManager;
17 
19 class DtVectorInputPort;
20 
38 {
39 
40 public:
41 
44  DtLauncherActuator(const DtString& name,
45  DtVrfObject* owner,
46  DtSimManager* simManager,
47  DtComponentDescriptor* desc = 0,
48  DtReaderWriterRegistry* parentRegistry = 0);
49 
51  virtual ~DtLauncherActuator();
52 
55  virtual bool init();
56 
59  virtual const char* type() const;
60 
69  virtual void fireTheWeapon();
70 
72  virtual DtFireInteraction * createFireInteraction(DtVrfObject *missile);
73 
77  static DtSimComponent * creator(const DtString& name,
78  DtVrfObject* owner,
79  DtSimManager* simManager,
80  DtComponentDescriptor* desc = 0,
81  DtReaderWriterRegistry* parentRegistry = 0);
82 
83 protected:
84 
87  virtual bool createPorts();
88 
91  virtual bool shouldHitTarget(const DtVector& localStartPosition,
92  const DtVector& localTargetPosition, const DtVector& localInitialVelocity,
93  const DtVrfObject *targetObject) const;
94 
97  virtual bool useHitProbability(const DtVrfObject *targetObject) const;
98 
99  virtual const DtString& probabilityString() const;
100 
101 protected:
102 
105 
108 
110  const DtLauncherActuator & operator=(const DtLauncherActuator & orig);
111 
112 
113 protected:
114 
116 
119 
126 
133 
140 
142 
146 
148 };
149 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)