VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
detonationControllerDescriptor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
16 
17 #include <readerWriter/rwReal.h>
18 #include <readerWriter/rwBoolean.h>
21 
22 //Vrlink includes
23 #include <vlpi/disEnums.h>
24 
28 
30 {
31 public:
34  DtReaderWriterRegistry * parentRegistry = 0);
35 
38  orig, DtReaderWriterRegistry * parentRegistry = 0);
39 
43 
45  virtual ~DtDetonationControllerDescriptor() override;
46 
49  virtual DtString type() const override;
50 
51  virtual DtComponentDescriptor * clone(DtReaderWriterRegistry* parentRegistry = 0) const override;
52 
53 
55  virtual const DtString & detonatorFuse() const;
56  virtual void setDetonatorFuse(const DtString & fuse);
57 
60  virtual DtReal detonationProximity() const;
61  virtual void setDetonationProximity(DtReal proximity);
63 
66  virtual DtReal malfunctionPercentage() const;
67  virtual void setMalfunctionPercentage(DtReal percent);
69 
72  virtual bool amArmed() const;
73  virtual void setAmArmed(bool armed);
75 
78  virtual const DtRwEntityTypeList & objTypesToDetect() const;
79  virtual void setObjTypesToDetect(const DtRwEntityTypeList & list);
81 
84  virtual const DtTargetingControlTable& targetingControlTable() const;
85  virtual DtTargetingControlTable& targetingControlTable();
87 
90  virtual int munitionBin() const;
91  virtual void setMunitionBin(int minRange);
93 
95  static DtComponentDescriptor * creator();
96 
97 protected:
100 
101 protected:
102 
106 
111 
117 
122 
127 
132 
138 
144 };
DtRwReal myDetonationProximity
Parameter Name: detonation-proximity-distance Parameter Description: If using a proximity fuse...
Definition: detonationControllerDescriptor.h:116
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
class DtRwEntityTypeList:
Definition: rwEntityTypeList.h:23
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
DtRwEntityTypeList myObjTypesToDetect
Parameter Name: &quot;object-types-to-detect&quot; Parameter Description: List of object types this controller ...
Definition: detonationControllerDescriptor.h:131
DtComponentDescriptor & operator=(const DtComponentDescriptor &orig)
assignment
DtTargetingControlTable myTargetingControlTable
Parameter Name: targeting-control-table Parameter Description: The table that will specify ammunition...
Definition: detonationControllerDescriptor.h:137
DtRwBoolean myAmArmed
Parameter Name: armed Parameter Description: Defines whether this detonator is armed at creation of t...
Definition: detonationControllerDescriptor.h:126
DtRwReal myMalfunctionPercentage
Parameter Name: malfunction-percentage Parameter Description: This is the percent chance this detonat...
Definition: detonationControllerDescriptor.h:121
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=NULL) const
DtRwInt myMunitionBin
Parameter Name: munition-bin Parameter Description: The number of the resource bin to look for muniti...
Definition: detonationControllerDescriptor.h:142
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtDetonationControllerDescriptor; descriptor for the DtDetonationController component.
Definition: detonationControllerDescriptor.h:29
virtual DtString type() const
Returns the type of component this descriptor describes. Used to create the descriptor on read from a...
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
static DtComponentDescriptor * creator()
DtRwString myFuseTypeString
Parameter Name: fuse-type Parameter Description: Name of type of fuse to be used for detonation–proxi...
Definition: detonationControllerDescriptor.h:110
Definition: targetingControlTable.h:19

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)