Barotrauma Client Doc
Barotrauma.LatchOntoAI Class Reference

Public Member Functions

 LatchOntoAI (XElement element, EnemyAIController enemyAI)
 
void SetAttachTarget (Structure wall, Vector2 attachPos, Vector2 attachSurfaceNormal)
 
void SetAttachTarget (Character target)
 
void Update (EnemyAIController enemyAI, float deltaTime)
 
void DeattachFromBody (bool reset, float cooldown=0)
 

Properties

bool AttachToSub [get]
 
bool AttachToWalls [get]
 
bool AttachToCharacters [get]
 
Submarine TargetSubmarine [get]
 
Structure TargetWall [get]
 
Character TargetCharacter [get]
 
List< Joint > AttachJoints = new List<Joint>() [get]
 
Vector2? AttachPos [get]
 
bool IsAttached [get]
 
bool IsAttachedToSub [get]
 

Detailed Description

Definition at line 12 of file LatchOntoAI.cs.

Constructor & Destructor Documentation

◆ LatchOntoAI()

Barotrauma.LatchOntoAI.LatchOntoAI ( XElement  element,
EnemyAIController  enemyAI 
)

Definition at line 55 of file LatchOntoAI.cs.

Member Function Documentation

◆ DeattachFromBody()

void Barotrauma.LatchOntoAI.DeattachFromBody ( bool  reset,
float  cooldown = 0 
)

Definition at line 397 of file LatchOntoAI.cs.

◆ SetAttachTarget() [1/2]

void Barotrauma.LatchOntoAI.SetAttachTarget ( Character  target)

Definition at line 102 of file LatchOntoAI.cs.

◆ SetAttachTarget() [2/2]

void Barotrauma.LatchOntoAI.SetAttachTarget ( Structure  wall,
Vector2  attachPos,
Vector2  attachSurfaceNormal 
)

Definition at line 88 of file LatchOntoAI.cs.

◆ Update()

void Barotrauma.LatchOntoAI.Update ( EnemyAIController  enemyAI,
float  deltaTime 
)

Definition at line 112 of file LatchOntoAI.cs.

Property Documentation

◆ AttachJoints

List<Joint> Barotrauma.LatchOntoAI.AttachJoints = new List<Joint>()
get

Definition at line 43 of file LatchOntoAI.cs.

◆ AttachPos

Vector2? Barotrauma.LatchOntoAI.AttachPos
get

Definition at line 45 of file LatchOntoAI.cs.

◆ AttachToCharacters

bool Barotrauma.LatchOntoAI.AttachToCharacters
get

Definition at line 22 of file LatchOntoAI.cs.

◆ AttachToSub

bool Barotrauma.LatchOntoAI.AttachToSub
get

Definition at line 20 of file LatchOntoAI.cs.

◆ AttachToWalls

bool Barotrauma.LatchOntoAI.AttachToWalls
get

Definition at line 21 of file LatchOntoAI.cs.

◆ IsAttached

bool Barotrauma.LatchOntoAI.IsAttached
get

Definition at line 51 of file LatchOntoAI.cs.

◆ IsAttachedToSub

bool Barotrauma.LatchOntoAI.IsAttachedToSub
get

Definition at line 53 of file LatchOntoAI.cs.

◆ TargetCharacter

Character Barotrauma.LatchOntoAI.TargetCharacter
get

Definition at line 26 of file LatchOntoAI.cs.

◆ TargetSubmarine

Submarine Barotrauma.LatchOntoAI.TargetSubmarine
get

Definition at line 24 of file LatchOntoAI.cs.

◆ TargetWall

Structure Barotrauma.LatchOntoAI.TargetWall
get

Definition at line 25 of file LatchOntoAI.cs.