VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
turretAcquireController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
15 #include <vl/hostStructs.h>
17 
18 #include <vl/fireInteraction.h>
19 
20 class DtString;
21 class DtSimManager;
22 class DtSimMessage;
23 class DtEntityListPort;
24 class DtSimIndividualLocalEntity;
25 
27 class DtVectorOutputPort;
32 
59 {
60 
61 public:
62 
66  DtVrfObject* owner,
67  DtSimManager* simManager,
68  DtComponentDescriptor* desc = 0,
69  DtReaderWriterRegistry* parentRegistry = 0);
70 
72  virtual ~DtTurretAcquireController();
73 
76  virtual const char* type() const;
77 
79  virtual bool postAddComponentsInit();
80 
82  virtual void tick();
83 
85  virtual bool inSector(DtVrfObject* entity) const;
86 
88  virtual DtVrfObject* chooseTarget(const DtEntityTargetList& targetList,
89  DtTime currentTime) const;
90 
92  virtual DtVrfObject* easier(DtVrfObject* entity1, DtVrfObject* entity2)
93  const;
94 
99  virtual DtIntegerOutputPort * losPort();
100 
104  static DtSimComponent * creator(const DtString& name,
105  DtVrfObject* owner,
106  DtSimManager* simManager,
107  DtComponentDescriptor* desc = 0,
108  DtReaderWriterRegistry* parentRegistry = 0);
109 
110 protected:
111 
112  virtual void lookupAndCacheProcessSR();
113 
115  virtual bool createPorts();
116 
118  virtual bool createPortGroups();
119 
132  virtual bool canTrackTarget(const DtVector& localEyepoint,
133  DtVrfObject* targetObject,
134  bool *dataAvailable = 0) const;
135 
136 private:
137 
140 
143  orig);
144 
146  const DtTurretAcquireController & operator=(const
148 
149 protected:
150 
157 
160 
167 
175 
179 
187 
195 
203 
211 
213 
215 };
216 

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)