C# Class Drought.Entity.AStar

Mostra file Open project: kiniry-teaching/UCD Class Usage Examples

Public Methods

Method Description
AStar ( LevelInfo level ) : System
computePath ( float startX, float startY, float endX, float endY, bool &pathFound ) : Path
initialise ( LevelInfo level ) : void
setTraversable ( int x, int y, bool value ) : void

Private Methods

Method Description
canMove ( Node a, Node b ) : bool
getNode ( int x, int y ) : Node
getSuccessors ( Node node ) : List

Method Details

AStar() public method

public AStar ( LevelInfo level ) : System
level Drought.World.LevelInfo
return System

computePath() public method

public computePath ( float startX, float startY, float endX, float endY, bool &pathFound ) : Path
startX float
startY float
endX float
endY float
pathFound bool
return Path

initialise() public method

public initialise ( LevelInfo level ) : void
level Drought.World.LevelInfo
return void

setTraversable() public method

public setTraversable ( int x, int y, bool value ) : void
x int
y int
value bool
return void