public class NetDirectionalLocation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) Direction |
direction |
(package private) int |
x |
(package private) int |
y |
Constructor and Description |
---|
NetDirectionalLocation()
Default constructor, sets x and y to 0 and direction to null
|
Modifier and Type | Method and Description |
---|---|
Direction |
getDirection() |
int |
getX() |
int |
getY() |
void |
setDirection(Direction direction) |
void |
setX(int x) |
void |
setY(int y) |
int x
int y
Direction direction
public NetDirectionalLocation()
public int getX()
public void setX(int x)
x
- the x to setpublic int getY()
public void setY(int y)
y
- the y to setpublic Direction getDirection()
public void setDirection(Direction direction)
direction
- the direction to set