Barotrauma Client
Loading...
Searching...
No Matches
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 IsValidTarget (Gap gap)
 
override float GetTargetPriority ()
 
override IEnumerable< GapGetList ()
 
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 ()
 
void OnObjectiveCompleted (AIObjective objective, T target)
 
IEnumerable< T > GetList ()
 List of all possible items of the specified type. Used for filtering the removed objectives.
 
float GetTargetPriority ()
 Returns a priority value based on the current targets (e.g. high prio when there's lots of severe fires or leaks). The priority of this objective is based on the target priority.
 
AIObjective ObjectiveConstructor (T target)
 
bool IsValidTarget (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]
 By default, doesn't clear the list automatically.
 
HashSet< T > ReportedTargets [get]
 Contains targets that anyone in the same crew has reported about. Used for automatic the target has to be reported before it can be can be targeted, so characters don't magically know where e.g. enemies are. Ignored on orders: a bot explicitly ordered to repair leaks or fight intruders can find targets that haven't been reported.
 
override bool CanBeCompleted [get]
 
override bool AbandonWhenCannotCompleteSubObjectives [get]
 
override bool AllowSubObjectiveSorting [get]
 
override bool AllowWhileHandcuffed [get]
 
override bool AbandonIfDisallowed [get]
 
virtual bool InverseTargetPriority [get]
 Makes the priority inversely proportional to the value returned by GetTargetPriority. In other words, gives this objective a high priority when priority of the targets is low.
 
virtual bool ResetWhenClearingIgnoreList [get]
 
virtual bool ForceOrderPriority [get]
 
virtual int MaxTargets [get]
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ AIObjectiveFixLeaks()

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

Member Function Documentation

◆ GetLeakSeverity()

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

◆ GetList()

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

◆ GetTargetPriority()

override float Barotrauma.AIObjectiveFixLeaks.GetTargetPriority ( )
protected

◆ IsValidTarget() [1/2]

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

◆ IsValidTarget() [2/2]

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

◆ ObjectiveConstructor()

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

◆ OnObjectiveCompleted()

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

Property Documentation

◆ AllowInFriendlySubs

override bool Barotrauma.AIObjectiveFixLeaks.AllowInFriendlySubs
getprotected

◆ ForceRun

override bool Barotrauma.AIObjectiveFixLeaks.ForceRun
get

◆ Identifier

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

◆ KeepDivingGearOn

override bool Barotrauma.AIObjectiveFixLeaks.KeepDivingGearOn
get

The documentation for this class was generated from the following file: