jurpe.dungeon.crawler
Class HexagonCalc

java.lang.Object
  extended by jurpe.dungeon.crawler.HexagonCalc

public class HexagonCalc
extends java.lang.Object


Constructor Summary
HexagonCalc()
           
 
Method Summary
 int getAdjustedX()
           
 int getAdjustedY()
           
 java.awt.Point getHexagonCenter()
          Hexagon center pixel coordinates
 int getHexagonX()
           
 int getHexagonY()
           
 int getHexcellType()
           
 int getHexpartX()
           
 int getHexpartY()
           
 java.lang.String getName()
          Get hexagon name
 void setHexagonHexparts(int x, int y)
          Set Hexagon parts
 void setPixels(int x, int y)
          Adjust info based on current pixels
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HexagonCalc

public HexagonCalc()
Method Detail

setPixels

public void setPixels(int x,
                      int y)
Adjust info based on current pixels

Parameters:
x -
y -

setHexagonHexparts

public void setHexagonHexparts(int x,
                               int y)
Set Hexagon parts

Parameters:
x -
y -

getHexagonCenter

public java.awt.Point getHexagonCenter()
Hexagon center pixel coordinates

Returns:
Hexagon center pixel coordinates

getName

public java.lang.String getName()
Get hexagon name

Returns:
hexagon name

getAdjustedX

public int getAdjustedX()

getAdjustedY

public int getAdjustedY()

getHexagonX

public int getHexagonX()

getHexagonY

public int getHexagonY()

getHexpartX

public int getHexpartX()

getHexpartY

public int getHexpartY()

getHexcellType

public int getHexcellType()

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