|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpath.SearchGrid
public class SearchGrid
This class represents the grid that contains the walkable area of a game location
| Constructor Summary | |
|---|---|
SearchGrid(java.awt.image.BufferedImage imgWalkable,
java.util.ArrayList<Item> items,
java.util.ArrayList<InteractiveHotspot> ihs,
int gridNodeSize)
Creates a new search grid out of the specified walkable area image |
|
| Method Summary | |
|---|---|
GridNode |
getGridNode(double x,
double y)
Returns the grid node at the specified coordinates |
GridNode[][] |
getGridNodes()
Returns the 2 dimensional array of grid nodes representing the search grid. |
int |
getGridNodeSize()
Returns the size of a grid node square |
java.awt.image.BufferedImage |
getImageWalkable()
Returns the image containing the walkable area of the search grid |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SearchGrid(java.awt.image.BufferedImage imgWalkable,
java.util.ArrayList<Item> items,
java.util.ArrayList<InteractiveHotspot> ihs,
int gridNodeSize)
imgWalkable - image containing the walkable areagridNodeSize - width and height for the square of a grid node, this
must be a power of 2| Method Detail |
|---|
public int getGridNodeSize()
public GridNode[][] getGridNodes()
public java.awt.image.BufferedImage getImageWalkable()
public GridNode getGridNode(double x,
double y)
x - x coordinatey - y coordinate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||