Barotrauma Client Doc
Barotrauma.CheckTraitorVoteAction Class Reference

Checks whether the specific target was voted as the traitor. More...

Inheritance diagram for Barotrauma.CheckTraitorVoteAction:
Barotrauma.BinaryOptionAction Barotrauma.EventAction

Public Member Functions

 CheckTraitorVoteAction (ScriptedEvent parentEvent, ContentXElement element)
 
override string ToDebugString ()
 Rich test to display in debugdraw More...
 
- Public Member Functions inherited from Barotrauma.BinaryOptionAction
 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 ()
 

Protected Member Functions

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

Properties

Identifier Target [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.BinaryOptionAction
SubactionGroup Success = null
 
SubactionGroup Failure = null
 
- Public Attributes inherited from Barotrauma.EventAction
readonly ScriptedEvent ParentEvent
 
- Protected Attributes inherited from Barotrauma.BinaryOptionAction
bool? succeeded = null
 

Detailed Description

Checks whether the specific target was voted as the traitor.

Definition at line 10 of file CheckTraitorVoteAction.cs.

Constructor & Destructor Documentation

◆ CheckTraitorVoteAction()

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

Definition at line 15 of file CheckTraitorVoteAction.cs.

Member Function Documentation

◆ DetermineSuccess()

override? bool Barotrauma.CheckTraitorVoteAction.DetermineSuccess ( )
protectedvirtual

Implements Barotrauma.BinaryOptionAction.

Definition at line 24 of file CheckTraitorVoteAction.cs.

◆ ToDebugString()

override string Barotrauma.CheckTraitorVoteAction.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
Returns

Reimplemented from Barotrauma.EventAction.

Definition at line 36 of file CheckTraitorVoteAction.cs.

Property Documentation

◆ Target

Identifier Barotrauma.CheckTraitorVoteAction.Target
getset

Definition at line 13 of file CheckTraitorVoteAction.cs.