VR-Forces 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>
24 
30 {
31 public:
32 
34  DtHumanMoveToPSR(DtLocalObject* vrfObject,
35  const DtString& rwName = DtString::nullString(),
36  DtReaderWriterRegistry* parentRegistry = 0);
37 
40  const DtString& rwName = DtString::nullString(),
41  DtReaderWriterRegistry* parentRegistry = 0);
42 
44  virtual ~DtHumanMoveToPSR();
45 
48 
51  const DtString& rwName = DtString::nullString(),
52  DtReaderWriterRegistry* parentRegistry = 0) const;
53 
56  virtual DtString type() const;
57 
61  virtual void setControlObject(const DtUUID&);
62 
64  virtual DtSimObjectReference controlObject() const;
66 
72  virtual void setWorldDestination(const DtVector& destination);
73  virtual const DtVector& worldDestination() const;
75 
78  virtual void setControlObjectRelativeLocation(const DtVector& loc);
79  virtual const DtVector& controlObjectRelativeLocation() const;
81 
87  virtual bool intermediateWorldDestinationValid() const;
88  virtual void invalidateIntermediateWorldDestination();
89  virtual void setIntermediateWorldDestination(const DtVector& destination);
90  virtual const DtVector& intermediateWorldDestination() const;
92 
95 
96  virtual double stuckStartTime() const;
97  virtual void setStuckStartTime(double t);
99 
100  virtual void setNavGenPath(DtRwBinaryData&);
101  virtual DtRwBinaryData navGenPath() const;
102 
103 public:
104 
106  static DtVrfProcessStateRepository* creator (const DtString& rwName,
107  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
108 
109 protected:
110 
114 
117 
120 
123 
126 
129 };
class DtHumanMoveToPSR:
Definition: humanMoveToPSR.h:29
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtRwBinaryData myNavGenPath
The path generated by gameware navigation that the entity is following.
Definition: humanMoveToPSR.h:128
DtRwVector myIntermediateWorldDestination
Intermediate world point for move to location tasks.
Definition: humanMoveToPSR.h:122
DtRwSimObjectReference myControlObject
If tasked() is true, this is the name of the control object we&#39;re moving to.
Definition: humanMoveToPSR.h:113
DtRwVector myWorldDestination
World point for move to location tasks.
Definition: humanMoveToPSR.h:116
DtRwReal myStuckStartTime
If the entity is currently stuck, this is the sim time when that state started.
Definition: humanMoveToPSR.h:125
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: rwSimObjectReference.h:21
#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:119
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 Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)