VR-Forces 4.10 Class Documentation
 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 
18 class DtVrfObject;
20 
23 
34 {
35 
36 public:
37 
41  DtVrfObject* owner,
42  DtSimManager* simManager,
43  DtComponentDescriptor* desc = 0,
44  DtReaderWriterRegistry* parentRegistry = 0);
45 
48 
49  virtual bool init();
50 
53  virtual const char* type() const;
54 
57  virtual void selectATarget();
58 
59  virtual const DtVrfObject* easier(const DtVrfObject* entity1, const DtVrfObject* entity2) const;
60 
64  virtual const DtVrfObject* chooseTarget(const DtEntityTargetList& targetList) const;
65 
70  virtual bool targetIsAcquirable(const DtVrfObject* targetObj,
71  const DtVector& localEyepoint) const;
72 
75  virtual bool checkSpeedForAcquire(DtTargetAcquireCriteria * crit, const DtVrfObject * target) const;
76 
79  virtual bool checkElevationForAcquire(DtTargetAcquireCriteria * crit, const DtVrfObject * target) const;
80 
84  virtual bool checkElevAngleForAcquire(DtTargetAcquireCriteria * crit, const DtVrfObject * target) const;
85 
89  static DtSimComponent * creator(const DtString& name,
90  DtVrfObject* owner,
91  DtSimManager* simManager,
92  DtComponentDescriptor* desc = 0,
93  DtReaderWriterRegistry* parentRegistry = 0);
94 
95 
96 protected:
97 
99  DtTargetAcquireCriteria * findAcquireCriteria(const DtEntityType & entityType) const;
100 
103 
107 
110  const DtHumanLauncherAcquireController & orig);
111 
112 
113 protected:
114 
116 
117 protected:
118 
121 
122  mutable std::set<DtUUID> myActiveTooFastTargets;
123  mutable std::set<DtUUID> myActiveTooHighTargets;
124  mutable std::set<DtUUID> myActiveTooSteepAngleTargets;
125 
126 };
std::set< DtUUID > myActiveTooSteepAngleTargets
Definition: humanLauncherAcquireController.h:124
virtual const DtVrfObject * chooseTarget(const DtEntityTargetList &targetList) const
pick up a possible target from the sensor list Calls targetVisible() to check if potential targets ar...
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
const DtIndLifeformLauncherAcquireDescriptor * myLauncherAcquireDescriptor
Definition: humanLauncherAcquireController.h:115
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
Acquire controller for the human movement model.
Definition: humanAcquireController.h:27
DtIndLifeformLauncherAcquireDescriptor; descriptor for the DtIndLifeformLauncherAcquire component...
Definition: indLifeformLauncherAcquireDescriptor.h:27
const DtHumanAcquireController & operator=(const DtHumanAcquireController &orig)
assignment operator; not implemented
DtTargetAcquireCriteria–Criteria for acquiring a target.
Definition: targetAcquireCriteria.h:28
virtual const DtVrfObject * easier(const DtVrfObject *entity1, const DtVrfObject *entity2) const
virtual const char * type() const
Returns a string identifies the class type of component.
virtual bool init()
Calls setRadio()
DtHumanLauncherAcquireController stops the lifeform when a target is detected, and turns the entity t...
Definition: humanLauncherAcquireController.h:33
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
std::set< DtUUID > myActiveTooHighTargets
Definition: humanLauncherAcquireController.h:123
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
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:122
virtual void selectATarget()
selects a target to acquire.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)