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 setHeightAboveTerrain(DtReal height);
106 virtual DtReal heightAboveTerrain()
const;
107 virtual bool heightAboveTerrainSpecified()
const;
109 virtual void setMuzzleSpeed(DtReal v);
110 virtual DtReal muzzleSpeed()
const;
111 virtual bool muzzleSpeedSpecified()
const;
113 virtual void setMuzzleOrientation(DtTaitBryan & orient);
115 virtual bool muzzleOrientationSpecified()
const;
118 virtual void setFuseType(
int i);
119 virtual bool fuseTypeSpecified()
const;
120 virtual DtDetonatorFuze fuseType()
const;
122 virtual void setGenerateKnownTargetPoint(
bool);
123 virtual bool generateKnownTargetPoint()
const;
128 virtual void setKnownTargetPointName(
const DtString&);
129 virtual const DtString& knownTargetPointName()
const;
131 virtual void setContinuousFire(
bool);
132 virtual bool continuousFire()
const;
134 virtual void setFireMissionIndex(
unsigned int);
135 virtual unsigned int fireMissionIndex()
const;
143 virtual bool setFromNet(
const char* contentBuffer,
144 unsigned contentSize)
override;
156 virtual DtString parameterStringRep()
const;
DtRwBoolean myContinuousFire
Whether or not the firing will be continuous until a cease fire task is received. ...
Definition: fireForEffectTask.h:183
DtRwReal myMuzzleSpeed
In some circumstances like a hand tossed grenade the user may want to temper the force with which the...
Definition: fireForEffectTask.h:172
DtRwInt myFuseType
Definition: fireForEffectTask.h:167
DtRwResource myAmmoType
Indicates the ammo type to be fired.
Definition: fireForEffectTask.h:190
DtRwTaitBryan myMuzzleOrientation
Definition: fireForEffectTask.h:173
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:187
DtRwReal myHeightAboveTerrain
Definition: fireForEffectTask.h:166
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:176
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:180
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:165
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtRwStringList myWeaponNames
Definition: fireForEffectTask.h:162
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:164
Definition: rwStringList.h:20
DtRwInt myFireMissionIndex
Definition: fireForEffectTask.h:168
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...