VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
humanFleeControllerDescriptor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
15 #include <readerWriter/rwReal.h>
16 #include <readerWriter/rwBoolean.h>
17 
21 {
22 public:
24  DtHumanFleeControllerDescriptor(const DtString& componentName,
25  DtReaderWriterRegistry* parentRegistry = 0);
26 
29  DtReaderWriterRegistry* parentRegistry = 0);
30 
31  virtual ~DtHumanFleeControllerDescriptor() override;
32 
35  const DtHumanFleeControllerDescriptor & orig);
36 
39  virtual DtString type() const override;
40 
41  virtual DtComponentDescriptor* clone(DtReaderWriterRegistry* parentRegistry = 0) const override;
42 
45 
48  virtual double angleBetweenPoints() const;
49  virtual void setAngleBetweenPoints(double angle);
51 
54  virtual double fleeFromThreshold() const;
55  virtual void setFleeFromThreshold(double threshold);
57 
60  virtual bool showFleePoint() const;
61  virtual void setShowFleePoint(bool);
62 
65  virtual double atDistance() const;
66  virtual void setAtDistance(double distance);
68 
71  virtual bool allowToFleePastFleePoint() const;
72  virtual void setAllowToFleePastFleePoint(bool);
74 
77  virtual double fleeCone() const;
78  virtual void setFleeCone(double);
80 
83  virtual double reevaluatePeriod() const;
84  virtual void setReevaluatePeriod(double v);
86 
89  virtual double reevaluatePeriodVariance() const;
90  virtual void setReevaluatePeriodVariance(double v);
92 
93 protected:
96 
97 protected:
100 
101 
108 
115 
122 
128 
134 
142 
149 
157 };
DtRwBoolean myShowFleePoint
Parameter Name: show-flee-point Parameter Description: Whether or not to show calculated flee point P...
Definition: humanFleeControllerDescriptor.h:127
DtRwReal myReevaluatePeriodVariance
Parameter Name: reevaluate-period-variance Parameter Description: In order to prevent a crowd of enti...
Definition: humanFleeControllerDescriptor.h:155
DtRwReal myFleeFromThreshold
Parameter Name: flee-from-threshold Parameter Description: When the object from which we are fleeing ...
Definition: humanFleeControllerDescriptor.h:114
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
DtRwReal myAngleBetweenPoints
Parameter Name: angle-between-points Parameter Description: Specifies the distance between the angles...
Definition: humanFleeControllerDescriptor.h:107
DtRwReal myReevaluatePeriod
Parameter Name: reevaluate-period Parameter Description: The time period for reevaluating a flee poin...
Definition: humanFleeControllerDescriptor.h:148
Definition: readerWriterRegistry.h:39
DtComponentDescriptor & operator=(const DtComponentDescriptor &orig)
assignment
DtRwReal myAtDistance
Parameter Name: at-distance Parameter Description: Maximum distance from goal entity is considered to...
Definition: humanFleeControllerDescriptor.h:121
DtRwReal myFleeCone
Parameter Name: flee-cone Parameter Description: The wedge, in degrees, the flee heading can be off o...
Definition: humanFleeControllerDescriptor.h:141
DT_DLL_VRVCORE double distance(const makVrv::DtCoordinateSystem &, const DtVector &from, const DtVector &to)
Returns the distance from the two points. Coordinates are in local database coordinates The coordinat...
DT_DLL_vrfutil double angle(double vec1[3], double vec2[3])
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=NULL) const
DtHumanFleeControllerDescriptor; descriptor for the DtHumanFleeController component.
Definition: humanFleeControllerDescriptor.h:20
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
virtual DtString type() const
Returns the type of component this descriptor describes. Used to create the descriptor on read from a...
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
static DtComponentDescriptor * creator()
DtRwBoolean myAllowToFleePastFleePoint
Parameter Name: allow-to-flee-past-flee-point Parameter Description: Whether or not the object can tr...
Definition: humanFleeControllerDescriptor.h:133

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)