rlgamekit.map.display
Class PlainTileLocator

java.lang.Object
  extended by rlgamekit.map.display.PlainTileLocator
All Implemented Interfaces:
TileLocator

public class PlainTileLocator
extends java.lang.Object
implements TileLocator

Calculates tile positions for rectangular maps.


Constructor Summary
PlainTileLocator(int dx, int dy)
           
 
Method Summary
 int getCursorX()
           
 int getCursorY()
           
 int getRasterX()
           
 int getRasterY()
           
 int getTileScreenX(int x, int y)
           
 int getTileScreenY(int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainTileLocator

public PlainTileLocator(int dx,
                        int dy)
Method Detail

getRasterX

public int getRasterX()
Specified by:
getRasterX in interface TileLocator

getRasterY

public int getRasterY()
Specified by:
getRasterY in interface TileLocator

getCursorX

public int getCursorX()
Specified by:
getCursorX in interface TileLocator

getCursorY

public int getCursorY()
Specified by:
getCursorY in interface TileLocator

getTileScreenX

public int getTileScreenX(int x,
                          int y)
Specified by:
getTileScreenX in interface TileLocator

getTileScreenY

public int getTileScreenY(int x,
                          int y)
Specified by:
getTileScreenY in interface TileLocator