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 
89  static DtComponentDescriptor * creator();
90 
91 protected:
94 
95 protected:
96 
100 
105 
111 
116 
121 
126 
132 
134 };
DtRwReal myDetonationProximity
Parameter Name: detonation-proximity-distance Parameter Description: If using a proximity fuse...
Definition: detonationControllerDescriptor.h:110
#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:125
DtComponentDescriptor & operator=(const DtComponentDescriptor &orig)
assignment
DtTargetingControlTable myTargetingControlTable
Parameter Name: targeting-control-table Parameter Description: The table that will specify ammunition...
Definition: detonationControllerDescriptor.h:131
DtRwBoolean myAmArmed
Parameter Name: armed Parameter Description: Defines whether this detonator is armed at creation of t...
Definition: detonationControllerDescriptor.h:120
DtRwReal myMalfunctionPercentage
Parameter Name: malfunction-percentage Parameter Description: This is the percent chance this detonat...
Definition: detonationControllerDescriptor.h:115
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=NULL) const
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:104
Definition: targetingControlTable.h:19

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)