Barotrauma Client Doc
Barotrauma.AIObjectiveRescueAll Class Reference
Inheritance diagram for Barotrauma.AIObjectiveRescueAll:
Barotrauma.AIObjectiveLoop< Character >

Public Member Functions

 AIObjectiveRescueAll (Character character, AIObjectiveManager objectiveManager, float priorityModifier=1)
 
- Public Member Functions inherited from Barotrauma.AIObjectiveLoop< Character >
bool AddTarget (T target)
 
 AIObjectiveLoop (Character character, AIObjectiveManager objectiveManager, float priorityModifier, Identifier option=default)
 
override void Update (float deltaTime)
 
override void Reset ()
 

Static Public Member Functions

static float GetVitalityThreshold (AIObjectiveManager manager, Character character, Character target)
 
static float GetVitalityFactor (Character character)
 
static IEnumerable< AfflictionGetTreatableAfflictions (Character character, bool ignoreTreatmentThreshold)
 
static bool IsValidTarget (Character target, Character character, out bool ignoredAsMinorWounds)
 

Protected Member Functions

override bool Filter (Character target)
 
override IEnumerable< CharacterGetList ()
 List of all possible items of the specified type. Used for filtering the removed objectives. More...
 
override float TargetEvaluation ()
 
override AIObjective ObjectiveConstructor (Character target)
 
override void OnObjectiveCompleted (AIObjective objective, Character target)
 
- Protected Member Functions inherited from Barotrauma.AIObjectiveLoop< Character >
override void Act (float deltaTime)
 
override bool CheckObjectiveSpecific ()
 
override float GetPriority ()
 
void UpdateTargets ()
 
virtual void FindTargets ()
 
virtual void CreateObjectives ()
 
abstract void OnObjectiveCompleted (AIObjective objective, T target)
 
abstract AIObjective ObjectiveConstructor (T target)
 
abstract bool Filter (T target)
 

Properties

override Identifier Identifier = "rescue all".ToIdentifier() [get, set]
 
override bool ForceRun [get]
 
override bool InverseTargetEvaluation [get]
 
override bool AllowOutsideSubmarine [get]
 
override bool AllowInAnySub [get]
 
- Properties inherited from Barotrauma.AIObjectiveLoop< Character >
HashSet< T > Targets [get]
 
Dictionary< T, AIObjectiveObjectives [get]
 
virtual float TargetUpdateTimeMultiplier [get]
 
virtual float IgnoreListClearInterval [get]
 
HashSet< T > ReportedTargets [get]
 
override bool CanBeCompleted [get]
 
override bool AbandonWhenCannotCompleteSubjectives [get]
 
override bool AllowSubObjectiveSorting [get]
 
override bool AllowWhileHandcuffed [get]
 
virtual bool InverseTargetEvaluation [get]
 
virtual bool ResetWhenClearingIgnoreList [get]
 
virtual bool ForceOrderPriority [get]
 
virtual int MaxTargets [get]
 
override bool IsLoop [get, set]
 

Additional Inherited Members

- Protected Attributes inherited from Barotrauma.AIObjectiveLoop< Character >
HashSet< T > ignoreList
 
float targetUpdateTimer
 

Detailed Description

Definition at line 8 of file AIObjectiveRescueAll.cs.

Constructor & Destructor Documentation

◆ AIObjectiveRescueAll()

Barotrauma.AIObjectiveRescueAll.AIObjectiveRescueAll ( Character  character,
AIObjectiveManager  objectiveManager,
float  priorityModifier = 1 
)

Definition at line 32 of file AIObjectiveRescueAll.cs.

Member Function Documentation

◆ Filter()

override bool Barotrauma.AIObjectiveRescueAll.Filter ( Character  target)
protected

Definition at line 35 of file AIObjectiveRescueAll.cs.

◆ GetList()

override IEnumerable<Character> Barotrauma.AIObjectiveRescueAll.GetList ( )
protectedvirtual

List of all possible items of the specified type. Used for filtering the removed objectives.

Implements Barotrauma.AIObjectiveLoop< Character >.

◆ GetTreatableAfflictions()

static IEnumerable<Affliction> Barotrauma.AIObjectiveRescueAll.GetTreatableAfflictions ( Character  character,
bool  ignoreTreatmentThreshold 
)
static

Definition at line 111 of file AIObjectiveRescueAll.cs.

◆ GetVitalityFactor()

static float Barotrauma.AIObjectiveRescueAll.GetVitalityFactor ( Character  character)
static

Definition at line 90 of file AIObjectiveRescueAll.cs.

◆ GetVitalityThreshold()

static float Barotrauma.AIObjectiveRescueAll.GetVitalityThreshold ( AIObjectiveManager  manager,
Character  character,
Character  target 
)
static

Definition at line 20 of file AIObjectiveRescueAll.cs.

◆ IsValidTarget()

static bool Barotrauma.AIObjectiveRescueAll.IsValidTarget ( Character  target,
Character  character,
out bool  ignoredAsMinorWounds 
)
static

Definition at line 136 of file AIObjectiveRescueAll.cs.

◆ ObjectiveConstructor()

override AIObjective Barotrauma.AIObjectiveRescueAll.ObjectiveConstructor ( Character  target)
protected

◆ OnObjectiveCompleted()

override void Barotrauma.AIObjectiveRescueAll.OnObjectiveCompleted ( AIObjective  objective,
Character  target 
)
protected

◆ TargetEvaluation()

override float Barotrauma.AIObjectiveRescueAll.TargetEvaluation ( )
protectedvirtual

Implements Barotrauma.AIObjectiveLoop< Character >.

Definition at line 64 of file AIObjectiveRescueAll.cs.

Property Documentation

◆ AllowInAnySub

override bool Barotrauma.AIObjectiveRescueAll.AllowInAnySub
get

Definition at line 14 of file AIObjectiveRescueAll.cs.

◆ AllowOutsideSubmarine

override bool Barotrauma.AIObjectiveRescueAll.AllowOutsideSubmarine
get

Definition at line 13 of file AIObjectiveRescueAll.cs.

◆ ForceRun

override bool Barotrauma.AIObjectiveRescueAll.ForceRun
get

Definition at line 11 of file AIObjectiveRescueAll.cs.

◆ Identifier

override Identifier Barotrauma.AIObjectiveRescueAll.Identifier = "rescue all".ToIdentifier()
getset

Definition at line 10 of file AIObjectiveRescueAll.cs.

◆ InverseTargetEvaluation

override bool Barotrauma.AIObjectiveRescueAll.InverseTargetEvaluation
get

Definition at line 12 of file AIObjectiveRescueAll.cs.