Barotrauma Client Doc
Barotrauma.AIObjectiveFixLeaks Class Reference
Inheritance diagram for Barotrauma.AIObjectiveFixLeaks:
Barotrauma.AIObjectiveLoop< Gap >

Public Member Functions

 AIObjectiveFixLeaks (Character character, AIObjectiveManager objectiveManager, float priorityModifier=1, Hull prioritizedHull=null)
 
- Public Member Functions inherited from Barotrauma.AIObjectiveLoop< Gap >
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 GetLeakSeverity (Gap leak)
 
static bool IsValidTarget (Gap gap, Character character)
 

Protected Member Functions

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

Detailed Description

Definition at line 7 of file AIObjectiveFixLeaks.cs.

Constructor & Destructor Documentation

◆ AIObjectiveFixLeaks()

Barotrauma.AIObjectiveFixLeaks.AIObjectiveFixLeaks ( Character  character,
AIObjectiveManager  objectiveManager,
float  priorityModifier = 1,
Hull  prioritizedHull = null 
)

Definition at line 16 of file AIObjectiveFixLeaks.cs.

Member Function Documentation

◆ Filter()

override bool Barotrauma.AIObjectiveFixLeaks.Filter ( Gap  gap)
protected

◆ GetLeakSeverity()

static float Barotrauma.AIObjectiveFixLeaks.GetLeakSeverity ( Gap  leak)
static

Definition at line 23 of file AIObjectiveFixLeaks.cs.

◆ GetList()

override IEnumerable<Gap> Barotrauma.AIObjectiveFixLeaks.GetList ( )
protectedvirtual

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

Implements Barotrauma.AIObjectiveLoop< Gap >.

◆ IsValidTarget()

static bool Barotrauma.AIObjectiveFixLeaks.IsValidTarget ( Gap  gap,
Character  character 
)
static

Definition at line 72 of file AIObjectiveFixLeaks.cs.

◆ ObjectiveConstructor()

override AIObjective Barotrauma.AIObjectiveFixLeaks.ObjectiveConstructor ( Gap  gap)
protected

◆ OnObjectiveCompleted()

override void Barotrauma.AIObjectiveFixLeaks.OnObjectiveCompleted ( AIObjective  objective,
Gap  target 
)
protected

◆ TargetEvaluation()

override float Barotrauma.AIObjectiveFixLeaks.TargetEvaluation ( )
protectedvirtual

Implements Barotrauma.AIObjectiveLoop< Gap >.

Definition at line 40 of file AIObjectiveFixLeaks.cs.

Property Documentation

◆ AllowInFriendlySubs

override bool Barotrauma.AIObjectiveFixLeaks.AllowInFriendlySubs
get

Definition at line 12 of file AIObjectiveFixLeaks.cs.

◆ ForceRun

override bool Barotrauma.AIObjectiveFixLeaks.ForceRun
get

Definition at line 10 of file AIObjectiveFixLeaks.cs.

◆ Identifier

override Identifier Barotrauma.AIObjectiveFixLeaks.Identifier = "fix leaks".ToIdentifier()
getset

Definition at line 9 of file AIObjectiveFixLeaks.cs.

◆ KeepDivingGearOn

override bool Barotrauma.AIObjectiveFixLeaks.KeepDivingGearOn
get

Definition at line 11 of file AIObjectiveFixLeaks.cs.