Barotrauma Client Doc
Barotrauma.SwarmBehavior Class Reference

Public Member Functions

 SwarmBehavior (XElement element, EnemyAIController ai)
 
void Refresh ()
 
void UpdateSteering (float deltaTime)
 

Static Public Member Functions

static void CreateSwarm (IEnumerable< AICharacter > swarm)
 

Properties

bool ForceActive [get]
 
List< AICharacterMembers = new List<AICharacter>() [get]
 
HashSet< AICharacterActiveMembers = new HashSet<AICharacter>() [get]
 
bool IsActive [get, set]
 
bool IsEnoughMembers [get]
 

Detailed Description

Definition at line 11 of file SwarmBehavior.cs.

Constructor & Destructor Documentation

◆ SwarmBehavior()

Barotrauma.SwarmBehavior.SwarmBehavior ( XElement  element,
EnemyAIController  ai 
)

Definition at line 27 of file SwarmBehavior.cs.

Member Function Documentation

◆ CreateSwarm()

static void Barotrauma.SwarmBehavior.CreateSwarm ( IEnumerable< AICharacter swarm)
static

Definition at line 36 of file SwarmBehavior.cs.

◆ Refresh()

void Barotrauma.SwarmBehavior.Refresh ( )

Definition at line 53 of file SwarmBehavior.cs.

◆ UpdateSteering()

void Barotrauma.SwarmBehavior.UpdateSteering ( float  deltaTime)

Definition at line 69 of file SwarmBehavior.cs.

Property Documentation

◆ ActiveMembers

HashSet<AICharacter> Barotrauma.SwarmBehavior.ActiveMembers = new HashSet<AICharacter>()
get

Definition at line 19 of file SwarmBehavior.cs.

◆ ForceActive

bool Barotrauma.SwarmBehavior.ForceActive
get

Definition at line 16 of file SwarmBehavior.cs.

◆ IsActive

bool Barotrauma.SwarmBehavior.IsActive
getset

Definition at line 23 of file SwarmBehavior.cs.

◆ IsEnoughMembers

bool Barotrauma.SwarmBehavior.IsEnoughMembers
get

Definition at line 24 of file SwarmBehavior.cs.

◆ Members

List<AICharacter> Barotrauma.SwarmBehavior.Members = new List<AICharacter>()
get

Definition at line 18 of file SwarmBehavior.cs.