VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aggregateMoveToPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 #include "vrfobjcore/simObject.h"
17 
18 #include <set>
19 
23 {
24 public:
25 
28  const DtString& rwName = DtString::nullString(),
29  DtReaderWriterRegistry* parentRegistry = 0);
30 
33  const DtString& rwName = DtString::nullString(),
34  DtReaderWriterRegistry* parentRegistry = 0);
35 
37  virtual ~DtAggregateMoveToPSR();
38 
41 
44  const DtString& rwName = DtString::nullString(),
45  DtReaderWriterRegistry* parentRegistry = 0) const;
46 
49  virtual DtString type() const;
50 
51  virtual bool taskedSubordinateInList(const DtUUID& subordinate) const;
52 
53  virtual void addTaskedSubordinate(const DtUUID& subordinate);
54 
55  virtual void removeTaskedSubordinate(const DtUUID& subordinate);
56 
57  virtual void clearTaskedSubordinates();
58 
59  virtual bool taskedSubordinatesEmpty() const;
60 
61  virtual const DtRwSimObjectReferenceList& taskedSubordinates() const;
62 
64  static DtVrfProcessStateRepository* creator (const DtString& rwName,
65  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
66 
67 protected:
68 
70  void copyCurrentlyTaskedSubordinates(const DtRwSimObjectReferenceList& other);
71 
72 protected:
80 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
If you use a list of object names to archive which objects are part of a controller (or any object) u...
Definition: simObjectReferenceList.h:118
This is a process state repository for the DtAggregateMoveToController that stores the list of the uu...
Definition: aggregateMoveToPSR.h:22
DtRwSimObjectReferenceList myCurrentlyTaskedSubordinates
Readable writeable list of currently tasked subordinates. Valid only immediately after getSelf() has ...
Definition: aggregateMoveToPSR.h:79
Definition: readerWriterRegistry.h:39
#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
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.
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 Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)