8 #include "boost/smart_ptr.hpp"
27 typedef std::function<DtSimTask*(const DtRwLocationReference&, const DtU8 hitZoneFunction, const DtEntityType& munitionType)>
FireTaskFcn;
42 virtual void setDisplayName(
const DtString& name);
44 virtual DtU32
status()
const override;
46 virtual void setStatus(DtU32 s);
52 virtual std::list<DtSimTaskMessageType>
fireTaskTypes()
const override;
59 const DtU8 hitZoneFunction)
const override;
64 const DtU8 hitZoneFunction,
const DtEntityType& munitionType)
const override;
68 [[deprecated(
"Use bestMunitionForTarget()/canEngageTarget() -- see TODO(DEPRECATED-TargetRegionFcn)")]]
74 [[deprecated(
"Use setCanEngageTargetFcn() on the PSR -- see TODO(DEPRECATED-TargetRegionFcn)")]]
78 virtual void setMaximumRangeFcn(
RangeFcn fcn);
81 virtual void setMinimumRangeFcn(
RangeFcn fcn);
89 virtual bool bestMunitionForTarget(
91 DtEntityType& chosenMunitionOut,
99 virtual void setDesiredAmmunition(
const std::list<DtEntityType>& list);
105 virtual const std::list<DtArtPartType>&
mountPartList()
const override;
106 void setMountPartList(
const std::list<DtArtPartType>& parts);
111 virtual void setSystemTurretNumber(
const DtArtPartType num);
118 virtual void setControlExternalTurret(
bool c);
125 virtual const std::set<DtString>&
requiredTokens()
const override;
126 virtual void setRequiredTokens(
const std::set<DtString>& tokens);
129 virtual void setAutonomousFire(
bool v);
131 virtual void setAutonomousTargetTypes(
const std::list<DtEntityType>&
targetTypes);
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtTargetApplicability
Applicability tier of a weapon against a given target type.
Definition: targetApplicability.h:19
std::function< bool(const DtVector &)> TargetRegionFcn
TODO(DEPRECATED-TargetRegionFcn): retained only for indirect-fire / cruise-missile controllers until ...
Definition: genericWeaponInfo.h:30
A reader-writer type which contains a single dynamically typed subclass of DtRwSpatialFilter. The container itself is also a subclass of DtRwSpatialFilter, so it can hold instances of itself.
Definition: rwSpatialFilterContainer.h:22
DtString myWeaponName
Definition: genericWeaponInfo.h:139
DtRwNLengthStringVector is a named, readable/writable vector of strings of arbitrary length...
Definition: rwNLengthStringVector.h:28
virtual DtString displayName() const =0
const std::map< int, QString > targetTypes
Definition: targetConfigurationDialog.h:40
virtual const std::list< DtEntityType > & desiredAmmunition() const =0
List of the ammunition that is desired to be used by this weapon.
virtual bool autonomousFire() const =0
Indicates whether on not this weapon should be used by VR-Forces autonomous fire controllers.
std::function< DtWeaponInfoInterface::TargetApplicability(const DtEntityType &)> TargetApplicabilityFcn
Definition: genericWeaponInfo.h:21
DtU32 myStatus
Definition: genericWeaponInfo.h:140
Holds a position of some form. May be an absolute position, or a reference to another object...
Definition: rwLocationReference.h:25
virtual bool withinTargetRegion(const DtVector &localPosition) const =0
BestMunitionForTargetFcn myBestMunitionForTargetFcn
Definition: genericWeaponInfo.h:156
std::list< DtEntityType > myAutonomousTargetTypes
Definition: genericWeaponInfo.h:148
RangeFcn myMinimumRangeFcn
Definition: genericWeaponInfo.h:154
bool myAutonomousFire
Definition: genericWeaponInfo.h:147
virtual TargetApplicability targetApplicability(const DtEntityType &type) const =0
virtual const std::list< DtArtPartType > & mountPartList() const =0
A list of articulated parts to which this weapon is attached. That is, its parent part...
WeaponStatus
Definition: weaponInfoInterface.h:32
TargetApplicabilityFcn myTargetApplicabilityFcn
Definition: genericWeaponInfo.h:151
Definition: coordSystem.h:54
FireTaskFcn myFireTaskFcn
Definition: genericWeaponInfo.h:152
virtual DtArtPartType systemTurretNumber() const =0
The articulated part corresponding to the turret in this gun system (as opposed to an ancestor part)...
An implementation of DtWeaponInforInterface that allows for flexible registering of functions from ot...
Definition: genericWeaponInfo.h:18
std::list< DtArtPartType > myMountPartList
Definition: genericWeaponInfo.h:143
An abstract base class for all evaluators of spatial filters. The evaluation of spatial filters is sp...
Definition: spatialFilterEvaluator.h:31
std::map< DtEntityType, DtString > MunitionEvaluationReasons
Maps each evaluated munition type to a human-readable reason string. Selected munition maps to "selec...
Definition: genericWeaponInfo.h:35
DtArtPartType myTurretNumber
Definition: genericWeaponInfo.h:144
virtual DtSimTask * createFireTask(const DtRwLocationReference &location, const DtU8 hitZoneFunction) const =0
virtual const std::list< DtEntityType > & autonomousTargetTypes() const =0
Returns the entity types which this weapon would be used against for autonomous fire.
std::list< DtEntityType > myDesiredAmmunition
Definition: genericWeaponInfo.h:142
std::set< DtString > myRequiredTokens
Definition: genericWeaponInfo.h:146
virtual const std::set< DtString > & requiredTokens() const =0
List of resources required to operate the weapon; these are tokens that are reserved when the weapon ...
virtual std::list< DtSimTaskMessageType > fireTaskTypes() const
Task types that can be used to fire this weapon.
std::list< DtSimTaskMessageType > myFireTaskTypes
Definition: genericWeaponInfo.h:141
virtual const DtRwProperties * weaponProperties() const =0
DtSimTask is an abstract base class from which real tasks can derive. It manages the read/write capab...
Definition: simTask.h:30
virtual bool controlExternalTurret() const =0
Indicates that this weapon is controlling parent parts outside of the system to turn the gun...
virtual double maximumRange() const =0
RangeFcn myMaximumRangeFcn
Definition: genericWeaponInfo.h:155
bool myControlExternalTurret
Definition: genericWeaponInfo.h:145
std::function< bool(const DtRwLocationReference &, DtEntityType &, MunitionEvaluationReasons &)> BestMunitionForTargetFcn
Definition: genericWeaponInfo.h:36
const DtRwProperties * myProperties
Definition: genericWeaponInfo.h:149
A list of properties. A DtPropertyInterface object that is a specialized version of DtRwVariableBindi...
Definition: rwProperties.h:122
std::function< double()> RangeFcn
Definition: genericWeaponInfo.h:31
Abstract interface class for Weapon Information. This is used by DtWeaponInterfaceList. All code that is accessing information about weapons will have access to this base class only, and only be able to read the data. Weapon controllers will have derived versions that implement key functions for their specific weapon.
Definition: weaponInfoInterface.h:19
virtual double minimumRange() const =0
TargetRegionFcn myTargetRegionFcn
Definition: genericWeaponInfo.h:153
std::function< DtSimTask *(const DtRwLocationReference &, const DtU8 hitZoneFunction, const DtEntityType &munitionType)> FireTaskFcn
Builds a fire task for the given target. munitionType is the caller's preferred munition (typically t...
Definition: genericWeaponInfo.h:27
virtual DtU32 status() const =0
Weapon status bitfield. 0 indicates the weapon is in the "ready" state. For any non-0 value...
A locally simulated VRF object.
Definition: localObject.h:98