View Javadoc
1   package org.woehlke.simulation.evolution.model;
2   
3   /**
4    * (C) 2006 - 2008 Thomas Woehlke.
5    * http://thomas-woehlke.de/p/simulated-evolution/
6    * @author Thomas Woehlke
7    * Date: 04.02.2006
8    * Time: 19:50:51
9    */
10  public enum Dna {
11  
12      FORWARD(0, 2),
13      HARD_RIGHT(2, 1),
14      SOFT_RIGHT(2, -1),
15      BACKWARDS(0, -2),
16      SOFT_LEFT(-2, -1),
17      HARD_LEFT(-2, 1);
18  
19      private Point move;
20  
21      public Point getMove() {
22          return move;
23      }
24  
25      private Dna(int x,int y){
26          move = new Point(x,y);
27      }
28  
29  }