VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
multipleHitDamagePSR.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/rwInt.h>
14 
20 {
21 public:
22 
25  const DtString& rwName = DtString::nullString(),
26  DtReaderWriterRegistry* parentRegistry = 0);
27 
30  const DtString& rwName = DtString::nullString(),
31  DtReaderWriterRegistry* parentRegistry = 0);
32 
34  virtual ~DtMultipleHitDamagePSR();
35 
38 
41  const DtString& rwName = DtString::nullString(),
42  DtReaderWriterRegistry* parentRegistry = 0) const;
43 
45  virtual DtString type() const;
46 
48  virtual void setCurrentHitPoints(int points);
49  virtual int currentHitPoints() const;
50 
52  virtual void setTotalDetonations(int dets);
53  virtual int totalDetonations() const;
54 
56  virtual void setNumberOfHits(int hits);
57  virtual int numberOfHits() const;
58 
59 public:
60 
62  static DtVrfProcessStateRepository* creator (const DtString& rwName,
63  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
64 
65 protected:
66 
69 
72 };
Holds data and provides accessors pertinent to damage adjudication. E.g. time destroyed.
Definition: damageAdjudicationPSR.h:18
DtRwInt myCurrentHitPoints
Keep track when we save out scenario on current level of health of the entity.
Definition: multipleHitDamagePSR.h:68
Definition: readerWriterRegistry.h:39
virtual DtString type() const
Returns the string type of this process state repository.
DtRwInt myTotalDetonations
Definition: multipleHitDamagePSR.h:70
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const
Returns a newly created copy of this object.
DtRwInt myNumberOfHits
Definition: multipleHitDamagePSR.h:71
#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
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
DtDamageAdjudicationPSR & operator=(const DtDamageAdjudicationPSR &orig)
Assignment operator.
class DtMultipleHitDamagePSR:
Definition: multipleHitDamagePSR.h:19
static DtVrfProcessStateRepository * creator(const DtString &rwName, DtLocalObject *vrfObject, DtReaderWriterRegistry *parentRegistry)
Returns a newly created instance of this class.
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)