Barotrauma Client Doc
Barotrauma.BinaryOptionAction Class Referenceabstract
Inheritance diagram for Barotrauma.BinaryOptionAction:
Barotrauma.EventAction Barotrauma.CheckConditionalAction Barotrauma.CheckDataAction Barotrauma.CheckItemAction Barotrauma.CheckMoneyAction Barotrauma.CheckOrderAction Barotrauma.CheckSelectedAction Barotrauma.CheckTraitorEventStateAction Barotrauma.CheckTraitorVoteAction Barotrauma.CheckVisibilityAction Barotrauma.CountTargetsAction Barotrauma.RNGAction Barotrauma.SkillCheckAction

Public Member Functions

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

Public Attributes

SubactionGroup Success = null
 
SubactionGroup Failure = null
 
- Public Attributes inherited from Barotrauma.EventAction
readonly ScriptedEvent ParentEvent
 

Protected Member Functions

bool DetermineFinished ()
 
bool DetermineFinished (ref string goTo)
 
bool HasBeenDetermined ()
 
abstract ? bool DetermineSuccess ()
 
- Protected Member Functions inherited from Barotrauma.EventAction
void ApplyTagsToHulls (Entity entity, Identifier hullTag, Identifier linkedHullTag)
 

Protected Attributes

bool? succeeded = null
 

Additional Inherited Members

- Static Public Member Functions inherited from Barotrauma.EventAction
static EventAction Instantiate (ScriptedEvent scriptedEvent, ContentXElement element)
 

Detailed Description

Definition at line 7 of file BinaryOptionAction.cs.

Constructor & Destructor Documentation

◆ BinaryOptionAction()

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

Definition at line 13 of file BinaryOptionAction.cs.

Member Function Documentation

◆ DetermineFinished() [1/2]

bool Barotrauma.BinaryOptionAction.DetermineFinished ( )
protected

Definition at line 41 of file BinaryOptionAction.cs.

◆ DetermineFinished() [2/2]

bool Barotrauma.BinaryOptionAction.DetermineFinished ( ref string  goTo)
protected

Definition at line 47 of file BinaryOptionAction.cs.

◆ DetermineSuccess()

◆ GetSubActions()

override IEnumerable<EventAction> Barotrauma.BinaryOptionAction.GetSubActions ( )
virtual

Reimplemented from Barotrauma.EventAction.

Definition at line 29 of file BinaryOptionAction.cs.

◆ HasBeenDetermined()

bool Barotrauma.BinaryOptionAction.HasBeenDetermined ( )
protected

Definition at line 69 of file BinaryOptionAction.cs.

◆ IsFinished()

override bool Barotrauma.BinaryOptionAction.IsFinished ( ref string  goToLabel)
virtual

Has the action finished.

Parameters
goToLabelIf null or empty, the event moves to the next action. Otherwise it moves to the specified label.
Returns

Implements Barotrauma.EventAction.

Definition at line 36 of file BinaryOptionAction.cs.

◆ Reset()

override void Barotrauma.BinaryOptionAction.Reset ( )
virtual

Implements Barotrauma.EventAction.

Definition at line 89 of file BinaryOptionAction.cs.

◆ SetGoToTarget()

override bool Barotrauma.BinaryOptionAction.SetGoToTarget ( string  goTo)
virtual

Reimplemented from Barotrauma.EventAction.

Definition at line 74 of file BinaryOptionAction.cs.

◆ Update()

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

Reimplemented from Barotrauma.EventAction.

Definition at line 96 of file BinaryOptionAction.cs.

Member Data Documentation

◆ Failure

SubactionGroup Barotrauma.BinaryOptionAction.Failure = null

Definition at line 10 of file BinaryOptionAction.cs.

◆ succeeded

bool? Barotrauma.BinaryOptionAction.succeeded = null
protected

Definition at line 11 of file BinaryOptionAction.cs.

◆ Success

SubactionGroup Barotrauma.BinaryOptionAction.Success = null

Definition at line 9 of file BinaryOptionAction.cs.