C# Class VacuumCleaner.Agents.ModelAgentNoIdle

Inheritance: IAgent
Mostrar archivo Open project: Troilk/VacuumCleaner

Public Methods

Method Description
Perceive ( Environment env ) : void
Think ( ) : ActionType

Private Methods

Method Description
GetPathToGrey ( ) : void

A* to generate path to nearest grey tile

GreyExists ( ) : bool

Check if map contains grey tiles

NearestGrey ( Point currentPos ) : int

Get nearest grey tile evaluated by Manhattan distance

Phase1Iteration ( ) : ActionType

Map discovery phase

Phase2Iteration ( ) : ActionType

Iteration on explored map

Method Details

Perceive() public method

public Perceive ( Environment env ) : void
env VacuumCleaner.Env.Environment
return void

Think() public method

public Think ( ) : ActionType
return ActionType