public class

AStarPathFinder

extends Object
implements IPathFinder<T>
java.lang.Object
   ↳ org.anddev.andengine.util.path.astar.AStarPathFinder<T>

Class Overview

(c) 2010 Nicolas Gramlich (c) 2011 Zynga Inc.

Summary

Public Constructors
AStarPathFinder(ITiledMap<T> pTiledMap, int pMaxSearchDepth, boolean pAllowDiagonalMovement)
AStarPathFinder(ITiledMap<T> pTiledMap, int pMaxSearchDepth, boolean pAllowDiagonalMovement, IAStarHeuristic<T> pAStarHeuristic)
Public Methods
Path findPath(T pEntity, int pMaxCost, int pFromTileColumn, int pFromTileRow, int pToTileColumn, int pToTileRow)
Protected Methods
boolean isTileBlocked(T pEntity, int pFromTileColumn, int pFromTileRow, int pToTileColumn, int pToTileRow)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.anddev.andengine.util.path.IPathFinder

Public Constructors

public AStarPathFinder (ITiledMap<T> pTiledMap, int pMaxSearchDepth, boolean pAllowDiagonalMovement)

public AStarPathFinder (ITiledMap<T> pTiledMap, int pMaxSearchDepth, boolean pAllowDiagonalMovement, IAStarHeuristic<T> pAStarHeuristic)

Public Methods

public Path findPath (T pEntity, int pMaxCost, int pFromTileColumn, int pFromTileRow, int pToTileColumn, int pToTileRow)

Protected Methods

protected boolean isTileBlocked (T pEntity, int pFromTileColumn, int pFromTileRow, int pToTileColumn, int pToTileRow)