Barotrauma Client Doc
Barotrauma.AIObjectiveRepairItems Class Reference
Inheritance diagram for Barotrauma.AIObjectiveRepairItems:
Barotrauma.AIObjectiveLoop< Item >

Public Member Functions

override bool IsDuplicate< T > (T otherObjective)
 
 AIObjectiveRepairItems (Character character, AIObjectiveManager objectiveManager, float priorityModifier=1, Item prioritizedItem=null)
 
- Public Member Functions inherited from Barotrauma.AIObjectiveLoop< Item >
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 bool ViableForRepair (Item item, Character character, HumanAIController humanAIController)
 
static bool NearlyFullCondition (Item item)
 
static float GetTargetPriority (Item item, Character character, float requiredSuccessFactor=0)
 
static bool IsValidTarget (Item item, Character character)
 

Public Attributes

Identifier RelevantSkill
 If set, only fix items where required skill matches this. More...
 

Static Public Attributes

static readonly float RequiredSuccessFactor = 0.4f
 

Protected Member Functions

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

Properties

override Identifier Identifier = "repair items".ToIdentifier() [get, set]
 
Item PrioritizedItem [get]
 
override bool AllowMultipleInstances [get]
 
override bool AllowInFriendlySubs [get]
 
- Properties inherited from Barotrauma.AIObjectiveLoop< Item >
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< Item >
HashSet< T > ignoreList
 
float targetUpdateTimer
 

Detailed Description

Definition at line 10 of file AIObjectiveRepairItems.cs.

Constructor & Destructor Documentation

◆ AIObjectiveRepairItems()

Barotrauma.AIObjectiveRepairItems.AIObjectiveRepairItems ( Character  character,
AIObjectiveManager  objectiveManager,
float  priorityModifier = 1,
Item  prioritizedItem = null 
)

Definition at line 28 of file AIObjectiveRepairItems.cs.

Member Function Documentation

◆ CreateObjectives()

override void Barotrauma.AIObjectiveRepairItems.CreateObjectives ( )
protectedvirtual

Reimplemented from Barotrauma.AIObjectiveLoop< Item >.

Definition at line 34 of file AIObjectiveRepairItems.cs.

◆ Filter()

override bool Barotrauma.AIObjectiveRepairItems.Filter ( Item  item)
protected

Definition at line 65 of file AIObjectiveRepairItems.cs.

◆ GetList()

override IEnumerable<Item> Barotrauma.AIObjectiveRepairItems.GetList ( )
protectedvirtual

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

Implements Barotrauma.AIObjectiveLoop< Item >.

◆ GetTargetPriority()

static float Barotrauma.AIObjectiveRepairItems.GetTargetPriority ( Item  item,
Character  character,
float  requiredSuccessFactor = 0 
)
static

Definition at line 128 of file AIObjectiveRepairItems.cs.

◆ IsDuplicate< T >()

override bool Barotrauma.AIObjectiveRepairItems.IsDuplicate< T > ( otherObjective)

◆ IsValidTarget()

static bool Barotrauma.AIObjectiveRepairItems.IsValidTarget ( Item  item,
Character  character 
)
static

Definition at line 147 of file AIObjectiveRepairItems.cs.

◆ NearlyFullCondition()

static bool Barotrauma.AIObjectiveRepairItems.NearlyFullCondition ( Item  item)
static

Definition at line 92 of file AIObjectiveRepairItems.cs.

◆ ObjectiveConstructor()

override AIObjective Barotrauma.AIObjectiveRepairItems.ObjectiveConstructor ( Item  item)
protected

◆ OnObjectiveCompleted()

override void Barotrauma.AIObjectiveRepairItems.OnObjectiveCompleted ( AIObjective  objective,
Item  target 
)
protected

◆ TargetEvaluation()

override float Barotrauma.AIObjectiveRepairItems.TargetEvaluation ( )
protectedvirtual

Implements Barotrauma.AIObjectiveLoop< Item >.

Definition at line 97 of file AIObjectiveRepairItems.cs.

◆ ViableForRepair()

static bool Barotrauma.AIObjectiveRepairItems.ViableForRepair ( Item  item,
Character  character,
HumanAIController  humanAIController 
)
static

Definition at line 82 of file AIObjectiveRepairItems.cs.

Member Data Documentation

◆ RelevantSkill

Identifier Barotrauma.AIObjectiveRepairItems.RelevantSkill

If set, only fix items where required skill matches this.

Definition at line 17 of file AIObjectiveRepairItems.cs.

◆ RequiredSuccessFactor

readonly float Barotrauma.AIObjectiveRepairItems.RequiredSuccessFactor = 0.4f
static

Definition at line 24 of file AIObjectiveRepairItems.cs.

Property Documentation

◆ AllowInFriendlySubs

override bool Barotrauma.AIObjectiveRepairItems.AllowInFriendlySubs
get

Definition at line 22 of file AIObjectiveRepairItems.cs.

◆ AllowMultipleInstances

override bool Barotrauma.AIObjectiveRepairItems.AllowMultipleInstances
get

Definition at line 21 of file AIObjectiveRepairItems.cs.

◆ Identifier

override Identifier Barotrauma.AIObjectiveRepairItems.Identifier = "repair items".ToIdentifier()
getset

Definition at line 12 of file AIObjectiveRepairItems.cs.

◆ PrioritizedItem

Item Barotrauma.AIObjectiveRepairItems.PrioritizedItem
get

Definition at line 19 of file AIObjectiveRepairItems.cs.