1 package org.woehlke.computer.kurzweil.tabs.simulatedevolution.model; 2 3 import lombok.extern.log4j.Log4j2; 4 5 /** 6 * Orientation defines the new position after next move. 7 * 8 * © 2006 - 2008 Thomas Woehlke. 9 * http://thomas-woehlke.de/p/simulated-evolution/ 10 * @author Thomas Woehlke 11 * Date: 04.02.2006 12 * Time: 19:50:51 13 */ 14 @Log4j2 15 public enum Orientation { 16 17 FORWARD(0, 2), 18 HARD_RIGHT(2, 1), 19 SOFT_RIGHT(2, -1), 20 BACKWARDS(0, -2), 21 SOFT_LEFT(-2, -1), 22 HARD_LEFT(-2, 1); 23 24 private WorldPoint move; 25 26 public WorldPoint getMove() { 27 return move; 28 } 29 30 private Orientation(int x, int y){ 31 move = new WorldPoint(x,y); 32 } 33 34 }