16 #include <vlutil/vlMachineTypes.h>
42 parentRegistry =
nullptr);
56 virtual void addWeapon(
const DtString& weap);
73 virtual bool getWeaponOnList(
const DtString& weaponName,
DtString& weapon)
const;
78 virtual void setWeaponId(
const DtString& weaponId);
81 virtual bool weaponIdSpecified()
const;
87 virtual void setAmmoType(
const DtEntityType& ammoType);
88 virtual const DtEntityType& ammoType()
const;
90 virtual bool ammoTypeSpecified()
const;
97 virtual void setNumberOfRounds(
int rounds);
98 virtual int numberOfRounds()
const;
99 virtual bool numberOfRoundsSpecified()
const;
101 virtual void setDispersionRadius(DtReal radius);
102 virtual DtReal dispersionRadius()
const;
103 virtual bool dispersionRadiusSpecified()
const;
105 virtual void setApplyHeightAboveTerrain(
bool);
106 virtual bool applyHeightAboveTerrain()
const;
108 virtual void setHeightAboveTerrain(DtReal height);
109 virtual DtReal heightAboveTerrain()
const;
110 virtual bool heightAboveTerrainSpecified()
const;
114 virtual void setAllowTargetInsideStructure(
bool);
117 virtual bool allowTargetInsideStructure()
const;
119 virtual void setMuzzleSpeed(DtReal v);
120 virtual DtReal muzzleSpeed()
const;
121 virtual bool muzzleSpeedSpecified()
const;
123 virtual void setMuzzleOrientation(DtTaitBryan & orient);
125 virtual bool muzzleOrientationSpecified()
const;
128 virtual void setFuseType(
int i);
129 virtual bool fuseTypeSpecified()
const;
130 virtual DtDetonatorFuze fuseType()
const;
132 virtual void setGenerateKnownTargetPoint(
bool);
133 virtual bool generateKnownTargetPoint()
const;
138 virtual void setKnownTargetPointName(
const DtString&);
139 virtual const DtString& knownTargetPointName()
const;
141 virtual void setContinuousFire(
bool);
142 virtual bool continuousFire()
const;
144 virtual void setFireMissionIndex(
unsigned int);
145 virtual unsigned int fireMissionIndex()
const;
153 virtual bool setFromNet(
const char* contentBuffer,
154 unsigned contentSize)
override;
166 virtual DtString parameterStringRep()
const;
DtRwBoolean myContinuousFire
Whether or not the firing will be continuous until a cease fire task is received. ...
Definition: fireForEffectTask.h:195
DtRwBoolean myAllowTargetInsideStructure
Definition: fireForEffectTask.h:178
DtRwReal myMuzzleSpeed
In some circumstances like a hand tossed grenade the user may want to temper the force with which the...
Definition: fireForEffectTask.h:184
DtRwInt myFuseType
Definition: fireForEffectTask.h:179
DtRwResource myAmmoType
Indicates the ammo type to be fired.
Definition: fireForEffectTask.h:202
DtRwTaitBryan myMuzzleOrientation
Definition: fireForEffectTask.h:185
virtual void postGetSelf()
Called after either version of getSelf (mtl or environment). Default is no-op.
DtRwString myWeaponId
Weapon ID string for the weapon that should be used. Replaces myWeaponNames in VRF 5...
Definition: fireForEffectTask.h:199
DtRwReal myHeightAboveTerrain
Definition: fireForEffectTask.h:177
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 myApplyHeightAboveTerrain
Definition: fireForEffectTask.h:176
DtRwBoolean myGenerateKnownTargetPoint
On detonation create a known target point of first two letters of shooters name plus 4 random numbers...
Definition: fireForEffectTask.h:188
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:192
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:175
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtRwStringList myWeaponNames
Definition: fireForEffectTask.h:172
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:174
Definition: rwStringList.h:20
DtRwInt myFireMissionIndex
Definition: fireForEffectTask.h:180
This class will read in an old resource by name and convert it to the type, or, just read it as type...
Definition: rwResource.h:12
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...