VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
scriptDetonation.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 #pragma once
6 
8 
10 #include <vrfutil/objectCounter.h>
11 #include <vrfutil/scriptGeometry.h>
13 
14 
19  : public DtAsciiSerializable
20 #ifdef DtObjectDebugger_Enable
21  , public DtObjectDebugger<DtScriptDetonation>
22 #endif
23 {
24 
25 public:
26  DtScriptDetonation(const DtVector & geoc);
28 
30 
31  DtScriptDetonation& operator=(const DtScriptDetonation &orig);
32 
34 
35  bool operator==(const DtScriptDetonation& orig);
36 
40  virtual bool isValid() const;
41 
43  virtual DtLocation3D getDetonationLocation() const;
44 
46  virtual std::string getMunitionType() const;
47 
49  virtual int getDetonationResult() const;
50 
52  virtual int getWarheadType() const;
53 
55  virtual int getFuse() const;
56 
58  virtual int getQuantity() const;
59 
61  virtual int getRate() const;
62 
64 
66  virtual void setFromDetonationContext(const DtDetonationContext& det);
67 
69  virtual DtString serialize();
70 
73  bool deserialize(const DtString& data);
74 
75  virtual DtString objectType() const;
76 
78  //default values
79  static DtAsciiSerializable* creator();
80 
81 protected:
83  DtEntityType myMunitionType;
88  int myRate;
89 };
90 
92 
93 DT_DLL_vrfobjcore std::ostream& operator<<(std::ostream&, const DtScriptDetonation&);
DtVector myDetonationLocation
The geocentric location.
Definition: scriptDetonation.h:82
Definition: asciiSerializable.h:38
virtual bool deserialize(const DtString &)=0
This function should take the string that was serialized via serialize() and fill this object with th...
DT_DLL_terrainCS bool operator==(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
int myDetonationResult
The geocentric location.
Definition: scriptDetonation.h:84
#define DT_DEFINE_OBJECT_DEBUGGER_NAME(type)
Definition: objectCounter.h:31
Default on in debug, off in release.
Definition: objectCounter.h:27
DT_DLL_features std::ostream & operator<<(std::ostream &, const DtFeatureTransform &)
std::ostream output.
virtual DtString serialize()=0
The following characters are reserved and cannot be used in serialization: &#39;|&#39;, &#39;:&#39;.
int myFuseType
The geocentric location.
Definition: scriptDetonation.h:86
This class is a wrapper for a DtScriptDetonation for use by scripts. It derives from DtAsciiSerializa...
Definition: scriptDetonation.h:18
int myRate
The geocentric location.
Definition: scriptDetonation.h:88
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
int myQuantity
The geocentric location.
Definition: scriptDetonation.h:87
The DtDetonationContext contains all the information necessary for processing a Detonation Interactio...
Definition: detonationContext.h:23
virtual DtString objectType() const =0
Should return the string name of this object. The object name should not be part of the serialization...
int myWarheadType
The geocentric location.
Definition: scriptDetonation.h:85
DtEntityType myMunitionType
The geocentric location.
Definition: scriptDetonation.h:83
A location3D is a point in space, i.e. a geocentric coordinate.
Definition: scriptGeometry.h:22

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)