Barotrauma Client Doc
Barotrauma.MentalStateManager Class Reference

Public Types

enum class  MentalType {
  Normal , Confused , Afraid , Desperate ,
  Berserk
}
 

Public Member Functions

 MentalStateManager (Character character, HumanAIController humanAIController)
 
void Update (float deltaTime)
 
bool CreateCombatBehavior (MentalType mentalType)
 
void CreateDialogueBehavior (MentalType mentalType)
 

Properties

bool Active [get, set]
 
MentalType CurrentMentalType [get]
 

Detailed Description

Definition at line 7 of file MentalStateManager.cs.

Member Enumeration Documentation

◆ MentalType

Enumerator
Normal 
Confused 
Afraid 
Desperate 
Berserk 

Definition at line 20 of file MentalStateManager.cs.

Constructor & Destructor Documentation

◆ MentalStateManager()

Barotrauma.MentalStateManager.MentalStateManager ( Character  character,
HumanAIController  humanAIController 
)

Definition at line 31 of file MentalStateManager.cs.

Member Function Documentation

◆ CreateCombatBehavior()

bool Barotrauma.MentalStateManager.CreateCombatBehavior ( MentalType  mentalType)

Definition at line 124 of file MentalStateManager.cs.

◆ CreateDialogueBehavior()

void Barotrauma.MentalStateManager.CreateDialogueBehavior ( MentalType  mentalType)

Definition at line 168 of file MentalStateManager.cs.

◆ Update()

void Barotrauma.MentalStateManager.Update ( float  deltaTime)

Definition at line 37 of file MentalStateManager.cs.

Property Documentation

◆ Active

bool Barotrauma.MentalStateManager.Active
getset

Definition at line 18 of file MentalStateManager.cs.

◆ CurrentMentalType

MentalType Barotrauma.MentalStateManager.CurrentMentalType
get

Definition at line 19 of file MentalStateManager.cs.