Class Position
java.lang.Object
Position
public class Position
- extends java.lang.Object
|
Field Summary |
private int |
direction
|
private int |
newX
|
private int |
newY
|
private int |
x
|
private int |
y
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
x
private int x
y
private int y
direction
private int direction
newX
private int newX
newY
private int newY
Position
public Position(int x,
int y,
int direction)
Position
public Position(Position p)
getDirection
public int getDirection()
getX
public int getX()
getY
public int getY()
setDirection
public void setDirection(int direction)
setX
public void setX(int x)
setY
public void setY(int y)
mapToScreen
public Position mapToScreen(java.awt.Dimension screenSize,
Coco c)
screenToMap
public Position screenToMap(java.awt.Dimension screenSize,
java.awt.Dimension mapSize,
Coco c)