VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
humanLauncherAcquireController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
12 
13 #pragma once
14 
16 
19 
22 
33 {
34 
35 public:
36 
40  DtLocalObject* owner,
41  DtSimulationServices* simManager,
42  DtComponentDescriptor* desc = 0,
43  DtReaderWriterRegistry* parentRegistry = 0);
44 
46  virtual ~DtHumanLauncherAcquireController() override;
47 
48  virtual bool init() override;
49 
52  virtual const char* type() const override;
53 
56  virtual void selectATarget() override;
57 
58  virtual DtSimObjectReference easier(DtSimObjectReference entity1, DtSimObjectReference entity2) const override;
59 
63  virtual DtSimObjectReference chooseTarget(const DtEntityTargetList& targetList) const override;
64 
69  virtual bool targetIsAcquirable(const DtSimObject* targetObj,
70  const DtVector& localEyepoint) const;
71 
74  virtual bool checkSpeedForAcquire(DtTargetAcquireCriteria * crit, const DtSimObject* target) const;
75 
78  virtual bool checkElevationForAcquire(DtTargetAcquireCriteria * crit, const DtSimObject* target) const;
79 
83  virtual bool checkElevAngleForAcquire(DtTargetAcquireCriteria * crit, const DtSimObject* target) const;
84 
88  static DtSimComponent * creator(const DtString& name,
89  DtLocalObject* owner,
90  DtSimulationServices* simManager,
91  DtComponentDescriptor* desc = 0,
92  DtReaderWriterRegistry* parentRegistry = 0);
93 
94 
95 protected:
96 
98  DtTargetAcquireCriteria * findAcquireCriteria(const DtEntityType & entityType) const;
99 
102 
106 
109  const DtHumanLauncherAcquireController & orig);
110 
111 
112 protected:
113 
115 
116 protected:
117 
120 
121  mutable std::set<DtUUID> myActiveTooFastTargets;
122  mutable std::set<DtUUID> myActiveTooHighTargets;
123  mutable std::set<DtUUID> myActiveTooSteepAngleTargets;
124 
125 };
std::set< DtUUID > myActiveTooSteepAngleTargets
Definition: humanLauncherAcquireController.h:123
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
const DtIndLifeformLauncherAcquireDescriptor * myLauncherAcquireDescriptor
Definition: humanLauncherAcquireController.h:114
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
Acquire controller for the human movement model. Causes a human to stop and turn toward a target...
Definition: humanAcquireController.h:27
DtIndLifeformLauncherAcquireDescriptor; descriptor for the DtIndLifeformLauncherAcquire component...
Definition: indLifeformLauncherAcquireDescriptor.h:27
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
const DtHumanAcquireController & operator=(const DtHumanAcquireController &orig)
assignment operator; not implemented
DtTargetAcquireCriteria–Criteria for acquiring a target.
Definition: targetAcquireCriteria.h:28
virtual DtSimObjectReference chooseTarget(const DtEntityTargetList &targetList) const
pick up a possible target from the sensor list Calls targetVisible() to check if potential targets ar...
virtual bool init() override
Calls setRadio()
DtHumanLauncherAcquireController stops the lifeform when a target is detected, and turns the entity t...
Definition: humanLauncherAcquireController.h:32
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:80
std::set< DtUUID > myActiveTooHighTargets
Definition: humanLauncherAcquireController.h:122
virtual DtSimObjectReference easier(DtSimObjectReference entity1, DtSimObjectReference entity2) const
std::set< DtUUID > myActiveTooFastTargets
Store the last units missed to produce meaning information to the user in info mode Need to be mutabl...
Definition: humanLauncherAcquireController.h:121
virtual void selectATarget()
selects a target to acquire. uses functions determine if the possible target is in sector and to sele...
virtual const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)