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

Public Member Functions

 DestructibleLevelWall (List< Vector2 > vertices, Color color, Level level, float? health=null, bool giftWrap=false)
 
override void Update (float deltaTime)
 
void AddDamage (float damage, Vector2 worldPosition)
 
AttackResult AddDamage (Character attacker, Vector2 worldPosition, Attack attack, Vector2 impulseDirection, float deltaTime, bool playSound=true)
 
void Destroy ()
 
- Public Member Functions inherited from Barotrauma.LevelWall
 LevelWall (List< Vector2 > vertices, Color color, Level level, bool giftWrap=false, bool createBody=true)
 
 LevelWall (List< Vector2 > edgePositions, Vector2 extendAmount, Color color, Level level)
 
bool IsPointInside (Vector2 point)
 
void Dispose ()
 

Public Attributes

bool NetworkUpdatePending
 
- Public Attributes inherited from Barotrauma.LevelWall
float MoveSpeed
 

Properties

float Damage [get]
 
float MaxHealth = 1000.0f [get]
 
bool Destroyed [get]
 
float FadeOutDuration [get]
 
float FadeOutTimer [get]
 
Vector2 SimPosition [get]
 
Vector2 WorldPosition [get]
 
float Health [get]
 
- Properties inherited from Barotrauma.LevelWall
List< VoronoiCellCells [get]
 
Body Body [get]
 
Vector2 MoveAmount [get, set]
 
float WallDamageOnTouch [get, set]
 
float MoveState [get, set]
 
- Properties inherited from Barotrauma.IDamageable
Vector2 SimPosition [get]
 
Vector2 WorldPosition [get]
 
float Health [get]
 

Additional Inherited Members

- Protected Attributes inherited from Barotrauma.LevelWall
readonly Level level
 

Detailed Description

Definition at line 9 of file DestructibleLevelWall.cs.

Constructor & Destructor Documentation

◆ DestructibleLevelWall()

Barotrauma.DestructibleLevelWall.DestructibleLevelWall ( List< Vector2 >  vertices,
Color  color,
Level  level,
float?  health = null,
bool  giftWrap = false 
)

Definition at line 58 of file DestructibleLevelWall.cs.

Member Function Documentation

◆ AddDamage() [1/2]

AttackResult Barotrauma.DestructibleLevelWall.AddDamage ( Character  attacker,
Vector2  worldPosition,
Attack  attack,
Vector2  impulseDirection,
float  deltaTime,
bool  playSound = true 
)

Implements Barotrauma.IDamageable.

Definition at line 92 of file DestructibleLevelWall.cs.

◆ AddDamage() [2/2]

void Barotrauma.DestructibleLevelWall.AddDamage ( float  damage,
Vector2  worldPosition 
)

Definition at line 75 of file DestructibleLevelWall.cs.

◆ Destroy()

void Barotrauma.DestructibleLevelWall.Destroy ( )

Definition at line 200 of file DestructibleLevelWall.cs.

◆ Update()

override void Barotrauma.DestructibleLevelWall.Update ( float  deltaTime)
virtual

Reimplemented from Barotrauma.LevelWall.

Definition at line 65 of file DestructibleLevelWall.cs.

Member Data Documentation

◆ NetworkUpdatePending

bool Barotrauma.DestructibleLevelWall.NetworkUpdatePending

Definition at line 11 of file DestructibleLevelWall.cs.

Property Documentation

◆ Damage

float Barotrauma.DestructibleLevelWall.Damage
get

Definition at line 13 of file DestructibleLevelWall.cs.

◆ Destroyed

bool Barotrauma.DestructibleLevelWall.Destroyed
get

Definition at line 25 of file DestructibleLevelWall.cs.

◆ FadeOutDuration

float Barotrauma.DestructibleLevelWall.FadeOutDuration
get

Definition at line 31 of file DestructibleLevelWall.cs.

◆ FadeOutTimer

float Barotrauma.DestructibleLevelWall.FadeOutTimer
get

Definition at line 37 of file DestructibleLevelWall.cs.

◆ Health

float Barotrauma.DestructibleLevelWall.Health
get

Definition at line 53 of file DestructibleLevelWall.cs.

◆ MaxHealth

float Barotrauma.DestructibleLevelWall.MaxHealth = 1000.0f
get

Definition at line 19 of file DestructibleLevelWall.cs.

◆ SimPosition

Vector2 Barotrauma.DestructibleLevelWall.SimPosition
get

Definition at line 43 of file DestructibleLevelWall.cs.

◆ WorldPosition

Vector2 Barotrauma.DestructibleLevelWall.WorldPosition
get

Definition at line 48 of file DestructibleLevelWall.cs.