Barotrauma Server Doc
Barotrauma.LevelWall Class Reference
Inheritance diagram for Barotrauma.LevelWall:
Barotrauma.DestructibleLevelWall

Public Member Functions

 LevelWall (List< Vector2 > vertices, Color color, Level level, bool giftWrap=false, bool createBody=true)
 
 LevelWall (List< Vector2 > edgePositions, Vector2 extendAmount, Color color, Level level)
 
virtual void Update (float deltaTime)
 
bool IsPointInside (Vector2 point)
 
void Dispose ()
 

Public Attributes

float MoveSpeed
 

Protected Attributes

readonly Level level
 

Properties

List< VoronoiCellCells [get]
 
Body Body [get]
 
Vector2 MoveAmount [get, set]
 
float WallDamageOnTouch [get, set]
 
float MoveState [get, set]
 

Detailed Description

Definition at line 14 of file LevelWall.cs.

Constructor & Destructor Documentation

◆ LevelWall() [1/2]

Barotrauma.LevelWall.LevelWall ( List< Vector2 >  vertices,
Color  color,
Level  level,
bool  giftWrap = false,
bool  createBody = true 
)

Definition at line 60 of file LevelWall.cs.

◆ LevelWall() [2/2]

Barotrauma.LevelWall.LevelWall ( List< Vector2 >  edgePositions,
Vector2  extendAmount,
Color  color,
Level  level 
)

Definition at line 90 of file LevelWall.cs.

Member Function Documentation

◆ Dispose()

void Barotrauma.LevelWall.Dispose ( )

Definition at line 153 of file LevelWall.cs.

◆ IsPointInside()

bool Barotrauma.LevelWall.IsPointInside ( Vector2  point)

Definition at line 148 of file LevelWall.cs.

◆ Update()

virtual void Barotrauma.LevelWall.Update ( float  deltaTime)
virtual

Reimplemented in Barotrauma.DestructibleLevelWall.

Definition at line 129 of file LevelWall.cs.

Member Data Documentation

◆ level

readonly Level Barotrauma.LevelWall.level
protected

Definition at line 20 of file LevelWall.cs.

◆ MoveSpeed

float Barotrauma.LevelWall.MoveSpeed

Definition at line 50 of file LevelWall.cs.

Property Documentation

◆ Body

Body Barotrauma.LevelWall.Body
get

Definition at line 18 of file LevelWall.cs.

◆ Cells

List<VoronoiCell> Barotrauma.LevelWall.Cells
get

Definition at line 16 of file LevelWall.cs.

◆ MoveAmount

Vector2 Barotrauma.LevelWall.MoveAmount
getset

Definition at line 29 of file LevelWall.cs.

◆ MoveState

float Barotrauma.LevelWall.MoveState
getset

Definition at line 54 of file LevelWall.cs.

◆ WallDamageOnTouch

float Barotrauma.LevelWall.WallDamageOnTouch
getset

Definition at line 40 of file LevelWall.cs.