VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
minefieldControllerDescriptor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
12 
14 #include <readerWriter/rwReal.h>
15 #include <readerWriter/rwBoolean.h>
16 
18 
25 {
26 public:
29  DtReaderWriterRegistry* parentRegistry = 0);
30 
33  DtReaderWriterRegistry* parentRegistry = 0);
34 
37  const DtMinefieldControllerDescriptor & orig);
38 
40  virtual ~DtMinefieldControllerDescriptor() override;
41 
44  virtual DtString type() const override;
45 
48  virtual bool detonateOnCommand() const;
49  virtual void setDetonateOnCommand(bool det);
51 
54  virtual double malfunctionPercentage() const;
55  virtual void setMalfunctionPercentage(double percent);
57 
59  virtual DtComponentDescriptor* clone(DtReaderWriterRegistry* parentRegistry = 0) const override;
60 
63 
64 protected:
67 
68 protected:
70 
74 
79 
85 
87 };
88 
89 
90 
91 
92 
DtMinefieldControllerDescriptor is a DtComponentDescriptor that has the name of the DtMinefieldContro...
Definition: minefieldControllerDescriptor.h:24
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
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
DtComponentDescriptor & operator=(const DtComponentDescriptor &orig)
assignment
DtRwBoolean myDetonateOnCommand
Parameter Name: detonate-on-command Parameter Description: If true, can recieve a remote detonate com...
Definition: minefieldControllerDescriptor.h:84
DtRwReal myMalfunctionPercentage
Parameter Name: malfunction-percentage Parameter Description: This is the percent chance this detonat...
Definition: minefieldControllerDescriptor.h:78
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=NULL) const
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
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()

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)