Barotrauma Client
Loading...
Searching...
No Matches
Barotrauma.AfflictionAction Class Reference

Gives an affliction to a specific character. More...

Inheritance diagram for Barotrauma.AfflictionAction:
Barotrauma.EventAction

Public Member Functions

 AfflictionAction (ScriptedEvent parentEvent, ContentXElement element)
 
override bool IsFinished (ref string goTo)
 
override void Reset ()
 
override void Update (float deltaTime)
 
override string ToDebugString ()
 Rich test to display in debugdraw.
 
- Public Member Functions inherited from Barotrauma.EventAction
 EventAction (ScriptedEvent parentEvent, ContentXElement element)
 
bool IsFinished (ref string goToLabel)
 Has the action finished.
 
virtual bool SetGoToTarget (string goTo)
 
void Reset ()
 
virtual bool CanBeFinished ()
 
virtual IEnumerable< EventActionGetSubActions ()
 

Properties

Identifier Affliction [get, set]
 
float Strength [get, set]
 
LimbType LimbType [get, set]
 
Identifier TargetTag [get, set]
 
bool MultiplyByMaxVitality [get, set]
 

Additional Inherited Members

- Static Public Member Functions inherited from Barotrauma.EventAction
static EventAction Instantiate (ScriptedEvent scriptedEvent, ContentXElement element)
 
- Public Attributes inherited from Barotrauma.EventAction
readonly ScriptedEvent ParentEvent
 
- Protected Member Functions inherited from Barotrauma.EventAction
void ApplyTagsToHulls (Entity entity, Identifier hullTag, Identifier linkedHullTag)
 
string GetEventDebugName ()
 

Detailed Description

Gives an affliction to a specific character.

Constructor & Destructor Documentation

◆ AfflictionAction()

Barotrauma.AfflictionAction.AfflictionAction ( ScriptedEvent parentEvent,
ContentXElement element )

Member Function Documentation

◆ IsFinished()

override bool Barotrauma.AfflictionAction.IsFinished ( ref string goTo)

◆ Reset()

override void Barotrauma.AfflictionAction.Reset ( )

◆ ToDebugString()

override string Barotrauma.AfflictionAction.ToDebugString ( )
virtual

Rich test to display in debugdraw.

public override string ToDebugString()
{
return $"{ToolBox.GetDebugSymbol(isFinished)} SomeAction -> "(someInfo: {info.ColorizeObject()})";
}
override string ToDebugString()
Rich test to display in debugdraw.
Definition AfflictionAction.cs:90
Returns

Reimplemented from Barotrauma.EventAction.

◆ Update()

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

Reimplemented from Barotrauma.EventAction.

Property Documentation

◆ Affliction

Identifier Barotrauma.AfflictionAction.Affliction
getset

◆ LimbType

LimbType Barotrauma.AfflictionAction.LimbType
getset

◆ MultiplyByMaxVitality

bool Barotrauma.AfflictionAction.MultiplyByMaxVitality
getset

◆ Strength

float Barotrauma.AfflictionAction.Strength
getset

◆ TargetTag

Identifier Barotrauma.AfflictionAction.TargetTag
getset

The documentation for this class was generated from the following file: