C# Class HPASharp.Program.FakePassability

Inheritance: IPassability
Mostrar archivo Open project: Rydra/HierarchicalPathfinder

Public Methods

Method Description
CanEnter ( Position pos, int &cost ) : bool
FakePassability ( int width, int height ) : System

Private Methods

Method Description
ConflictDiag ( int row, int col, int roff, int coff, int width, int height ) : bool
CreateObstacles ( float obstaclePercentage, int width, int height, bool avoidDiag = false ) : void

Creates obstacles in the map

Method Details

CanEnter() public method

public CanEnter ( Position pos, int &cost ) : bool
pos Position
cost int
return bool

FakePassability() public method

public FakePassability ( int width, int height ) : System
width int
height int
return System