package objects; public class Point { short x; short y; short direction; public Point(short x, short y, short direction) { this.x = x; this.y = y; this.direction = direction; } public void setDirection(short d) { this.direction = d; } public void setX(short x) { this.x = x; } public void setY(short y) { this.y = y; } public short getDirection() { return this.direction; } public short getX() { return this.x; } public short getY() { return this.y; } }