VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
damageAdjudicationPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include <readerWriter/rwReal.h>
14 #include <readerWriter/rwInt.h>
15 #include <readerWriter/rwBoolean.h>
16 
19 {
20 public:
21 
24  DtLocalObject* vrfObject, const DtString& rwName = DtString::nullString(),
25  DtReaderWriterRegistry* parentRegistry = 0);
26 
29  const DtDamageAdjudicationPSR& orig, const DtString& rwName = DtString::nullString(),
30  DtReaderWriterRegistry* parentRegistry = 0);
31 
33  virtual ~DtDamageAdjudicationPSR() override;
34 
37  const DtDamageAdjudicationPSR& orig);
38 
41  const DtString& rwName = DtString::nullString(), DtReaderWriterRegistry* parentRegistry = 0) const override;
42 
44  virtual DtString type() const override;
45 
47  virtual void incrementTimeSinceDestroyed(const double& timeIncrement);
48  virtual void setTimeSinceDestroyed(const double& time);
49  virtual double timeSinceDestroyed() const;
50 
51  virtual void setNumExplosionsCreated(int i);
52  virtual int numExplosionsCreated() const;
53 
55  virtual void setIsInvulnerable(bool i);
56  virtual bool isInvulnerable() const;
57 
58 public:
59 
61  static DtVrfProcessStateRepository* creator (const DtString& rwName,
62  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
63 
65  virtual void postGetSelf() override;
66 
67 protected:
68 
74 
76 };
Holds data and provides accessors pertinent to damage adjudication. E.g. time destroyed.
Definition: damageAdjudicationPSR.h:18
virtual void postGetSelf()
Called after either version of getSelf (mtl or environment). Default is no-op.
Definition: readerWriterRegistry.h:39
#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
DtRwBoolean myIsInvulnerable
Definition: damageAdjudicationPSR.h:75
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
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtRwInt myNumExplosionsCreated
Indicates the number of explosions caused by destruction that have been created since it was last des...
Definition: damageAdjudicationPSR.h:73
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
DtRwReal myTimeSinceDestroyed
Keeping track of how long we&#39;ve been destroyed.
Definition: damageAdjudicationPSR.h:70

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)