package Model;

import java.awt.Point;

public class Ant {

	private AntType type;
	public int lastDir;
	public Point position;
	
	public Ant(AntType type) {
		this.type = type;
	}
	
	public void moveOneStep() {
		
	}
}

@@ -53,16 +53,47 @@
  Ant %7B%0A%0A
+    private Universe universe;%0A
 %09private
@@ -154,17 +154,20 @@
 tion;%0A%09%0A
-%09
+    
 public A
@@ -169,16 +169,35 @@
 lic Ant(
+Universe universe, 
 AntType 
@@ -228,41 +228,549 @@
 pe;%0A
-%09%7D%0A%09%0A%09public void moveOneStep() %7B
+                this.universe = universe;%0A%09%7D%0A%09%0A%09public void moveOneStep() %7B%0A%0A            int curDir = lastDir;%0A%0A            lastDir = type.getMove(curDir,universe.world.get(position));%0A            universe.world.put(position, type.getState(curDir,universe.get(position)));%0A%0A            switch(curDir)%7B%0A                case 0: position.translate(1,0); break;%0A                case 1: position.translate(-1,0); break;%0A                case 2: position.translate(0,-1); break;%0A                case 3: position.translate(0,1); break;%0A            %7D
 %0A%09%09%0A

Implement Ant.moveOneStep()