Restructuring
This commit is contained in:
17
src/main/java/se/urmo/game/util/Direction.java
Normal file
17
src/main/java/se/urmo/game/util/Direction.java
Normal file
@ -0,0 +1,17 @@
|
||||
package se.urmo.game.util;
|
||||
|
||||
public enum Direction {
|
||||
RIGHT(1, 0),
|
||||
LEFT(-1, 0),
|
||||
DOWN(0, 1),
|
||||
UP(0, -1),
|
||||
NONE(0, 0);
|
||||
|
||||
public final int dx;
|
||||
public final int dy;
|
||||
|
||||
Direction(int dx, int dy) {
|
||||
this.dx = dx;
|
||||
this.dy = dy;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user