Barotrauma Client Doc
Barotrauma.LevelWall Class Reference
Inheritance diagram for Barotrauma.LevelWall:
Barotrauma.DestructibleLevelWall 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 ()
 
Matrix GetTransform ()
 
void SetWallVertices (VertexPositionTexture[] wallVertices, VertexPositionTexture[] wallEdgeVertices, Texture2D wallTexture, Texture2D edgeTexture, Color color)
 
void GenerateVertices ()
 

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]
 
LevelWallVertexBuffer VertexBuffer [get]
 
VertexBuffer WallBuffer [get]
 
VertexBuffer WallEdgeBuffer [get]
 
virtual float Alpha [get]
 

Detailed Description

Constructor & Destructor Documentation

◆ LevelWall() [1/2]

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

◆ LevelWall() [2/2]

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

Member Function Documentation

◆ Dispose()

void Barotrauma.LevelWall.Dispose ( )

◆ GenerateVertices()

void Barotrauma.LevelWall.GenerateVertices ( )

◆ GetTransform()

Matrix Barotrauma.LevelWall.GetTransform ( )

◆ IsPointInside()

bool Barotrauma.LevelWall.IsPointInside ( Vector2  point)

◆ SetWallVertices()

void Barotrauma.LevelWall.SetWallVertices ( VertexPositionTexture[]  wallVertices,
VertexPositionTexture[]  wallEdgeVertices,
Texture2D  wallTexture,
Texture2D  edgeTexture,
Color  color 
)

◆ Update()

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

Member Data Documentation

◆ level

readonly Level Barotrauma.LevelWall.level
protected

◆ MoveSpeed

float Barotrauma.LevelWall.MoveSpeed

Property Documentation

◆ Alpha

virtual float Barotrauma.LevelWall.Alpha
get

◆ Body

Body Barotrauma.LevelWall.Body
get

◆ Cells

List<VoronoiCell> Barotrauma.LevelWall.Cells
get

◆ MoveAmount

Vector2 Barotrauma.LevelWall.MoveAmount
getset

◆ MoveState

float Barotrauma.LevelWall.MoveState
getset

◆ VertexBuffer

LevelWallVertexBuffer Barotrauma.LevelWall.VertexBuffer
get

◆ WallBuffer

VertexBuffer Barotrauma.LevelWall.WallBuffer
get

◆ WallDamageOnTouch

float Barotrauma.LevelWall.WallDamageOnTouch
getset

◆ WallEdgeBuffer

VertexBuffer Barotrauma.LevelWall.WallEdgeBuffer
get