VR-Forces 4.1 Class Documentation
dmgCompDesc.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: dmgCompDesc.h,v $ $Revision: 1.17 $ $State: Exp $
7 *******************************************************************************/
8 
11 
14 
15 #ifndef DtDamageComponentDescriptor_H_
16 #define DtDamageComponentDescriptor_H_
17 
20 #include "vrfutil/rwReal.h"
21 #include "vrfutil/vlClock.h"
22 #include "vrfutil/rwBoolean.h"
23 
24 class DtSimMunition;
26 
31 {
32 public:
35  DtReaderWriterRegistry* parentRegistry = NULL);
37  DtReaderWriterRegistry* parentRegistry = NULL);
38 
43  DtReaderWriterRegistry* parentRegistry = NULL);
44 
47  const DtDamageComponentDescriptor& orig);
48 
50  virtual ~DtDamageComponentDescriptor();
51 
54  virtual DtString type() const;
55 
57  DtReaderWriterRegistry* parentRegistry = NULL) const;
58 
60  virtual bool init();
61 
68  virtual void setDamageModel(const DtDmgMunitionTable* model);
69 
71  virtual const DtDmgMunitionTable* damageModel() const;
72 
75  virtual DtReal smokeTime() const;
76  virtual void setSmokeTime(DtReal smokeTime);
78 
81  virtual DtTime flameTime() const;
82  virtual void setFlameTime(DtTime flameTime);
84 
87  virtual bool terminateOnDestroy() const;
88  virtual void setTerminateOnDestroy(bool yesNo);
90 
94  virtual bool getKillProbabilities(const DtSimMunition& munition, const
95  DtString& surface, DtReal angleOfIncidence, DtReal range,
96  DtPrbRangeTableEntry * rangeEntry) const;
97 
98 
101  virtual void setUnderFireTime(DtTime underFireTime);
102  virtual DtTime underFireTime() const;
104 
107  virtual DtReal underFireDistance() const;
108  virtual void setUnderFireDistance(DtReal underFireDistance);
110 
113  virtual bool underFireFromFriendly() const;
114  virtual void setUnderFireFromFriendly(bool b);
116 
119  virtual void putSelf(FILE* fp, int indentLevel = 0, bool writeUnspecified = false,
120  const DtFilename& path = DtReaderWriter::appPath());
121 
123  static DtComponentDescriptor* creator();
124 
125 protected:
128 
129 protected:
133 
140 
147 
153 
160 
167 
173 
178 
180 
182 };
183 
184 #endif
185 
186 
187 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)