game logic fixed by tips of johan

This commit is contained in:
Remco
2015-06-04 13:20:46 +02:00
parent 76a41dbbd1
commit 1bf525c6b7
16 changed files with 266 additions and 263 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ import java.awt.Color;
import java.awt.geom.Line2D;
import java.util.ArrayDeque;
import model.drawObjects.enemy.Enemy;
import model.drawObjects.Enemy;
public class Path extends Line2D.Double {
@@ -29,6 +29,6 @@ public class Path extends Line2D.Double {
public void addEnemy(Color c, int pathID, int length)
{
enemysInPath.addLast(new Enemy(pathID, length, c, 100, getP1(), getP2()));
enemysInPath.addLast(new Enemy(pathID, length, c,this));
}
}