Barotrauma Client Doc
Barotrauma.ShipCommandManager Class Reference

Public Types

enum class  NavigationStates { Inactive , Patrol , Aggressive }
 

Public Member Functions

 ShipCommandManager (Character character)
 
void Update (float deltaTime)
 
bool AbleToTakeOrder (Character character)
 

Static Public Member Functions

static void ShipCommandLog (string text)
 

Public Attributes

readonly Character character
 
readonly HumanAIController humanAIController
 
readonly List< Vector2 > patrolPositions = new List<Vector2>()
 
readonly List< ShipIssueWorkerShipIssueWorkers = new List<ShipIssueWorker>()
 
readonly List< CharacterAlliedCharacters = new List<Character>()
 
readonly List< CharacterEnemyCharacters = new List<Character>()
 

Static Public Attributes

const float MinimumIssueThreshold = 10f
 

Properties

bool? Active [get, set]
 
Submarine EnemySubmarine [get]
 
Submarine CommandedSubmarine [get]
 
NavigationStates NavigationState = NavigationStates.Inactive [get]
 

Detailed Description

Definition at line 9 of file ShipCommandManager.cs.

Member Enumeration Documentation

◆ NavigationStates

Enumerator
Inactive 
Patrol 
Aggressive 

Definition at line 38 of file ShipCommandManager.cs.

Constructor & Destructor Documentation

◆ ShipCommandManager()

Barotrauma.ShipCommandManager.ShipCommandManager ( Character  character)

Definition at line 70 of file ShipCommandManager.cs.

Member Function Documentation

◆ AbleToTakeOrder()

bool Barotrauma.ShipCommandManager.AbleToTakeOrder ( Character  character)

Definition at line 181 of file ShipCommandManager.cs.

◆ ShipCommandLog()

static void Barotrauma.ShipCommandManager.ShipCommandLog ( string  text)
static

Definition at line 96 of file ShipCommandManager.cs.

◆ Update()

void Barotrauma.ShipCommandManager.Update ( float  deltaTime)

Definition at line 76 of file ShipCommandManager.cs.

Member Data Documentation

◆ AlliedCharacters

readonly List<Character> Barotrauma.ShipCommandManager.AlliedCharacters = new List<Character>()

Definition at line 63 of file ShipCommandManager.cs.

◆ character

readonly Character Barotrauma.ShipCommandManager.character

Definition at line 11 of file ShipCommandManager.cs.

◆ EnemyCharacters

readonly List<Character> Barotrauma.ShipCommandManager.EnemyCharacters = new List<Character>()

Definition at line 64 of file ShipCommandManager.cs.

◆ humanAIController

readonly HumanAIController Barotrauma.ShipCommandManager.humanAIController

Definition at line 12 of file ShipCommandManager.cs.

◆ MinimumIssueThreshold

const float Barotrauma.ShipCommandManager.MinimumIssueThreshold = 10f
static

Definition at line 54 of file ShipCommandManager.cs.

◆ patrolPositions

readonly List<Vector2> Barotrauma.ShipCommandManager.patrolPositions = new List<Vector2>()

Definition at line 37 of file ShipCommandManager.cs.

◆ ShipIssueWorkers

readonly List<ShipIssueWorker> Barotrauma.ShipCommandManager.ShipIssueWorkers = new List<ShipIssueWorker>()

Definition at line 53 of file ShipCommandManager.cs.

Property Documentation

◆ Active

bool? Barotrauma.ShipCommandManager.Active
getset

Definition at line 15 of file ShipCommandManager.cs.

◆ CommandedSubmarine

Submarine Barotrauma.ShipCommandManager.CommandedSubmarine
get

Definition at line 30 of file ShipCommandManager.cs.

◆ EnemySubmarine

Submarine Barotrauma.ShipCommandManager.EnemySubmarine
get

Definition at line 24 of file ShipCommandManager.cs.

◆ NavigationState

NavigationStates Barotrauma.ShipCommandManager.NavigationState = NavigationStates.Inactive
get

Definition at line 45 of file ShipCommandManager.cs.