Barotrauma Client
Loading...
Searching...
No Matches
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 SetAttachTarget (VoronoiCell levelWall)
 
void Update (EnemyAIController enemyAI, float deltaTime)
 
void AttachToBody (Vector2 attachPos, Vector2? forceAttachSurfaceNormal=null, Vector2? forceColliderSimPosition=null)
 
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]
 
Vector2AttachPos [get]
 
bool IsAttached [get]
 
bool IsAttachedToSub [get]
 

Constructor & Destructor Documentation

◆ LatchOntoAI()

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

Member Function Documentation

◆ AttachToBody()

void Barotrauma.LatchOntoAI.AttachToBody ( Vector2 attachPos,
Vector2? forceAttachSurfaceNormal = null,
Vector2? forceColliderSimPosition = null )

◆ DeattachFromBody()

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

◆ SetAttachTarget() [1/3]

void Barotrauma.LatchOntoAI.SetAttachTarget ( Character target)

◆ SetAttachTarget() [2/3]

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

◆ SetAttachTarget() [3/3]

void Barotrauma.LatchOntoAI.SetAttachTarget ( VoronoiCell levelWall)

◆ Update()

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

Property Documentation

◆ AttachJoints

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

◆ AttachPos

Vector2? Barotrauma.LatchOntoAI.AttachPos
get

◆ AttachToCharacters

bool Barotrauma.LatchOntoAI.AttachToCharacters
get

◆ AttachToSub

bool Barotrauma.LatchOntoAI.AttachToSub
get

◆ AttachToWalls

bool Barotrauma.LatchOntoAI.AttachToWalls
get

◆ IsAttached

bool Barotrauma.LatchOntoAI.IsAttached
get

◆ IsAttachedToSub

bool Barotrauma.LatchOntoAI.IsAttachedToSub
get

◆ TargetCharacter

Character Barotrauma.LatchOntoAI.TargetCharacter
get

◆ TargetSubmarine

Submarine Barotrauma.LatchOntoAI.TargetSubmarine
get

◆ TargetWall

Structure Barotrauma.LatchOntoAI.TargetWall
get

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