VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
humanMoveToPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include "vrfobjcore/simObject.h"
13 #include <readerWriter/rwReal.h>
14 #include <readerWriter/rwInt.h>
15 #include <readerWriter/rwBoolean.h>
16 #include <readerWriter/rwString.h>
17 #include "readerWriter/rwVector.h"
21 #include <vrfutil/rwUUID.h>
22 #include <vrfutil/rwBinaryData.h>
23 
29 {
30 public:
31 
33  DtHumanMoveToPSR(DtLocalObject* vrfObject,
34  const DtString& rwName = DtString::nullString(),
35  DtReaderWriterRegistry* parentRegistry = 0);
36 
39  const DtString& rwName = DtString::nullString(),
40  DtReaderWriterRegistry* parentRegistry = 0);
41 
43  virtual ~DtHumanMoveToPSR();
44 
47 
50  const DtString& rwName = DtString::nullString(),
51  DtReaderWriterRegistry* parentRegistry = 0) const;
52 
55  virtual DtString type() const;
56 
60  virtual void setControlObject(const DtUUID&);
61 
63  virtual DtSimObjectReference controlObject() const;
65 
71  virtual void setWorldDestination(const DtVector& destination);
72  virtual const DtVector& worldDestination() const;
74 
77  virtual void setControlObjectRelativeLocation(const DtVector& loc);
78  virtual const DtVector& controlObjectRelativeLocation() const;
80 
86  virtual bool intermediateWorldDestinationValid() const;
87  virtual void invalidateIntermediateWorldDestination();
88  virtual void setIntermediateWorldDestination(const DtVector& destination);
89  virtual const DtVector& intermediateWorldDestination() const;
91 
94 
95  virtual double stuckStartTime() const;
96  virtual void setStuckStartTime(double t);
98 
99  virtual void setNavGenPath(DtRwBinaryData&);
100  virtual DtRwBinaryData navGenPath() const;
101 
102 public:
103 
105  static DtVrfProcessStateRepository* creator (const DtString& rwName,
106  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
107 
108 protected:
109 
113 
116 
119 
122 
125 
128 };
class DtHumanMoveToPSR:
Definition: humanMoveToPSR.h:28
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
DtRwBinaryData myNavGenPath
The path generated by gameware navigation that the entity is following.
Definition: humanMoveToPSR.h:127
DtRwVector myIntermediateWorldDestination
Intermediate world point for move to location tasks.
Definition: humanMoveToPSR.h:121
DtRwSimObjectReference myControlObject
If tasked() is true, this is the name of the control object we&#39;re moving to.
Definition: humanMoveToPSR.h:112
DtRwVector myWorldDestination
World point for move to location tasks.
Definition: humanMoveToPSR.h:115
DtRwReal myStuckStartTime
If the entity is currently stuck, this is the sim time when that state started.
Definition: humanMoveToPSR.h:124
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
This is a rw class to save out a block of generic binary data.
Definition: rwBinaryData.h:18
Definition: rwVector.h:23
Specialized reader/writer version of the shared object reference that will encapsulate the actual sha...
Definition: simObjectReference.h:74
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
Description: Readable, Writable DtReal (double)
Definition: rwReal.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
DtRwVector myControlObjectRelativeLocation
Last known location of the control object.
Definition: humanMoveToPSR.h:118
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
File: rwVector.h.
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)
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 Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)