Barotrauma Client Doc
Barotrauma.ShipIssueWorker Class Referenceabstract
Inheritance diagram for Barotrauma.ShipIssueWorker:
Barotrauma.ShipIssueWorkerGlobal Barotrauma.ShipIssueWorkerItem Barotrauma.ShipIssueWorkerFixLeaks Barotrauma.ShipIssueWorkerRepairSystems Barotrauma.ShipIssueWorkerOperateWeapons Barotrauma.ShipIssueWorkerPowerUpReactor Barotrauma.ShipIssueWorkerSteer

Public Member Functions

 ShipIssueWorker (ShipCommandManager shipCommandManager, Order suggestedOrder)
 
void SetOrder (Character orderedCharacter)
 
void RemoveOrder ()
 
float CalculateImportance (bool isEmergency)
 
bool OrderAttendedTo (float timeSinceLastCheck=0f)
 
abstract void CalculateImportanceSpecific ()
 

Public Attributes

readonly ShipCommandManager shipCommandManager
 

Static Public Attributes

const float MaxImportance = 100f
 
const float MinImportance = 0f
 

Protected Member Functions

virtual bool IsIssueViable ()
 

Properties

Order SuggestedOrder [get]
 
float Importance [get, set]
 
float CurrentRedundancy [get, set]
 
Identifier Option [get]
 
Character OrderedCharacter [get, set]
 
Order CurrentOrder [get]
 
ItemComponent TargetItemComponent [get]
 
Item TargetItem [get]
 
bool Active = true [get, protected set]
 
virtual Character CommandingCharacter [get]
 
virtual float TimeSinceLastAttempt [get, set]
 
virtual float RedundantIssueModifier [get]
 
virtual bool StopDuringEmergency [get]
 
virtual bool AllowEasySwitching [get]
 

Detailed Description

Definition at line 7 of file ShipIssueWorker.cs.

Constructor & Destructor Documentation

◆ ShipIssueWorker()

Barotrauma.ShipIssueWorker.ShipIssueWorker ( ShipCommandManager  shipCommandManager,
Order  suggestedOrder 
)

Definition at line 41 of file ShipIssueWorker.cs.

Member Function Documentation

◆ CalculateImportance()

float Barotrauma.ShipIssueWorker.CalculateImportance ( bool  isEmergency)

Definition at line 79 of file ShipIssueWorker.cs.

◆ CalculateImportanceSpecific()

abstract void Barotrauma.ShipIssueWorker.CalculateImportanceSpecific ( )
pure virtual

◆ IsIssueViable()

virtual bool Barotrauma.ShipIssueWorker.IsIssueViable ( )
protectedvirtual

Reimplemented in Barotrauma.ShipIssueWorkerItem.

Definition at line 74 of file ShipIssueWorker.cs.

◆ OrderAttendedTo()

bool Barotrauma.ShipIssueWorker.OrderAttendedTo ( float  timeSinceLastCheck = 0f)

Definition at line 112 of file ShipIssueWorker.cs.

◆ RemoveOrder()

void Barotrauma.ShipIssueWorker.RemoveOrder ( )

Definition at line 68 of file ShipIssueWorker.cs.

◆ SetOrder()

void Barotrauma.ShipIssueWorker.SetOrder ( Character  orderedCharacter)

Definition at line 47 of file ShipIssueWorker.cs.

Member Data Documentation

◆ MaxImportance

const float Barotrauma.ShipIssueWorker.MaxImportance = 100f
static

Definition at line 9 of file ShipIssueWorker.cs.

◆ MinImportance

const float Barotrauma.ShipIssueWorker.MinImportance = 0f
static

Definition at line 10 of file ShipIssueWorker.cs.

◆ shipCommandManager

readonly ShipCommandManager Barotrauma.ShipIssueWorker.shipCommandManager

Definition at line 27 of file ShipIssueWorker.cs.

Property Documentation

◆ Active

bool Barotrauma.ShipIssueWorker.Active = true
getprotected set

Definition at line 33 of file ShipIssueWorker.cs.

◆ AllowEasySwitching

virtual bool Barotrauma.ShipIssueWorker.AllowEasySwitching
get

Definition at line 39 of file ShipIssueWorker.cs.

◆ CommandingCharacter

virtual Character Barotrauma.ShipIssueWorker.CommandingCharacter
getprotected

Definition at line 35 of file ShipIssueWorker.cs.

◆ CurrentOrder

Order Barotrauma.ShipIssueWorker.CurrentOrder
get

Definition at line 30 of file ShipIssueWorker.cs.

◆ CurrentRedundancy

float Barotrauma.ShipIssueWorker.CurrentRedundancy
getset

Definition at line 25 of file ShipIssueWorker.cs.

◆ Importance

float Barotrauma.ShipIssueWorker.Importance
getset

Definition at line 14 of file ShipIssueWorker.cs.

◆ Option

Identifier Barotrauma.ShipIssueWorker.Option
get

Definition at line 28 of file ShipIssueWorker.cs.

◆ OrderedCharacter

Character Barotrauma.ShipIssueWorker.OrderedCharacter
getset

Definition at line 29 of file ShipIssueWorker.cs.

◆ RedundantIssueModifier

virtual float Barotrauma.ShipIssueWorker.RedundantIssueModifier
get

Definition at line 37 of file ShipIssueWorker.cs.

◆ StopDuringEmergency

virtual bool Barotrauma.ShipIssueWorker.StopDuringEmergency
get

Definition at line 38 of file ShipIssueWorker.cs.

◆ SuggestedOrder

Order Barotrauma.ShipIssueWorker.SuggestedOrder
get

Definition at line 11 of file ShipIssueWorker.cs.

◆ TargetItem

Item Barotrauma.ShipIssueWorker.TargetItem
get

Definition at line 32 of file ShipIssueWorker.cs.

◆ TargetItemComponent

ItemComponent Barotrauma.ShipIssueWorker.TargetItemComponent
get

Definition at line 31 of file ShipIssueWorker.cs.

◆ TimeSinceLastAttempt

virtual float Barotrauma.ShipIssueWorker.TimeSinceLastAttempt
getset

Definition at line 36 of file ShipIssueWorker.cs.