![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2009 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: multipleHitDamagePSR.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00012 #pragma once 00013 00014 #include "vrfobjcore/processSR.h" 00015 #include "vrfutil/rwInt.h" 00016 #include "vrfobjcore/vrfobjcoreDefines.h" 00017 00022 00023 class DT_DLL_vrfobjcore DtMultipleHitDamagePSR : public DtVrfProcessStateRepository 00024 { 00025 public: 00026 00028 DtMultipleHitDamagePSR(DtVrfObject* vrfObject, 00029 const DtString& rwName = DtString::nullString(), 00030 DtReaderWriterRegistry* parentRegistry = 0); 00031 00033 DtMultipleHitDamagePSR(const DtMultipleHitDamagePSR& orig, 00034 const DtString& rwName = DtString::nullString(), 00035 DtReaderWriterRegistry* parentRegistry = 0); 00036 00038 virtual ~DtMultipleHitDamagePSR(); 00039 00041 DtMultipleHitDamagePSR& operator=(const DtMultipleHitDamagePSR& orig); 00042 00044 virtual DtVrfProcessStateRepository* clone( 00045 const DtString& rwName = DtString::nullString(), 00046 DtReaderWriterRegistry* parentRegistry = 0) const; 00047 00049 virtual DtString type() const; 00050 00052 virtual void setCurrentHitPoints(int points); 00053 virtual int currentHitPoints() const; 00054 00056 virtual void setTotalDetonations(int dets); 00057 virtual int totalDetonations() const; 00058 00060 virtual void setNumberOfHits(int hits); 00061 virtual int numberOfHits() const; 00062 00063 public: 00064 00066 static DtVrfProcessStateRepository* creator (const DtString& rwName, 00067 DtVrfObject* vrfObject, DtReaderWriterRegistry* parentRegistry); 00068 00069 protected: 00070 00072 DtRwInt myCurrentHitPoints; 00073 00074 DtRwInt myTotalDetonations; 00075 DtRwInt myNumberOfHits; 00076 };