VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfOccupancyDirectorPSR.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"
13 #include <readerWriter/rwInt.h>
14 #include <readerWriter/rwString.h>
15 #include "vrfutil/rwStringList.h"
16 #include <vrfutil/rwUUID.h>
18 #include <set>
19 
21 
26 
29 {
30 public:
31 
34  const DtString& rwName = DtString::nullString(),
35  DtReaderWriterRegistry* parentRegistry = 0);
36 
39  const DtString& rwName = DtString::nullString(),
40  DtReaderWriterRegistry* parentRegistry = 0);
41 
43  virtual ~DtVrfOccupancyDirectorPSR() override;
44 
47 
50  const DtString& rwName = DtString::nullString(), DtReaderWriterRegistry* parentRegistry = 0) const override;
51 
54  virtual DtString type() const override;
55 
56  DtEmbarkationSlotManager* embarkationSlotManager();
57 
62  virtual DtSimObjectReference disembarkingObject() const;
63 
65  virtual void setDisembarkingObject(const DtUUID&);
67 
72  virtual void addDisembarkingObject(const DtUUID&);
73 
75  virtual void removeDisembarkingObject(const DtUUID&);
76 
78  virtual void clearDisembarkingObjects();
79 
81  virtual bool disembarkingObjectsEmpty() const;
82 
84  virtual const DtRwSimObjectReferenceList& disembarkingObjects() const;
85 
87  virtual bool disembarkedObjectInList(const DtUUID&) const;
89 
90 public:
91 
93  static DtVrfProcessStateRepository* creator (const DtString& rwName,
94  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
95 
96 protected:
97  virtual bool init() override;
98 
105  virtual void createEmbarkationSlotManager();
106 
108  virtual void copyCurrentlyDisembarkingObjects(const DtRwSimObjectReferenceList& other);
109 
110 protected:
112 
116 
120 
121 };
122 
124 {
125  if (!mySlotManager)
126  {
128  }
129 
130  return mySlotManager;
131 }
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtEmbarkationSlotManager * embarkationSlotManager()
Definition: vrfOccupancyDirectorPSR.h:123
If you use a list of object names to archive which objects are part of a controller (or any object) u...
Definition: simObjectReferenceList.h:120
Definition: embarkationSlotManager.h:92
DtRwSimObjectReference myDisembarkingObject
The name of the object currently disembarking, when a disembark-all task is being performed...
Definition: vrfOccupancyDirectorPSR.h:115
DtRwSimObjectReferenceList mySerializableCurrentlyDisembarkingObjects
Readable writeable list of currently objects to be disembarked. Valid only immediately after getSelf(...
Definition: vrfOccupancyDirectorPSR.h:119
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
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
class DtVrfOccupancyDirectorPSR:
Definition: vrfOccupancyDirectorPSR.h:28
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
virtual void createEmbarkationSlotManager()
Override to create your own type of slot manager and set it to mySlotManager variable. Called from init() method. Since this is a reader/writer object, make sure to call it with the name &quot;embarkation-slot-manager&quot; and &amp;myRegsitry to have it read correctly from the order of battle file:
virtual bool init()
Used for virtual construction. This base method simply returns true.
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 psrTypes.h.
DtEmbarkationSlotManager * mySlotManager
Definition: vrfOccupancyDirectorPSR.h:111
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)