VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
launchExpendableResourcePSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: launchExpendableResourcePSR.h,v $ $Revision: 1.1 $ $State: Exp $
7 ** Created: 4/28/11 MEM
8 *******************************************************************************/
9 
10 #pragma once
11 
13 #include <readerWriter/rwInt.h>
14 #include <readerWriter/rwReal.h>
15 #include <readerWriter/rwBoolean.h>
16 #include <readerWriter/rwString.h>
17 
18 #include <set>
19 
25 
28 {
29 public:
30 
33  const DtString& rwName = DtString::nullString(),
34  DtReaderWriterRegistry* parentRegistry = nullptr);
35 
38  const DtString& rwName = DtString::nullString(),
39  DtReaderWriterRegistry* parentRegistry = nullptr);
40 
42  virtual ~DtLaunchExpendableResourcePSR() override;
43 
46 
49  const DtString& rwName = DtString::nullString(),
50  DtReaderWriterRegistry* parentRegistry = nullptr) const override;
51 
53  virtual DtString type() const override;
54 
56  virtual void setNumberLeftToFire(const int number);
57  virtual const int numberLeftToFire() const;
58 
60  virtual void reduceNumberLeftToFire(const int reduce);
61 
63  virtual void setElapsedTimeBetweenInterval(const double time);
64  virtual const double elapsedTimeBetweenInterval() const;
65 
66 public:
67 
69  static DtVrfProcessStateRepository* creator (const DtString& rwName,
70  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
71 
72 protected:
73 
77 
82 };
Definition: readerWriterRegistry.h:39
DtRwReal myElapsedTimeBetweenInterval
This is the time elapsed since the last time we fired a resource. We keep track of this so we can det...
Definition: launchExpendableResourcePSR.h:81
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
Description: Readable, Writable int.
Definition: rwInt.h:25
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 psrTypes.h.
DtRwInt myNumberLeftToFire
This stores how much time has passed since the limit existence controller was created in the simulati...
Definition: launchExpendableResourcePSR.h:76
class DtLaunchExpendableResourcePSR:
Definition: launchExpendableResourcePSR.h:27
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)