M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
SandBox.BoardGames.AI.BoardGameAIBase Class Referenceabstract

Inherited by SandBox.BoardGames.AI.BoardGameAIBaghChal, SandBox.BoardGames.AI.BoardGameAIKonane, SandBox.BoardGames.AI.BoardGameAIMuTorere, SandBox.BoardGames.AI.BoardGameAIPuluc, SandBox.BoardGames.AI.BoardGameAISeega, and SandBox.BoardGames.AI.BoardGameAITablut.

Public Types

enum  AIState {
  NeedsToRun ,
  ReadyToRun ,
  Running ,
  AbortRequested ,
  Aborted ,
  Done
}
 

Public Member Functions

virtual Move CalculatePreMovementStageMove ()
 
abstract Move CalculateMovementStageMove ()
 
virtual bool WantsToForfeit ()
 
void OnSetGameOver ()
 
void Initialize ()
 
void SetDifficulty (BoardGameHelper.AIDifficulty difficulty)
 
float HowLongDidAIThinkAboutMove ()
 
void UpdateThinkingAboutMove (float dt)
 
void ResetThinking ()
 
bool CanMakeMove ()
 

Protected Member Functions

 BoardGameAIBase (BoardGameHelper.AIDifficulty difficulty, MissionBoardGameLogic boardGameHandler)
 
abstract void InitializeDifficulty ()
 

Protected Attributes

bool MayForfeit
 
int MaxDepth
 

Properties

AIState State [get]
 
Move RecentMoveCalculated [get]
 
bool AbortRequested [get]
 
BoardGameHelper.AIDifficulty Difficulty [get]
 
MissionBoardGameLogic BoardGameHandler [get]
 

Member Enumeration Documentation

◆ AIState

Enumerator
NeedsToRun 
ReadyToRun 
Running 
AbortRequested 
Aborted 
Done 

Constructor & Destructor Documentation

◆ BoardGameAIBase()

SandBox.BoardGames.AI.BoardGameAIBase.BoardGameAIBase ( BoardGameHelper::AIDifficulty  difficulty,
MissionBoardGameLogic  boardGameHandler 
)
protected

Member Function Documentation

◆ CalculatePreMovementStageMove()

virtual Move SandBox.BoardGames.AI.BoardGameAIBase.CalculatePreMovementStageMove ( )
virtual

◆ CalculateMovementStageMove()

◆ InitializeDifficulty()

◆ WantsToForfeit()

virtual bool SandBox.BoardGames.AI.BoardGameAIBase.WantsToForfeit ( )
virtual

◆ OnSetGameOver()

void SandBox.BoardGames.AI.BoardGameAIBase.OnSetGameOver ( )

◆ Initialize()

void SandBox.BoardGames.AI.BoardGameAIBase.Initialize ( )

◆ SetDifficulty()

void SandBox.BoardGames.AI.BoardGameAIBase.SetDifficulty ( BoardGameHelper::AIDifficulty  difficulty)

◆ HowLongDidAIThinkAboutMove()

float SandBox.BoardGames.AI.BoardGameAIBase.HowLongDidAIThinkAboutMove ( )

◆ UpdateThinkingAboutMove()

void SandBox.BoardGames.AI.BoardGameAIBase.UpdateThinkingAboutMove ( float  dt)

◆ ResetThinking()

void SandBox.BoardGames.AI.BoardGameAIBase.ResetThinking ( )

◆ CanMakeMove()

bool SandBox.BoardGames.AI.BoardGameAIBase.CanMakeMove ( )

Member Data Documentation

◆ MayForfeit

bool SandBox.BoardGames.AI.BoardGameAIBase.MayForfeit
protected

◆ MaxDepth

int SandBox.BoardGames.AI.BoardGameAIBase.MaxDepth
protected

Property Documentation

◆ State

AIState SandBox.BoardGames.AI.BoardGameAIBase.State
get

◆ RecentMoveCalculated

Move SandBox.BoardGames.AI.BoardGameAIBase.RecentMoveCalculated
get

◆ AbortRequested

bool SandBox.BoardGames.AI.BoardGameAIBase.AbortRequested
get

◆ Difficulty

BoardGameHelper.AIDifficulty SandBox.BoardGames.AI.BoardGameAIBase.Difficulty
getprotected

◆ BoardGameHandler

MissionBoardGameLogic SandBox.BoardGames.AI.BoardGameAIBase.BoardGameHandler
getprotected