package dungeonmania.util;
public enum Direction {
UP(0, -1),
Copyright By Assignmentchef assignmentchef
DOWN(0, 1),
LEFT(-1, 0),
RIGHT(1, 0),
NONE(0, 0);
private final Position offset;
private Direction(Position offset) {
this.offset = offset;
private Direction(int x, int y) {
this.offset = new Position(x, y);
public Position getOffset() {
return this.offset;
CS: assignmentchef QQ: 1823890830 Email: [email protected]
Reviews
There are no reviews yet.