Barotrauma Client Doc
Barotrauma.AIObjectiveExtinguishFires Class Reference
Inheritance diagram for Barotrauma.AIObjectiveExtinguishFires:
Barotrauma.AIObjectiveLoop< Hull >

Public Member Functions

 AIObjectiveExtinguishFires (Character character, AIObjectiveManager objectiveManager, float priorityModifier=1)
 
- Public Member Functions inherited from Barotrauma.AIObjectiveLoop< Hull >
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 GetFireSeverity (Hull hull)
 0-1 based on the horizontal size of all of the fires in the hull. More...
 
static bool IsValidTarget (Hull hull, Character character)
 

Protected Member Functions

override bool Filter (Hull hull)
 
override float TargetEvaluation ()
 
override IEnumerable< HullGetList ()
 List of all possible items of the specified type. Used for filtering the removed objectives. More...
 
override AIObjective ObjectiveConstructor (Hull target)
 
override void OnObjectiveCompleted (AIObjective objective, Hull target)
 
- Protected Member Functions inherited from Barotrauma.AIObjectiveLoop< Hull >
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 = "extinguish fires".ToIdentifier() [get, set]
 
override bool ForceRun [get]
 
override bool AllowInAnySub [get]
 
- Properties inherited from Barotrauma.AIObjectiveLoop< Hull >
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< Hull >
HashSet< T > ignoreList
 
float targetUpdateTimer
 

Detailed Description

Definition at line 9 of file AIObjectiveExtinguishFires.cs.

Constructor & Destructor Documentation

◆ AIObjectiveExtinguishFires()

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

Definition at line 15 of file AIObjectiveExtinguishFires.cs.

Member Function Documentation

◆ Filter()

override bool Barotrauma.AIObjectiveExtinguishFires.Filter ( Hull  hull)
protected

◆ GetFireSeverity()

static float Barotrauma.AIObjectiveExtinguishFires.GetFireSeverity ( Hull  hull)
static

0-1 based on the horizontal size of all of the fires in the hull.

◆ GetList()

override IEnumerable<Hull> Barotrauma.AIObjectiveExtinguishFires.GetList ( )
protectedvirtual

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

Implements Barotrauma.AIObjectiveLoop< Hull >.

◆ IsValidTarget()

static bool Barotrauma.AIObjectiveExtinguishFires.IsValidTarget ( Hull  hull,
Character  character 
)
static

Definition at line 38 of file AIObjectiveExtinguishFires.cs.

◆ ObjectiveConstructor()

override AIObjective Barotrauma.AIObjectiveExtinguishFires.ObjectiveConstructor ( Hull  target)
protected

◆ OnObjectiveCompleted()

override void Barotrauma.AIObjectiveExtinguishFires.OnObjectiveCompleted ( AIObjective  objective,
Hull  target 
)
protected

◆ TargetEvaluation()

override float Barotrauma.AIObjectiveExtinguishFires.TargetEvaluation ( )
protectedvirtual

Property Documentation

◆ AllowInAnySub

override bool Barotrauma.AIObjectiveExtinguishFires.AllowInAnySub
get

Definition at line 13 of file AIObjectiveExtinguishFires.cs.

◆ ForceRun

override bool Barotrauma.AIObjectiveExtinguishFires.ForceRun
get

Definition at line 12 of file AIObjectiveExtinguishFires.cs.

◆ Identifier

override Identifier Barotrauma.AIObjectiveExtinguishFires.Identifier = "extinguish fires".ToIdentifier()
getset

Definition at line 11 of file AIObjectiveExtinguishFires.cs.