VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aggregatedMoveToPSR.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 
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 ~DtAggregatedMoveToPSR();
43 
46 
49  const DtString& rwName = DtString::nullString(),
50  DtReaderWriterRegistry* parentRegistry = 0) const;
51 
54  virtual DtString type() const;
55 
59  virtual void setControlObject(const DtUUID& controlObject);
60 
62  virtual DtSimObjectReference controlObject() const;
64 
70  virtual void setWorldDestination(const DtVector& destination);
71  virtual void setWorldDestination(const DtVector& destination, double heading);
72  virtual const DtVector& worldDestination() const;
74 
78  virtual bool headingIsSet() const;
79  virtual double heading() const;
80  virtual void setHeading(double heading);
82 
83 public:
84 
86  static DtVrfProcessStateRepository* creator (const DtString& rwName,
87  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
88 
89 protected:
90 
94 
97 
100 };
UUID is a unique ID wrapper class.
Definition: rwUUID.h:226
class DtAggregatedMoveToPSR:
Definition: aggregatedMoveToPSR.h:27
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
DtRwVector myWorldDestination
World point for move to location tasks.
Definition: aggregatedMoveToPSR.h:96
Contains the DtUUID class declaration.
DtRwReal myHeading
Heading in radians.
Definition: aggregatedMoveToPSR.h:99
DtRwSimObjectReference myControlObject
If tasked() is true, this is the name of the control object we&#39;re moving to.
Definition: aggregatedMoveToPSR.h:93
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
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 Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)