|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjurpe.dungeon.rpgmap.MapTiles
public class MapTiles
Constructor Summary | |
---|---|
MapTiles(short width,
short height)
Constructor |
Method Summary | |
---|---|
boolean |
areAllVisitedCells()
Returns true if all cells in the map were visited |
Cell |
getCell(HexPoint p)
Get a MapCell in p point hexagon coordinates |
Cell |
getCell(short x,
short y)
Get a cell |
short |
getHeight()
Height of RpgMap in Hexagons |
Cell |
getRandomCell(java.util.Random rndgen)
Get a random RpgMapCell |
short |
getWidth()
Width of RpgMap in Hexagons |
boolean |
isInside(RpgMapPoint position)
Returns true if the position is inside the RpgMap width and height |
boolean |
isInside(short x,
short y)
Returns true if the position is inside the RpgMap width and height |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapTiles(short width, short height)
width
- map widthheight
- map heightMethod Detail |
---|
public Cell getCell(short x, short y)
x
- X coordinate of celly
- Y coordinate of cell
public Cell getCell(HexPoint p)
p
- Point coordinates of hexagon
public short getWidth()
public short getHeight()
public Cell getRandomCell(java.util.Random rndgen)
rndgen
- Random seed
public boolean isInside(RpgMapPoint position)
position
- Point coordinates of an hexagon
public boolean isInside(short x, short y)
x
- X coordinate of an hexagony
- Y coordinate of an hexagon
public boolean areAllVisitedCells()
|
Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |