public class Player
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
int |
getX() |
|
int |
getY() |
|
void |
move(int xDirection,
int yDirection) |
Move player in certain direction and push boxes if needed.
|
void |
setX(int newX) |
|
void |
setY(int newY) |
public void move(int xDirection, int yDirection)
xDirection
- X direction of player's move.yDirection
- Y direction of player's move.public int getX()
public int getY()
public void setX(int newX)
public void setY(int newY)