org.deken.game.utils
Class LocationUtils
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
X_KEY
public static final int X_KEY
- See Also:
- Constant Field Values
LocationUtils
public LocationUtils()
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)