Barotrauma Client Doc
Barotrauma.Swarm Class Reference

Public Member Functions

Vector2 MidPoint ()
 
Vector2 AvgVelocity ()
 
 Swarm (List< BackgroundCreature > members, float maxDistance, float cohesion)
 

Public Attributes

List< BackgroundCreatureMembers
 
readonly float MaxDistance
 
readonly float Cohesion
 

Detailed Description

Definition at line 348 of file BackgroundCreature.cs.

Constructor & Destructor Documentation

◆ Swarm()

Barotrauma.Swarm.Swarm ( List< BackgroundCreature members,
float  maxDistance,
float  cohesion 
)

Definition at line 384 of file BackgroundCreature.cs.

Member Function Documentation

◆ AvgVelocity()

Vector2 Barotrauma.Swarm.AvgVelocity ( )

Definition at line 371 of file BackgroundCreature.cs.

◆ MidPoint()

Vector2 Barotrauma.Swarm.MidPoint ( )

Definition at line 355 of file BackgroundCreature.cs.

Member Data Documentation

◆ Cohesion

readonly float Barotrauma.Swarm.Cohesion

Definition at line 353 of file BackgroundCreature.cs.

◆ MaxDistance

readonly float Barotrauma.Swarm.MaxDistance

Definition at line 352 of file BackgroundCreature.cs.

◆ Members

List<BackgroundCreature> Barotrauma.Swarm.Members

Definition at line 350 of file BackgroundCreature.cs.