Barotrauma Client Doc
Barotrauma.MapCreatures.Behavior.BallastFloraBranch Class Reference

Inherits Barotrauma.Items.Components.VineTile.

Public Member Functions

 BallastFloraBranch (BallastFloraBehavior? parent, BallastFloraBranch? parentBranch, Vector2 position, VineTileType type, FoliageConfig? flowerConfig=null, FoliageConfig? leafConfig=null, Rectangle? rect=null)
 
void UpdateHealth ()
 
void UpdatePulse (float deltaTime, float inflateSpeed, float deflateSpeed, float delay)
 

Public Attributes

readonly? BallastFloraBehavior ParentBallastFlora
 
int ID = -1
 
ItemClaimedItem
 
int ClaimedItemId = -1
 
float MaxHealth = 100f
 
float RemoveTimer = 60.0f
 
bool SpawningItem
 
ItemAttackItem
 
bool IsRoot
 
bool IsRootGrowth
 Decorative branches that grow around the root More...
 
bool Removed
 
bool DisconnectedFromRoot
 
HullCurrentHull
 
float Pulse = 1.0f
 
float AccumulatedDamage
 
float DamageVisualizationTimer
 
Vector2 ShakeAmount
 
readonly Dictionary< TileSide, BallastFloraBranchConnections = new Dictionary<TileSide, BallastFloraBranch>()
 

Properties

float Health [get, set]
 
BallastFloraBranchParentBranch [get, set]
 
int BranchDepth [get]
 How far from the root this branch is More...
 

Detailed Description

Constructor & Destructor Documentation

◆ BallastFloraBranch()

Barotrauma.MapCreatures.Behavior.BallastFloraBranch.BallastFloraBranch ( BallastFloraBehavior?  parent,
BallastFloraBranch parentBranch,
Vector2  position,
VineTileType  type,
FoliageConfig?  flowerConfig = null,
FoliageConfig?  leafConfig = null,
Rectangle?  rect = null 
)

Member Function Documentation

◆ UpdateHealth()

void Barotrauma.MapCreatures.Behavior.BallastFloraBranch.UpdateHealth ( )

◆ UpdatePulse()

void Barotrauma.MapCreatures.Behavior.BallastFloraBranch.UpdatePulse ( float  deltaTime,
float  inflateSpeed,
float  deflateSpeed,
float  delay 
)

Member Data Documentation

◆ AccumulatedDamage

float Barotrauma.MapCreatures.Behavior.BallastFloraBranch.AccumulatedDamage

◆ AttackItem

Item? Barotrauma.MapCreatures.Behavior.BallastFloraBranch.AttackItem

◆ ClaimedItem

Item? Barotrauma.MapCreatures.Behavior.BallastFloraBranch.ClaimedItem

◆ ClaimedItemId

int Barotrauma.MapCreatures.Behavior.BallastFloraBranch.ClaimedItemId = -1

◆ Connections

readonly Dictionary<TileSide, BallastFloraBranch> Barotrauma.MapCreatures.Behavior.BallastFloraBranch.Connections = new Dictionary<TileSide, BallastFloraBranch>()

◆ CurrentHull

Hull? Barotrauma.MapCreatures.Behavior.BallastFloraBranch.CurrentHull

◆ DamageVisualizationTimer

float Barotrauma.MapCreatures.Behavior.BallastFloraBranch.DamageVisualizationTimer

◆ DisconnectedFromRoot

bool Barotrauma.MapCreatures.Behavior.BallastFloraBranch.DisconnectedFromRoot

◆ ID

int Barotrauma.MapCreatures.Behavior.BallastFloraBranch.ID = -1

◆ IsRoot

bool Barotrauma.MapCreatures.Behavior.BallastFloraBranch.IsRoot

◆ IsRootGrowth

bool Barotrauma.MapCreatures.Behavior.BallastFloraBranch.IsRootGrowth

Decorative branches that grow around the root

Definition at line 43 of file BarotraumaShared/SharedSource/Map/Creatures/BallastFloraBehavior.cs.

◆ MaxHealth

float Barotrauma.MapCreatures.Behavior.BallastFloraBranch.MaxHealth = 100f

◆ ParentBallastFlora

readonly? BallastFloraBehavior Barotrauma.MapCreatures.Behavior.BallastFloraBranch.ParentBallastFlora

◆ Pulse

float Barotrauma.MapCreatures.Behavior.BallastFloraBranch.Pulse = 1.0f

◆ Removed

bool Barotrauma.MapCreatures.Behavior.BallastFloraBranch.Removed

◆ RemoveTimer

float Barotrauma.MapCreatures.Behavior.BallastFloraBranch.RemoveTimer = 60.0f

◆ ShakeAmount

Vector2 Barotrauma.MapCreatures.Behavior.BallastFloraBranch.ShakeAmount

◆ SpawningItem

bool Barotrauma.MapCreatures.Behavior.BallastFloraBranch.SpawningItem

Property Documentation

◆ BranchDepth

int Barotrauma.MapCreatures.Behavior.BallastFloraBranch.BranchDepth
get

How far from the root this branch is

Definition at line 73 of file BarotraumaShared/SharedSource/Map/Creatures/BallastFloraBehavior.cs.

◆ Health

float Barotrauma.MapCreatures.Behavior.BallastFloraBranch.Health
getset

◆ ParentBranch

BallastFloraBranch? Barotrauma.MapCreatures.Behavior.BallastFloraBranch.ParentBranch
getset