jurpe.dungeon.hexmap
Class HexMapMatrix

java.lang.Object
  extended by jurpe.dungeon.hexmap.HexMapMatrix

public class HexMapMatrix
extends java.lang.Object

X-Y matrix correspondent to hexagonal map.


Constructor Summary
HexMapMatrix(HexMap hexmap)
           
 
Method Summary
 short getHeight()
          Get map height in number of hexagons.
 short getWidth()
          Get map width in number of hexagons.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HexMapMatrix

public HexMapMatrix(HexMap hexmap)
Method Detail

getWidth

public short getWidth()
Get map width in number of hexagons. The number is comprehensive of the two half hexagons displayed left and right.

Returns:
map width in number of hexagons

getHeight

public short getHeight()
Get map height in number of hexagons. The number is comprehensive of the two half hexagons displayed up and down.

Returns:
map height in number of hexagons

Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net