VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
fireForEffectTask.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 #pragma once
15 
16 #include <vlutil/vlMachineTypes.h>
17 
18 #include "vrftasks/simTask.h"
19 #include <readerWriter/rwString.h>
20 #include "vrfutil/rwEntityType.h"
21 #include <readerWriter/rwInt.h>
22 #include <readerWriter/rwReal.h>
23 #include <readerWriter/rwBoolean.h>
24 #include "vrfutil/rwTaitBryan.h"
25 
33 {
34 
35 protected:
38 
42  parentRegistry = 0);
43 
45  DtFireForEffectTask(const DtString & writeName, const DtFireForEffectTask &
46  orig, DtReaderWriterRegistry * parentRegistry = 0);
47 
50 
51 public:
52  virtual ~DtFireForEffectTask();
53 
55  virtual void addWeapon(const DtString& weap);
56 
57  virtual const DtRwStringList& weaponNames() const;
58  virtual DtRwStringList& weaponNames();
59  virtual void setWeaponNames(const DtRwStringList& weapons);
60 
69  virtual bool getWeaponOnList(const DtString& weaponName, DtString& weapon);
70 
72  //virtual void setAmmoTypeSpecified(bool specified);
73  //virtual bool ammoTypeSpecified() const;
74 
75  virtual void setNumberOfRounds(int rounds);
76  virtual int numberOfRounds() const;
77  virtual bool numberOfRoundsSpecified() const;
78 
79  virtual void setDispersionRadius(DtReal radius);
80  virtual DtReal dispersionRadius() const;
81  virtual bool dispersionRadiusSpecified() const;
82 
83  virtual void setHeightAboveTerrain(DtReal height);
84  virtual DtReal heightAboveTerrain() const;
85  virtual bool heightAboveTerrainSpecified() const;
86 
87  virtual void setMuzzleSpeed(DtReal v);
88  virtual DtReal muzzleSpeed() const;
89  virtual bool muzzleSpeedSpecified() const;
90 
91  virtual void setMuzzleOrientation(DtTaitBryan & orient);
92  virtual const DtRwTaitBryan & muzzleOrientation() const;
93  virtual bool muzzleOrientationSpecified() const;
94 
96  virtual void setFuseType(int i);
97  virtual bool fuseTypeSpecified() const;
98  virtual DtDetonatorFuze fuseType() const;
99 
100  virtual void setGenerateKnownTargetPoint(bool);
101  virtual bool generateKnownTargetPoint() const;
102 
106  virtual void setKnownTargetPointName(const DtString&);
107  virtual const DtString& knownTargetPointName() const;
108 
109  virtual void setContinuousFire(bool);
110  virtual bool continuousFire() const;
111 
112  virtual void setFireMissionIndex(unsigned int);
113  virtual unsigned int fireMissionIndex() const;
114 
115 
118  virtual int netRepSize() const;
119 
121  virtual bool setFromNet(const char* contentBuffer,
122  unsigned contentSize);
123 
126  virtual bool setToNet();
127 
132  virtual DtString parameterStringRep() const;
133 
134 protected:
141 
146 
149 
153 
156 };
157 
DtRwBoolean myContinuousFire
Whether or not the firing will be continuous until a cease fire task is received. ...
Definition: fireForEffectTask.h:155
DtRwReal myMuzzleSpeed
In some circumstances like a hand tossed grenade the user may want to temper the force with which the...
Definition: fireForEffectTask.h:144
DtRwInt myFuseType
Definition: fireForEffectTask.h:139
DtRwTaitBryan myMuzzleOrientation
Definition: fireForEffectTask.h:145
DtRwReal myHeightAboveTerrain
Definition: fireForEffectTask.h:138
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Description: Readable, Writable DtTaitBryan.
Definition: rwTaitBryan.h:20
Definition: readerWriterRegistry.h:39
DtRwBoolean myGenerateKnownTargetPoint
On detonation create a known target point of first two letters of shooters name plus 4 random numbers...
Definition: fireForEffectTask.h:148
Contains the DtRwTaitBryan class declaration.
DtRwString myKnownTargetPointName
If generating a known point, set this text to be the name of the known point rather than having the s...
Definition: fireForEffectTask.h:152
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets mySubtask member from the incoming contentBuffer (cast to type DtNetSimTask). Derived classes should call down to this function first, and then extract their own data starting at the location contentBuffer + DtSimTask::netRepSize().
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual bool setToNet()
Calls netRep() to create the network buffer. Casts the resulting myNetRep to type DtNetSimTask*...
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwReal myDispersionRadius
Definition: fireForEffectTask.h:137
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtRwStringList myWeaponNames
Definition: fireForEffectTask.h:135
DtSimTask is an abstract base class from which real tasks can derive. It manages the read/write capab...
Definition: simTask.h:30
const DtSimTask & operator=(const DtSimTask &orig)
assignment operator; same as copy constructor
DtRwInt myNumberOfRounds
Definition: fireForEffectTask.h:136
Definition: rwStringList.h:20
DtRwInt myFireMissionIndex
Definition: fireForEffectTask.h:140
File: fireForEff.h.
Definition: fireForEffectTask.h:32
virtual int netRepSize() const
Returns the size in bytes of the network representation of the class. This is the size in bytes of th...

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)