C# Class Dwarrowdelf.AI.AssignmentAI

Inheritance: IAI
Show file Open project: tomba/dwarrowdelf

Protected Properties

Property Type Description
trace MyTraceProxy

Private Properties

Property Type Description
OnPostDeserialization void

Public Methods

Method Description
Abort ( ) : void
ActionDone ( ActionDoneEvent e ) : void
ActionProgress ( ActionProgressEvent e ) : void
ActionStarted ( ActionStartEvent e ) : void
DecideAction ( ActionPriority priority ) : GameAction

return new or current GameAction, possibly overriding the current action, or null to abort the current action

Protected Methods

Method Description
AssignmentAI ( ILivingObject worker, int playerID ) : System
AssignmentAI ( SaveGameContext ctx ) : System
ClearCurrentAssignment ( ) : void
GetNewOrCurrentAssignment ( ActionPriority priority ) : IAssignment

return new or current assignment, or null to cancel current assignment, or do nothing if no current assignment

JobStatusChangedOverride ( IJob job, JobStatus status ) : void
OnJobStatusChanged ( IJob job, JobStatus status ) : void
SetCurrentAssignment ( IAssignment assignment, ActionPriority priority ) : void

Private Methods

Method Description
OnPostDeserialization ( ) : void

Method Details

Abort() public method

public Abort ( ) : void
return void

ActionDone() public method

public ActionDone ( ActionDoneEvent e ) : void
e ActionDoneEvent
return void

ActionProgress() public method

public ActionProgress ( ActionProgressEvent e ) : void
e ActionProgressEvent
return void

ActionStarted() public method

public ActionStarted ( ActionStartEvent e ) : void
e ActionStartEvent
return void

AssignmentAI() protected method

protected AssignmentAI ( ILivingObject worker, int playerID ) : System
worker ILivingObject
playerID int
return System

AssignmentAI() protected method

protected AssignmentAI ( SaveGameContext ctx ) : System
ctx SaveGameContext
return System

ClearCurrentAssignment() protected method

protected ClearCurrentAssignment ( ) : void
return void

DecideAction() public method

return new or current GameAction, possibly overriding the current action, or null to abort the current action
public DecideAction ( ActionPriority priority ) : GameAction
priority ActionPriority
return GameAction

GetNewOrCurrentAssignment() protected abstract method

return new or current assignment, or null to cancel current assignment, or do nothing if no current assignment
protected abstract GetNewOrCurrentAssignment ( ActionPriority priority ) : IAssignment
priority ActionPriority
return IAssignment

JobStatusChangedOverride() protected method

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

OnJobStatusChanged() protected method

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

SetCurrentAssignment() protected method

protected SetCurrentAssignment ( IAssignment assignment, ActionPriority priority ) : void
assignment IAssignment
priority ActionPriority
return void

Property Details

trace protected property

protected MyTraceProxy trace
return MyTraceProxy