VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
resupplyReceiverControllerPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 
10 #pragma once
11 
15 
19 
21 
23 {
24 public:
27  const DtString& rwName = DtString::nullString(),
28  DtReaderWriterRegistry* parentRegistry = 0);
31  const DtString& rwName = DtString::nullString(),
32  DtReaderWriterRegistry* parentRegistry = 0);
37  virtual ~DtResupplyReceiverControllerPSR() override;
38 
41  const DtString& rwName = DtString::nullString(), DtReaderWriterRegistry* parentRegistry = 0) const override;
42 
44  virtual DtString type() const override;
45 
47  static DtVrfProcessStateRepository* creator(const DtString& rwName,
48  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry = 0);
49 
52  virtual std::map<DtEntityType, double> suppliesRemaining() const;
53  virtual void setSuppliesRemaining(std::map<DtEntityType, double> supplies);
55 
56  virtual void preGetSelf() override;
57  virtual void postGetSelf() override;
58 
59 protected:
62 };
63 
virtual void postGetSelf()
Called after either version of getSelf (mtl or environment). Default is no-op.
class DtSimResourceManager:
Definition: simResourceManager.h:19
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
DtSimResourceManager mySuppliesRemaining
the list of the supplies with their remaining amount to be transferred
Definition: resupplyReceiverControllerPSR.h:61
virtual void preGetSelf()
Called before either version of get self (file or environment). Default is no-op. ...
DtResupplyReceiverControllerPSR is a process state repository which holds state variables for the DtR...
Definition: resupplyReceiverControllerPSR.h:22
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)