|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
java.awt.Polygon |
buildHexagon()
Build a single hexagon. |
java.awt.Polygon |
buildHexagon(Coordinate coordinate)
Build an hexagon within a map. |
int |
computeHeight(int height)
Compute the height in pixels of a map consisting of given number of tiles height. |
int |
computeWidth(int width)
Compute the width in pixels of a map consisting of given number of tiles width. |
Coordinate |
fromPixel(java.awt.Point point,
IGrid grid)
Picks the coordinate at a given screen coordinate in a grid. |
Method Detail |
public java.awt.Polygon buildHexagon()
public java.awt.Polygon buildHexagon(Coordinate coordinate)
coordinate
- position of the hexagon
public int computeWidth(int width)
width
- a number of tiles
public int computeHeight(int height)
height
- a number of tiles
public Coordinate fromPixel(java.awt.Point point, IGrid grid)
point
- the screen coordinate in pixelsgrid
- the grid to look into
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |