VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
affectEngineeringObjectPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 #include <vrfobjcore/simObject.h>
16 #include <readerWriter/rwBoolean.h>
17 #include <readerWriter/rwInt.h>
18 #include <readerWriter/rwReal.h>
19 #include <readerWriter/rwString.h>
20 #include <vrfutil/rwEntityType.h>
22 #include "vrfutil/rwVectorList.h"
23 #include <vrfutil/rwUUID.h>
25 
28 
31 {
32 public:
34  {
39  DtAffectingPaused
40  };
41 
42  typedef std::map<DtString, double> DtResourceMap;
43 
46  const DtString& rwName = DtString::nullString(),
47  DtReaderWriterRegistry* parentRegistry = 0);
48 
51  const DtString& rwName = DtString::nullString(),
52  DtReaderWriterRegistry* parentRegistry = 0);
53 
55  virtual ~DtAffectEngineeringObjectPSR() override;
56 
59 
62  const DtString& rwName = DtString::nullString(), DtReaderWriterRegistry* parentRegistry = 0) const override;
63 
66  virtual DtString type() const override;
67 
69  virtual void clear();
70 
73  virtual void setState(DtAffectEngineeringObjectState state);
74  virtual DtAffectEngineeringObjectState state() const;
76 
80  virtual void setIsObjectCreated(bool created);
81  virtual bool isObjectCreated() const;
83 
86  virtual void setEngineeringObject(const DtUUID&);
87  virtual DtSimObjectReference engineeringObject() const;
89 
92  virtual void setObjectType(const DtEntityType& objType);
93  virtual const DtEntityType& objectType() const;
95 
98  virtual void setObjectsVertices(const DtRwShapeObjectList& v);
99  virtual const DtRwShapeObjectList& objectsVertices() const;
101 
104  virtual void setObjectJustCreated(bool);
105  virtual bool objectJustCreated() const;
106 
110  virtual const DtRwVectorList* nextObjectVertices() const;
111 
115  virtual const DtRwVectorList* currentObjectVertices() const;
116 
118  virtual unsigned currentObjectIndex() const;
119 
123  virtual const DtLocalVertexList* currentLocalObjectsVertices(const Coordinate_System*) const;
124 
127  virtual void setObjectRadius(double w);
128  virtual double objectRadius() const;
130 
133  virtual void setResourcesUsed(const DtResourceMap& resources);
134  virtual const DtResourceMap& resourcesUsed() const;
136 
139  virtual void setRange(double r);
140  virtual double range() const;
142 
146  virtual void setStrength(double s);
147  virtual double strength() const;
149 
152  virtual void setInstantaneous(bool isInstantaneous);
153  virtual bool instantaneous() const;
155 
158  virtual void setCreatorsHealth(int health);
159  virtual int creatorsHealth() const;
161 
164  virtual void setSetupTime(double t);
165  virtual double setupTime() const;
167 
170  virtual void setLastUpdateTime(double t);
171  virtual double lastUpdateTime() const;
173 
176  virtual void setSetupStartTime(double t);
177  virtual double setupStartTime() const;
179 
183  virtual void setProhibitedTerrainQueryName(const DtString& n);
184  virtual const DtString& prohibitedTerrainQueryName() const;
186 
188  static DtVrfProcessStateRepository* creator (const DtString& rwName,
189  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
190 
191 protected:
192 
208 
213 
215 };
216 
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtRwSimObjectReference myEngineeringObject
Definition: affectEngineeringObjectPSR.h:195
DtRwReal mySetupTime
Definition: affectEngineeringObjectPSR.h:204
This is a process state repository for the DtAffectEngineeringObjectController.
Definition: affectEngineeringObjectPSR.h:30
DtRwEntityType myObjectType
Definition: affectEngineeringObjectPSR.h:196
Definition: rwTemplatedList.h:239
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
DtRwBoolean myInstantaneous
Definition: affectEngineeringObjectPSR.h:202
Definition: readerWriterRegistry.h:39
DtRwVectorList * myCurrentObjectVertices
Definition: affectEngineeringObjectPSR.h:210
Contains the DtUUID class declaration.
DtRwTemplatedRealList myResourceUsage
Definition: affectEngineeringObjectPSR.h:199
DtRwReal myLastUpdateTime
Definition: affectEngineeringObjectPSR.h:205
DtRwBoolean myIsObjectCreated
Definition: affectEngineeringObjectPSR.h:193
Specialized reader/writer version of the shared object reference that will encapsulate the actual sha...
Definition: rwSimObjectReference.h:21
DtRwShapeObjectList myObjectsVertices
Definition: affectEngineeringObjectPSR.h:197
DtRwString myProhibitedTerrainQueryName
Definition: affectEngineeringObjectPSR.h:207
Definition: coordSystem.h:54
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
DtRwReal myStrength
Definition: affectEngineeringObjectPSR.h:201
DtRwReal myRange
Definition: affectEngineeringObjectPSR.h:200
DtRwInt myNextObjectIndex
Definition: affectEngineeringObjectPSR.h:209
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwReal myObjectRadius
Definition: affectEngineeringObjectPSR.h:198
bool myObjectJustCreated
Definition: affectEngineeringObjectPSR.h:214
File: rwEntType.h.
Definition: rwEntityType.h:26
DtResourceMap myResourceMap
Definition: affectEngineeringObjectPSR.h:212
Class DtVrfProcessStateRepository: Abstract base class for all process state repositories. Process state repositories represent (potentially) shared, savable information for one or more components functioning together to achieve some process or set of processes; such as aiming and firing a weapon; moving an object; or just waiting a specified amount of time.
Definition: vrfProcessStateRepository.h:45
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
Definition: affectEngineeringObjectPSR.h:38
DtLocalVertexList myCurrentLocalObjectVertices
Definition: affectEngineeringObjectPSR.h:211
DtRwInt myState
Definition: affectEngineeringObjectPSR.h:194
DtAffectEngineeringObjectState
Definition: affectEngineeringObjectPSR.h:33
DtRwReal mySetupStartTime
Definition: affectEngineeringObjectPSR.h:206
Definition: affectEngineeringObjectPSR.h:37
std::map< DtString, double > DtResourceMap
Definition: affectEngineeringObjectPSR.h:42
DtRwInt myCreatorsHealth
Definition: affectEngineeringObjectPSR.h:203
virtual DtString type() const =0
Returns the string type of the repository, as defined in psrTypes.h.
Definition: affectEngineeringObjectPSR.h:36
class DtLocalVertexList:
Definition: localVertexList.h:20
Definition: affectEngineeringObjectPSR.h:35
class DtRwVectorList:
Definition: rwVectorList.h:22
DtRwTemplatedListPtr< DtRwVectorList, true > DtRwShapeObjectList
List of objects each defined by multiple vertices.
Definition: affectEngineeringObjectPSR.h:27
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)
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)