![]() |
VR-Forces Developer's Guide
|
Instances of DtInfluenceInter are used to store state data for Influence interactions.

Public Member Functions | |
| DtInfluenceInteraction (const DtString &influenceName) | |
| virtual | ~DtInfluenceInteraction () override |
| DtInfluenceInteraction (const DtInfluenceInteraction &orig) | |
| DtInfluenceInteraction & | operator= (const DtInfluenceInteraction &orig) |
| virtual void | printData () const override |
| virtual void | printDataToString (DtString &buff) const override |
| virtual void | printDataToStream (std::ostream &stream) const override |
| virtual void | setInfluenceName (const DtString &val) |
| virtual const DtString & | influenceName () const |
| virtual void | setInfluenceType (const DtString &val) |
| virtual const DtString & | influenceType () const |
| virtual void | setInfluencer (const DtString &val) |
| virtual const DtString & | influencer () const |
| virtual void | setTarget (const DtString &val) |
| virtual const DtString & | target () const |
| virtual void | setStrength (DtInt32 val) |
| virtual DtInt32 | strength () const |
| virtual void | setDuration (DtTime val) |
| virtual DtTime | duration () const |
| virtual void | setLocation (DtVector val) |
| virtual DtVector | location () const |
| virtual void | setStopInfluence (bool val) |
| virtual bool | stopInfluence () const |
| virtual const char * | name () const override |
| virtual void | setHitFactor (int val) |
| virtual int | hitFactor () const |
| virtual void | setProbabilityKilled (double val) |
| virtual double | probabilityKilled () const |
| virtual void | setProbabilityCaptured (double val) |
| virtual double | probabilityCaptured () const |
| virtual void | setProbabilityWounded (double val) |
| virtual double | probabilityWounded () const |
| virtual void | setWeaponType (const DtString &val) |
| virtual const DtString & | weaponType () const |
| virtual void | setGuidanceSystem (const DtString &val) |
| virtual const DtString & | guidanceSystem () const |
| virtual void | setTargetPart (const DtString &val) |
| virtual const DtString & | targetPart () const |
| virtual void | setIsPointAttack (bool val) |
| virtual bool | isPointAttack () const |
| virtual void | setAttackId (unsigned val) |
| virtual unsigned | attackId () const |
Static Public Member Functions | |
| static DtInteraction * | create () |
| static void | addCallback (DtExerciseConn *conn, DtInfluenceInterCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP()) |
| static void | removeCallback (DtExerciseConn *conn, DtInfluenceInterCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP()) |
Static Public Attributes | |
| static const DtString | theEngagementInfluenceName |
Protected Member Functions | |
| DtInfluenceInteraction () | |
|
protected |
The general constructor is only accessible via the create() static function. It is intended only for use when receiving an interaction.
| DtInfluenceInteraction::DtInfluenceInteraction | ( | const DtString & | influenceName | ) |
Constructor. Requires the influence name, which is equivalent to the subclass of the Influence FOM class. For instance, if you wanted to send an Influence.Engagement interaction, you would pass the string "Engagement". If you wanted to send an Influence.Engagement.AntiAir interaction, you would pass the string "Engagement.AntiAir".
|
overridevirtual |
Destructor.
| DtInfluenceInteraction::DtInfluenceInteraction | ( | const DtInfluenceInteraction & | orig | ) |
Copy constructor.
| DtInfluenceInteraction& DtInfluenceInteraction::operator= | ( | const DtInfluenceInteraction & | orig | ) |
Assignment operator.
|
overridevirtual |
Print the interaction's data.
|
overridevirtual |
Print the interaction's data to the string provided.
|
overridevirtual |
Print the interaction's data to the specified stream.
|
virtual |
InfluenceName mutator.
|
virtual |
InfluenceName accessor.
|
virtual |
InfluenceType mutator.
|
virtual |
InfluenceType accessor.
|
virtual |
Influencer mutator.
|
virtual |
Influencer accessor.
|
virtual |
Target mutator.
|
virtual |
Target accessor.
|
virtual |
Strength mutator.
|
virtual |
Strength accessor.
|
virtual |
Duration mutator.
|
virtual |
Duration accessor.
|
virtual |
Location mutator.
|
virtual |
Location accessor.
|
virtual |
Stop mutator.
|
virtual |
Stop accessor.
|
virtual |
Engagement specific methods.
Hit factor mutator.
|
virtual |
Hit factor accessor.
|
virtual |
Probability killed mutator.
|
virtual |
Probability killed accessor.
|
virtual |
Probability captured mutator.
|
virtual |
Probability captured accessor.
|
virtual |
Probability wounded mutator.
|
virtual |
Probability wounded accessor.
|
virtual |
WeaponType mutator.
|
virtual |
WeaponType accessor.
|
virtual |
GuidanceSystem mutator.
|
virtual |
GuidanceSystem accessor.
|
virtual |
TargetPart mutator.
|
virtual |
TargetPart accessor.
|
virtual |
IsPointAttack mutator.
|
virtual |
IsPointAttack accessor.
|
virtual |
AttackId mutator.
|
virtual |
AttackId accessor.
|
inlineoverridevirtual |
Name of the interaction. (Not necessarily the ClassName from the FOM.)
|
static |
Create a DtInfluenceInter. Caller is responsible for deletion.
|
static |
Add (register)/Remove (deregister) function to be called when interaction occurs.
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
Not a parameter of the class. This is simply the interaction class to be used when sending this interaction.