org.deken.game.utils
Class LocationUtils

java.lang.Object
  extended by org.deken.game.utils.LocationUtils

public class LocationUtils
extends java.lang.Object

Title: NodeUtils

Description: TODO

Copyright: Copyright (c) Apr 14, 2012

Version:
1.0
Author:
Gary Deken

Field Summary
static int X_KEY
           
 
Constructor Summary
LocationUtils()
           
 
Method Summary
static int getLocationInt(int x, int y)
          Converts an X and Y location into a single String location.
static java.lang.String getLocationKey(int x, int y)
          Converts an X and Y location into a single String location.
static int getXFromLocationKey(int location)
           
static int getYFromLocationKey(int location)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

X_KEY

public static final int X_KEY
See Also:
Constant Field Values
Constructor Detail

LocationUtils

public LocationUtils()
Method Detail

getLocationKey

public static java.lang.String getLocationKey(int x,
                                              int y)
Converts an X and Y location into a single String location.

Parameters:
x -
y -
Returns:
String

getLocationInt

public static int getLocationInt(int x,
                                 int y)
Converts an X and Y location into a single String location.

Parameters:
x -
y -
Returns:
int

getXFromLocationKey

public static int getXFromLocationKey(int location)

getYFromLocationKey

public static int getYFromLocationKey(int location)