Barotrauma Client Doc
Barotrauma.AIObjectiveChargeBatteries Class Reference
Inheritance diagram for Barotrauma.AIObjectiveChargeBatteries:
Barotrauma.AIObjectiveLoop< PowerContainer >

Public Member Functions

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

Protected Member Functions

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

Detailed Description

Definition at line 10 of file AIObjectiveChargeBatteries.cs.

Constructor & Destructor Documentation

◆ AIObjectiveChargeBatteries()

Barotrauma.AIObjectiveChargeBatteries.AIObjectiveChargeBatteries ( Character  character,
AIObjectiveManager  objectiveManager,
Identifier  option,
float  priorityModifier 
)

Definition at line 16 of file AIObjectiveChargeBatteries.cs.

Member Function Documentation

◆ Filter()

override bool Barotrauma.AIObjectiveChargeBatteries.Filter ( PowerContainer  battery)
protected

Definition at line 19 of file AIObjectiveChargeBatteries.cs.

◆ GetList()

override IEnumerable<PowerContainer> Barotrauma.AIObjectiveChargeBatteries.GetList ( )
protectedvirtual

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

Implements Barotrauma.AIObjectiveLoop< PowerContainer >.

Definition at line 54 of file AIObjectiveChargeBatteries.cs.

◆ ObjectiveConstructor()

override AIObjective Barotrauma.AIObjectiveChargeBatteries.ObjectiveConstructor ( PowerContainer  battery)
protected

◆ OnObjectiveCompleted()

override void Barotrauma.AIObjectiveChargeBatteries.OnObjectiveCompleted ( AIObjective  objective,
PowerContainer  target 
)
protected

◆ TargetEvaluation()

override float Barotrauma.AIObjectiveChargeBatteries.TargetEvaluation ( )
protectedvirtual

Property Documentation

◆ AllowAutomaticItemUnequipping

override bool Barotrauma.AIObjectiveChargeBatteries.AllowAutomaticItemUnequipping
get

Definition at line 13 of file AIObjectiveChargeBatteries.cs.

◆ Identifier

override Identifier Barotrauma.AIObjectiveChargeBatteries.Identifier = "charge batteries".ToIdentifier()
getset

Definition at line 12 of file AIObjectiveChargeBatteries.cs.