C# Class Drought.Entity.AStar

Afficher le fichier Open project: kiniry-teaching/UCD Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

AStar() public méthode

public AStar ( LevelInfo level ) : System
level Drought.World.LevelInfo
Résultat System

computePath() public méthode

public computePath ( float startX, float startY, float endX, float endY, bool &pathFound ) : Path
startX float
startY float
endX float
endY float
pathFound bool
Résultat Path

initialise() public méthode

public initialise ( LevelInfo level ) : void
level Drought.World.LevelInfo
Résultat void

setTraversable() public méthode

public setTraversable ( int x, int y, bool value ) : void
x int
y int
value bool
Résultat void