Barotrauma Client Doc
Barotrauma.AIObjectiveFightIntruders Class Reference
Inheritance diagram for Barotrauma.AIObjectiveFightIntruders:
Barotrauma.AIObjectiveLoop< Character >

Public Member Functions

 AIObjectiveFightIntruders (Character character, AIObjectiveManager objectiveManager, float priorityModifier=1)
 
- Public Member Functions inherited from Barotrauma.AIObjectiveLoop< Character >
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 IsValidTarget (Character target, Character character, bool targetCharactersInOtherSubs)
 
static bool ShouldArrest (Character target, Character character)
 

Protected Member Functions

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

Detailed Description

Definition at line 7 of file AIObjectiveFightIntruders.cs.

Constructor & Destructor Documentation

◆ AIObjectiveFightIntruders()

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

Definition at line 17 of file AIObjectiveFightIntruders.cs.

Member Function Documentation

◆ Filter()

override bool Barotrauma.AIObjectiveFightIntruders.Filter ( Character  target)
protected

◆ GetList()

override IEnumerable<Character> Barotrauma.AIObjectiveFightIntruders.GetList ( )
protectedvirtual

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

Implements Barotrauma.AIObjectiveLoop< Character >.

◆ IsValidTarget()

static bool Barotrauma.AIObjectiveFightIntruders.IsValidTarget ( Character  target,
Character  character,
bool  targetCharactersInOtherSubs 
)
static

Definition at line 57 of file AIObjectiveFightIntruders.cs.

◆ ObjectiveConstructor()

override AIObjective Barotrauma.AIObjectiveFightIntruders.ObjectiveConstructor ( Character  target)
protected

Definition at line 34 of file AIObjectiveFightIntruders.cs.

◆ OnObjectiveCompleted()

override void Barotrauma.AIObjectiveFightIntruders.OnObjectiveCompleted ( AIObjective  objective,
Character  target 
)
protected

◆ ShouldArrest()

static bool Barotrauma.AIObjectiveFightIntruders.ShouldArrest ( Character  target,
Character  character 
)
static

Definition at line 81 of file AIObjectiveFightIntruders.cs.

◆ TargetEvaluation()

override float Barotrauma.AIObjectiveFightIntruders.TargetEvaluation ( )
protectedvirtual

Property Documentation

◆ Identifier

override Identifier Barotrauma.AIObjectiveFightIntruders.Identifier = "fight intruders".ToIdentifier()
getset

Definition at line 9 of file AIObjectiveFightIntruders.cs.

◆ IgnoreListClearInterval

override float Barotrauma.AIObjectiveFightIntruders.IgnoreListClearInterval
getprotected

Definition at line 10 of file AIObjectiveFightIntruders.cs.

◆ IgnoreUnsafeHulls

override bool Barotrauma.AIObjectiveFightIntruders.IgnoreUnsafeHulls
get

Definition at line 11 of file AIObjectiveFightIntruders.cs.

◆ TargetCharactersInOtherSubs

bool Barotrauma.AIObjectiveFightIntruders.TargetCharactersInOtherSubs
getset

Definition at line 15 of file AIObjectiveFightIntruders.cs.

◆ TargetUpdateTimeMultiplier

override float Barotrauma.AIObjectiveFightIntruders.TargetUpdateTimeMultiplier
getprotected

Definition at line 13 of file AIObjectiveFightIntruders.cs.