VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwExplosionEntry.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrfutil/rwEntityType.h>
12 #include <readerWriter/rwReal.h>
14 #include "readerWriter/rwVector.h"
16 
18 {
19 public:
22 
25  parentRegistry = NULL);
26 
28  parentRegistry = NULL);
29 
31  DtRwExplosionEntry(const DtString& name, const DtRwExplosionEntry& orig,
32  DtReaderWriterRegistry* parentRegistry = NULL);
33 
34  DtRwExplosionEntry(const DtSymbolString& name, const DtRwExplosionEntry& orig,
35  DtReaderWriterRegistry* parentRegistry = NULL);
36 
38  const DtRwExplosionEntry& operator=(const DtRwExplosionEntry & orig);
39 
40  virtual ~DtRwExplosionEntry();
41 
42  virtual DtRwExplosionEntry* clone(const DtString& name,
43  DtReaderWriterRegistry* parentRegistry = NULL) const;
44 
45  virtual DtRwExplosionEntry* clone(const DtSymbolString& name,
46  DtReaderWriterRegistry* parentRegistry = NULL) const;
47 
50  virtual const DtRwEntityType& munition() const;
51  virtual void setMunition(const DtRwEntityType& m);
53 
56  virtual DtDetonationResult detonationResult() const;
57  virtual void setDetonationResult(DtDetonationResult i);
59 
62  virtual double delay() const;
63  virtual void setDelay(double s);
65 
68  virtual DtVector position() const;
69  virtual void setPosition(const DtVector& pos);
71 
73  bool operator==(const DtRwExplosionEntry& rhs) const;
74  bool operator!=(const DtRwExplosionEntry& rhs) const
75  {
76  return !(*this == rhs);
77  }
78 
82  virtual const char* readerWriterType() const;
83 
85  static const char* theXmlType();
86 
87  virtual const char* xmlType() const
88  {
89  return theXmlType();
90  }
91 
92 protected:
96 
101 
106 
112 
118 
119 
121 };
122 
124 
bool operator==(const DtReaderWriter &) const
Equivalence operator.
DtRwInt myDetonationResult
Parameter Name: detonation-result Parameter Description: The detonation result enumeration that will ...
Definition: rwExplosionEntry.h:105
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is.
Definition: symbolString.h:20
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
Definition: readerWriter.h:85
Definition: readerWriterRegistry.h:39
Definition: rwVector.h:23
virtual const char * xmlType() const
Definition: rwExplosionEntry.h:87
Description: Readable, Writable int.
Definition: rwInt.h:25
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
File: rwEntType.h.
Definition: rwEntityType.h:23
Definition: rwExplosionEntry.h:17
DtRwTemplatedListPtr< DtRwExplosionEntry, true > DtRwExplosionList
Definition: rwExplosionEntry.h:123
DtRwReal myDelay
Parameter Name: delay Parameter Description: The time from the destruction of the entity to the time ...
Definition: rwExplosionEntry.h:111
DtRwEntityType myMunition
Parameter Name: munition Parameter Description: The type of munition that impacted that detonated...
Definition: rwExplosionEntry.h:100
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
static const char * theXmlType()
The type that is used when archiving to an XML stream.
DtRwVector myPosition
Parameter Name: position Parameter Description: Position of the explosion, expressed in percent of th...
Definition: rwExplosionEntry.h:117
bool operator!=(const DtRwExplosionEntry &rhs) const
Definition: rwExplosionEntry.h:74
File: rwVector.h.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)