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 
47 
48  virtual bool init();
49 
52  virtual const char* type() const;
53 
56  virtual void selectATarget();
57 
59 
63  virtual DtSimObjectReference chooseTarget(const DtEntityTargetList& targetList) const;
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
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
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 const char * type() const
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual bool init()
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:94
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:91
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:88
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...
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)