1 package org.woehlke.computer.kurzweil.tabs.randomwalk.canvas; 2 3 import org.woehlke.computer.kurzweil.commons.model.LatticePoint; 4 5 public enum ParticleOrientation { 6 7 UP(0, -1), 8 UP_RIGHT(1, -1), 9 RIGHT(1, 0), 10 DOWN_RIGHT(1, 1), 11 DOWN(0, 1), 12 DOWN_LEFT(-1, 1), 13 LEFT(-1, 0), 14 UP_LEFT(-1, -1); 15 16 private LatticePoint move; 17 18 public LatticePoint getMove() { 19 return move; 20 } 21 22 ParticleOrientation(int x, int y) { 23 move = new LatticePoint(x, y); 24 } 25 }