Barotrauma Client Doc
Barotrauma.FireSource Class Reference
Inheritance diagram for Barotrauma.FireSource:
Barotrauma.ISpatialEntity Barotrauma.DummyFireSource

Public Member Functions

 FireSource (Vector2 worldPosition, Hull spawningHull=null, Character sourceCharacter=null, bool isNetworkMessage=false)
 
void Update (float deltaTime)
 
bool IsInDamageRange (Character c, float damageRange)
 
bool IsInDamageRange (Vector2 worldPosition, float damageRange)
 
void Extinguish (float deltaTime, float amount)
 
void Extinguish (float deltaTime, float amount, Vector2 worldPosition)
 
void Remove ()
 
void EmitParticles (Vector2 size, Vector2 worldPosition, float deltaTime, Hull hull, float growModifier, Particle.OnChangeHullHandler onChangeHull=null)
 

Static Public Member Functions

static void UpdateAll (List< FireSource > fireSources, float deltaTime)
 
static void UpdateAll (List< DummyFireSource > fireSources, float deltaTime)
 

Public Attributes

readonly Character SourceCharacter
 Which character caused this fire (if any)? More...
 

Protected Member Functions

virtual void LimitSize ()
 
virtual void ReduceOxygen (float deltaTime)
 
virtual void AdjustXPos (float growModifier, float deltaTime)
 

Protected Attributes

Hull hull
 
Vector2 position
 
Vector2 size
 
bool removed
 

Properties

Submarine Submarine [get]
 
Vector2 Position [get, set]
 
Vector2? WorldPosition [get]
 
Vector2 SimPosition [get]
 
Vector2 Size [get, set]
 
virtual float DamageRange [get]
 
bool DamagesItems = true [get, set]
 
bool DamagesCharacters = true [get, set]
 
bool Removed [get]
 
Hull Hull [get]
 
- Properties inherited from Barotrauma.ISpatialEntity
Vector2 Position [get]
 
Vector2 WorldPosition [get]
 
Vector2 SimPosition [get]
 
Submarine Submarine [get]
 

Detailed Description

Constructor & Destructor Documentation

◆ FireSource()

Barotrauma.FireSource.FireSource ( Vector2  worldPosition,
Hull  spawningHull = null,
Character  sourceCharacter = null,
bool  isNetworkMessage = false 
)

Member Function Documentation

◆ AdjustXPos()

virtual void Barotrauma.FireSource.AdjustXPos ( float  growModifier,
float  deltaTime 
)
protectedvirtual

◆ EmitParticles()

void Barotrauma.FireSource.EmitParticles ( Vector2  size,
Vector2  worldPosition,
float  deltaTime,
Hull  hull,
float  growModifier,
Particle.OnChangeHullHandler  onChangeHull = null 
)

◆ Extinguish() [1/2]

void Barotrauma.FireSource.Extinguish ( float  deltaTime,
float  amount 
)

◆ Extinguish() [2/2]

void Barotrauma.FireSource.Extinguish ( float  deltaTime,
float  amount,
Vector2  worldPosition 
)

◆ IsInDamageRange() [1/2]

bool Barotrauma.FireSource.IsInDamageRange ( Character  c,
float  damageRange 
)

◆ IsInDamageRange() [2/2]

bool Barotrauma.FireSource.IsInDamageRange ( Vector2  worldPosition,
float  damageRange 
)

◆ LimitSize()

virtual void Barotrauma.FireSource.LimitSize ( )
protectedvirtual

◆ ReduceOxygen()

virtual void Barotrauma.FireSource.ReduceOxygen ( float  deltaTime)
protectedvirtual

◆ Remove()

void Barotrauma.FireSource.Remove ( )

◆ Update()

void Barotrauma.FireSource.Update ( float  deltaTime)

◆ UpdateAll() [1/2]

static void Barotrauma.FireSource.UpdateAll ( List< DummyFireSource fireSources,
float  deltaTime 
)
static

◆ UpdateAll() [2/2]

static void Barotrauma.FireSource.UpdateAll ( List< FireSource fireSources,
float  deltaTime 
)
static

Member Data Documentation

◆ hull

Hull Barotrauma.FireSource.hull
protected

◆ position

Vector2 Barotrauma.FireSource.position
protected

◆ removed

bool Barotrauma.FireSource.removed
protected

◆ size

Vector2 Barotrauma.FireSource.size
protected

◆ SourceCharacter

readonly Character Barotrauma.FireSource.SourceCharacter

Which character caused this fire (if any)?

Definition at line 97 of file BarotraumaShared/SharedSource/Map/FireSource.cs.

Property Documentation

◆ DamageRange

virtual float Barotrauma.FireSource.DamageRange
get

◆ DamagesCharacters

bool Barotrauma.FireSource.DamagesCharacters = true
getset

◆ DamagesItems

bool Barotrauma.FireSource.DamagesItems = true
getset

◆ Hull

Hull Barotrauma.FireSource.Hull
get

◆ Position

Vector2 Barotrauma.FireSource.Position
getset

◆ Removed

bool Barotrauma.FireSource.Removed
get

◆ SimPosition

Vector2 Barotrauma.FireSource.SimPosition
get

◆ Size

Vector2 Barotrauma.FireSource.Size
getset

◆ Submarine

Submarine Barotrauma.FireSource.Submarine
get

◆ WorldPosition

Vector2? Barotrauma.FireSource.WorldPosition
get