public class NavigationTiledMapLayer
extends com.badlogic.gdx.maps.MapLayer
implements org.xguzm.pathfinding.grid.NavigationGridGraph<org.xguzm.pathfinding.grid.GridCell>
| Constructor and Description |
|---|
NavigationTiledMapLayer() |
NavigationTiledMapLayer(org.xguzm.pathfinding.grid.GridCell[][] nodes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(int x,
int y) |
org.xguzm.pathfinding.grid.GridCell |
getCell(int x,
int y) |
int |
getHeight() |
float |
getMovementCost(org.xguzm.pathfinding.grid.GridCell node1,
org.xguzm.pathfinding.grid.GridCell node2,
org.xguzm.pathfinding.PathFinderOptions opt) |
java.util.List<org.xguzm.pathfinding.grid.GridCell> |
getNeighbors(org.xguzm.pathfinding.grid.GridCell node) |
java.util.List<org.xguzm.pathfinding.grid.GridCell> |
getNeighbors(org.xguzm.pathfinding.grid.GridCell node,
org.xguzm.pathfinding.PathFinderOptions opt) |
org.xguzm.pathfinding.grid.GridCell[][] |
getNodes() |
int |
getWidth() |
boolean |
isWalkable(org.xguzm.pathfinding.grid.GridCell node) |
boolean |
isWalkable(int x,
int y) |
boolean |
lineOfSight(org.xguzm.pathfinding.NavigationNode from,
org.xguzm.pathfinding.NavigationNode to) |
void |
setCell(int x,
int y,
org.xguzm.pathfinding.grid.GridCell node) |
void |
setHeight(int height) |
void |
setNodes(org.xguzm.pathfinding.grid.GridCell[][] nodes) |
void |
setWalkable(int x,
int y,
boolean walkable) |
void |
setWidth(int width) |
public NavigationTiledMapLayer()
public NavigationTiledMapLayer(org.xguzm.pathfinding.grid.GridCell[][] nodes)
public void setCell(int x,
int y,
org.xguzm.pathfinding.grid.GridCell node)
setCell in interface org.xguzm.pathfinding.grid.NavigationGridGraph<org.xguzm.pathfinding.grid.GridCell>public java.util.List<org.xguzm.pathfinding.grid.GridCell> getNeighbors(org.xguzm.pathfinding.grid.GridCell node)
getNeighbors in interface org.xguzm.pathfinding.NavigationGraph<org.xguzm.pathfinding.grid.GridCell>public java.util.List<org.xguzm.pathfinding.grid.GridCell> getNeighbors(org.xguzm.pathfinding.grid.GridCell node,
org.xguzm.pathfinding.PathFinderOptions opt)
getNeighbors in interface org.xguzm.pathfinding.NavigationGraph<org.xguzm.pathfinding.grid.GridCell>public float getMovementCost(org.xguzm.pathfinding.grid.GridCell node1,
org.xguzm.pathfinding.grid.GridCell node2,
org.xguzm.pathfinding.PathFinderOptions opt)
getMovementCost in interface org.xguzm.pathfinding.NavigationGraph<org.xguzm.pathfinding.grid.GridCell>public boolean isWalkable(org.xguzm.pathfinding.grid.GridCell node)
isWalkable in interface org.xguzm.pathfinding.NavigationGraph<org.xguzm.pathfinding.grid.GridCell>public org.xguzm.pathfinding.grid.GridCell getCell(int x,
int y)
getCell in interface org.xguzm.pathfinding.grid.NavigationGridGraph<org.xguzm.pathfinding.grid.GridCell>public boolean contains(int x,
int y)
contains in interface org.xguzm.pathfinding.grid.NavigationGridGraph<org.xguzm.pathfinding.grid.GridCell>public void setWalkable(int x,
int y,
boolean walkable)
setWalkable in interface org.xguzm.pathfinding.grid.NavigationGridGraph<org.xguzm.pathfinding.grid.GridCell>public boolean isWalkable(int x,
int y)
isWalkable in interface org.xguzm.pathfinding.grid.NavigationGridGraph<org.xguzm.pathfinding.grid.GridCell>public org.xguzm.pathfinding.grid.GridCell[][] getNodes()
getNodes in interface org.xguzm.pathfinding.grid.NavigationGridGraph<org.xguzm.pathfinding.grid.GridCell>public void setNodes(org.xguzm.pathfinding.grid.GridCell[][] nodes)
setNodes in interface org.xguzm.pathfinding.grid.NavigationGridGraph<org.xguzm.pathfinding.grid.GridCell>public int getWidth()
getWidth in interface org.xguzm.pathfinding.grid.NavigationGridGraph<org.xguzm.pathfinding.grid.GridCell>public void setWidth(int width)
setWidth in interface org.xguzm.pathfinding.grid.NavigationGridGraph<org.xguzm.pathfinding.grid.GridCell>public int getHeight()
getHeight in interface org.xguzm.pathfinding.grid.NavigationGridGraph<org.xguzm.pathfinding.grid.GridCell>public void setHeight(int height)
setHeight in interface org.xguzm.pathfinding.grid.NavigationGridGraph<org.xguzm.pathfinding.grid.GridCell>public boolean lineOfSight(org.xguzm.pathfinding.NavigationNode from,
org.xguzm.pathfinding.NavigationNode to)
lineOfSight in interface org.xguzm.pathfinding.NavigationGraph<org.xguzm.pathfinding.grid.GridCell>