C# Class Dwarrowdelf.Server.Fortress.DwarfAI

Inheritance: Dwarrowdelf.AI.AssignmentAI, IJobObserver
Mostrar archivo Open project: tomba/dwarrowdelf

Public Methods

Method Description
DwarfAI ( ILivingObject ob, EnvObserver envObserver, int playerID ) : System
OnObservableJobStatusChanged ( IJob job, JobStatus status ) : void

Protected Methods

Method Description
GetNewOrCurrentAssignment ( ActionPriority priority ) : IAssignment
JobStatusChangedOverride ( IJob job, JobStatus status ) : void

Private Methods

Method Description
CreateDrinkAssignmentIfNeeded ( ILivingObject worker, ActionPriority priority ) : IAssignment
CreateEatAssignmentIfNeeded ( ILivingObject worker, ActionPriority priority ) : IAssignment
CreateSleepAssignmentIfNeeded ( ILivingObject worker, ActionPriority priority ) : IAssignment
DwarfAI ( SaveGameContext ctx ) : System

Method Details

DwarfAI() public method

public DwarfAI ( ILivingObject ob, EnvObserver envObserver, int playerID ) : System
ob ILivingObject
envObserver EnvObserver
playerID int
return System

GetNewOrCurrentAssignment() protected method

protected GetNewOrCurrentAssignment ( ActionPriority priority ) : IAssignment
priority ActionPriority
return IAssignment

JobStatusChangedOverride() protected method

protected JobStatusChangedOverride ( IJob job, JobStatus status ) : void
job IJob
status JobStatus
return void

OnObservableJobStatusChanged() public method

public OnObservableJobStatusChanged ( IJob job, JobStatus status ) : void
job IJob
status JobStatus
return void