![]() |
VR-Forces 4.6.1 Class Documentation
|
Instances of DtInfluenceInter are used to store state data for Influence interactions. More...

Public Member Functions | |
| DtInfluenceInteraction (const DtString &influenceName) | |
| Constructor. | |
| virtual | ~DtInfluenceInteraction () |
| Destructor. | |
| DtInfluenceInteraction (const DtInfluenceInteraction &orig) | |
| Copy constructor. | |
| DtInfluenceInteraction & | operator= (const DtInfluenceInteraction &orig) |
| Assignment operator. | |
| virtual void | printData () const |
| Print the interaction's data. | |
| virtual void | printDataToStream (std::ostream &stream) const |
| Print the interaction's data to the specified stream. | |
| virtual void | setInfluenceName (const DtString &val) |
| InfluenceName mutator. | |
| virtual const DtString & | influenceName () const |
| InfluenceName accessor. | |
| virtual void | setInfluenceType (const DtString &val) |
| InfluenceType mutator. | |
| virtual const DtString & | influenceType () const |
| InfluenceType accessor. | |
| virtual void | setInfluencer (const DtString &val) |
| Influencer mutator. | |
| virtual const DtString & | influencer () const |
| Influencer accessor. | |
| virtual void | setTarget (const DtString &val) |
| Target mutator. | |
| virtual const DtString & | target () const |
| Target accessor. | |
| virtual void | setStrength (DtInt32 val) |
| Strength mutator. | |
| virtual DtInt32 | strength () const |
| Strength accessor. | |
| virtual void | setDuration (DtTime val) |
| Duration mutator. | |
| virtual DtTime | duration () const |
| Duration accessor. | |
| virtual void | setLocation (DtVector val) |
| Location mutator. | |
| virtual DtVector | location () const |
| Location accessor. | |
| virtual void | setStopInfluence (bool val) |
| Stop mutator. | |
| virtual bool | stopInfluence () const |
| Stop accessor. | |
| virtual const char * | name () const |
| Name of the interaction. (Not necessarily the ClassName from the FOM.) | |
| virtual void | setHitFactor (int val) |
| Engagement specific methods. | |
| virtual int | hitFactor () const |
| Hit factor accessor. | |
| virtual void | setProbabilityKilled (double val) |
| Probability killed mutator. | |
| virtual double | probabilityKilled () const |
| Probability killed accessor. | |
| virtual void | setProbabilityCaptured (double val) |
| Probability captured mutator. | |
| virtual double | probabilityCaptured () const |
| Probability captured accessor. | |
| virtual void | setProbabilityWounded (double val) |
| Probability wounded mutator. | |
| virtual double | probabilityWounded () const |
| Probability wounded accessor. | |
Static Public Member Functions | |
| static DtInteraction * | create () |
| Create a DtInfluenceInter. | |
| static void | addCallback (DtExerciseConn *conn, DtInfluenceInterCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP()) |
| Add (register)/Remove (deregister) function to be called when interaction occurs. | |
| static void | removeCallback (DtExerciseConn *conn, DtInfluenceInterCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP()) |
Static Public Attributes | |
| static const DtString | theEngagementInfluenceName |
Protected Member Functions | |
| DtInfluenceInteraction () | |
| The general constructor is only accessible via the create() static function. | |
Protected Attributes | |
| DtString | myInfluenceName |
| DtString | myInfluenceType |
| DtString | myInfluencer |
| DtString | myTarget |
| DtInt32 | myStrength |
| DtTime | myDuration |
| DtVector | myLocation |
| bool | myStopInfluence |
| DtInt32 | myHitFactor |
| double | myProbabilityKilled |
| double | myProbabilityCaptured |
| double | myProbabilityWounded |
| DtString | myMutableInteractionClass |
| Not a parameter of the class. | |
Instances of DtInfluenceInter are used to store state data for Influence interactions.
|
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".
|
virtual |
Destructor.
| DtInfluenceInteraction::DtInfluenceInteraction | ( | const DtInfluenceInteraction & | orig | ) |
Copy constructor.
| DtInfluenceInteraction& DtInfluenceInteraction::operator= | ( | const DtInfluenceInteraction & | orig | ) |
Assignment operator.
|
virtual |
Print the interaction's data.
|
virtual |
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.
|
inlinevirtual |
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 |
|
mutableprotected |
Not a parameter of the class.
This is simply the interaction class to be used when sending this interaction.