package dungeonmania.util;
public enum Direction {
UP(0, -1),
Copyright By PowCoder代写 加微信 powcoder
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代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com