VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 
28 
55 {
56 
57 public:
58 
62  DtVrfObject* owner,
63  DtSimManager* simManager,
64  DtComponentDescriptor* desc = 0,
65  DtReaderWriterRegistry* parentRegistry = 0);
66 
68  virtual ~DtTurretAcquireController();
69 
72  virtual DtString type() const;
73 
75  virtual bool init();
76 
78  virtual void tick();
79 
81  virtual bool inSector(DtVrfObject* entity) const;
82 
84  virtual DtReal findBodyHeadingToTarget(DtVrfObject* entity) const;
85 
87  virtual DtVrfObject* chooseTarget(const DtEntityTargetList& targetList,
88  DtTime currentTime) const;
89 
91  virtual DtVrfObject* easier(DtVrfObject* entity1, DtVrfObject* entity2)
92  const;
93 
97  static DtSimComponent * creator(const DtString& name,
98  DtVrfObject* owner,
99  DtSimManager* simManager,
100  DtComponentDescriptor* desc = 0,
101  DtReaderWriterRegistry* parentRegistry = 0);
102 
103 protected:
104 
106  virtual bool createPorts();
107 
117  virtual bool canTrackTarget(const DtVector& localEyepoint,
118  DtVrfObject* targetObject) const;
119 
120 private:
121 
124 
127  orig);
128 
130  const DtTurretAcquireController & operator=(const
132 
133 protected:
134 
137 
144 
146 
148 
150  DtEntityIdentifier myObjectId;
151 };
152 

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)