VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
minefieldControllerPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
15 #include <readerWriter/rwReal.h>
16 #include <vrfutil/rwEntityType.h>
17 #include <vrfutil/rwTemplatedMap.h>
18 
20 
25 {
26 public:
27 
30  const DtString& rwName = DtString::nullString(),
31  DtReaderWriterRegistry* parentRegistry = 0);
32 
35  const DtString& rwName = DtString::nullString(),
36  DtReaderWriterRegistry* parentRegistry = 0);
37 
39  virtual ~DtMinefieldControllerPSR() override;
40 
43 
46  const DtString& rwName = DtString::nullString(), DtReaderWriterRegistry* parentRegistry = 0) const override;
47 
48  virtual bool init() override;
49 
51  virtual DtString type() const override;
52 
54  static DtVrfProcessStateRepository* creator(const DtString& rwName,
55  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
56 
59  virtual void addSelfDestructTime(const DtEntityType& mineType, double time);
60  virtual const DtSelfDestructTimesMap& getSelfDestructTimes() const;
62 
63 protected:
66 };
67 #pragma once
DtSelfDestructTimesMap mySelfDestructTimes
If the minefield has any self destructing mines keep track of when each type will blow...
Definition: minefieldControllerPSR.h:65
DtRwTemplatedMapPtr< DtRwEntityType, DtRwReal > DtSelfDestructTimesMap
DtMinefieldControllerPSR; Process state repository for DtMinefieldController.
Definition: minefieldControllerPSR.h:19
Definition: readerWriterRegistry.h:39
Process state repository for DtMinefieldController component. Hold state data associated with the sen...
Definition: minefieldControllerPSR.h:24
#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
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.
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)