|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jurpe.dungeon.hexmap.HexMapView
public class HexMapView
The HexMapView class offers methods related to HexMap and RpgMap classes.
Constructor Summary | |
---|---|
HexMapView(HexMap sHexMap,
RpgMap sRpgMap)
|
Method Summary | |
---|---|
RpgMapPoint |
getDisplayableCenter()
Get the coordinates of the center in the view map as a RgpMapCell |
Cell |
getDisplayableEmptyRandomCell(java.util.Random rnd,
boolean nextToCenter)
Get a random cell in this map. |
Drawer |
getDrawer()
Handle to Map drawer tool |
HexMap |
getHexMap()
Get the HexMap control to show this view |
MapView |
getMapView()
Get Map View |
RpgMapPoint |
getRandomDisplayablePoint(java.util.Random rndgen)
Get a random RpgMapPoint inside RpgMapView |
RpgMap |
getRpgMap()
Get the RpgMap associated to this view |
boolean |
isOnTheEdge(RpgMapPoint p)
Return true if the point is over the edge of this view. |
void |
reloadRpgMap(RpgMap map)
Reload RpgMap into the HexMapView |
java.lang.String |
toString()
ToString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HexMapView(HexMap sHexMap, RpgMap sRpgMap)
sHexMap
- HexMapsRpgMap
- RpgMapMethod Detail |
---|
public RpgMap getRpgMap()
public void reloadRpgMap(RpgMap map)
map
- public HexMap getHexMap()
public Drawer getDrawer()
public RpgMapPoint getRandomDisplayablePoint(java.util.Random rndgen)
rndgen
- Random seed
public Cell getDisplayableEmptyRandomCell(java.util.Random rnd, boolean nextToCenter)
rnd
- Random generatornextToCenter
- if true, it will try to return a cell next to the center of
the dungeon
public RpgMapPoint getDisplayableCenter()
public MapView getMapView()
public boolean isOnTheEdge(RpgMapPoint p)
public java.lang.String toString()
toString
in class java.lang.Object
|
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 |