VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
humanMoveAlongPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 #pragma once
9 
11 #include "vrfobjcore/simObject.h"
12 #include <readerWriter/rwReal.h>
13 #include <readerWriter/rwInt.h>
14 #include <readerWriter/rwBoolean.h>
15 #include <readerWriter/rwString.h>
16 #include "readerWriter/rwVector.h"
20 #include <vrfutil/rwUUID.h>
22 
28 {
29 public:
30 
33  const DtString& rwName = DtString::nullString(),
34  DtReaderWriterRegistry* parentRegistry = 0);
35 
38  const DtString& rwName = DtString::nullString(),
39  DtReaderWriterRegistry* parentRegistry = 0);
40 
42  virtual ~DtHumanMoveAlongPSR() override;
43 
46 
49  const DtString& rwName = DtString::nullString(), DtReaderWriterRegistry* parentRegistry = 0) const override;
50 
53  virtual DtString type() const override;
54 
60  virtual void setWorldDestination(const DtVector& destination);
61  virtual const DtVector& worldDestination() const;
63 
67  virtual void setRoute(const DtUUID&);
68 
70  virtual DtSimObjectReference route() const;
72 
76  virtual void setMoveToPoint(const DtUUID&);
77 
79  virtual DtSimObjectReference moveToPoint() const;
81 
83  virtual const DtLocalVertexList& routeVertices() const;
84 
86  virtual void resetRouteState();
87 
90  virtual void setReversePatrol(bool flag);
91  virtual bool reversePatrol() const;
93 
97  virtual void setCurrentVertex(int vertex);
98  virtual int currentVertex() const;
100 
102  virtual bool currentVertexIsValid() const;
103 
105  virtual void moveToNextVertex();
106 
108  virtual DtVector currentVertexLocation() const;
109 
111  virtual DtVector previousVertexLocation() const;
112 
115  virtual DtVector lastVertexLocation() const;
116 
119  virtual void setSpeedOverride(double speed);
120  virtual double speedOverride() const;
121  virtual void setIsSpeedOverrideSpecified(bool o);
122  virtual bool isSpeedOverrideSpecified() const;
124 
126  virtual void putSelf(std::string& fp, int indentLevel = 0, bool writeUnspecified = false,
127  const DtFilename& path = DtReaderWriter::appPath()) override;
128 
129 public:
130 
132  static DtVrfProcessStateRepository* creator (const DtString& rwName,
133  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
134 
135 protected:
136 
140 
143 
146 
151 
154 
157 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtRwSimObjectReference myMoveToPoint
When the move to subtask is issued, this is the point moving to.
Definition: humanMoveAlongPSR.h:142
DtRwReal mySpeedOverride
The speed override.
Definition: humanMoveAlongPSR.h:156
DtRwVector myWorldDestination
World point for move to location tasks.
Definition: humanMoveAlongPSR.h:153
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
Definition: rwVector.h:23
Specialized reader/writer version of the shared object reference that will encapsulate the actual sha...
Definition: rwSimObjectReference.h:21
#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
DtRwBoolean myReverseFlag
From DtGroundPatrolRouteController (gndPtrlRtCtl.h)
Definition: humanMoveAlongPSR.h:150
DtRwInt myCurrentVertex
Read/write variables to capture route state.
Definition: humanMoveAlongPSR.h:145
virtual void putSelf(std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
Top level call to write itself to file. If write unspecified is true, will write entries that are uns...
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
class DtHumanMoveAlongPSR:
Definition: humanMoveAlongPSR.h:27
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
virtual DtString type() const =0
Returns the string type of the repository, as defined in psrTypes.h.
class DtLocalVertexList:
Definition: localVertexList.h:20
DtRwSimObjectReference myRoute
If tasked() is true, this is the name of the route object we&#39;re moving to.
Definition: humanMoveAlongPSR.h:139
File: rwVector.h.
static const DtFilename & appPath()
Gets the current working directory. The first time this accessor is called, it determines the current...
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)