Added only possible directions to TurnSquares. Should test it though...
[AntiTD.git] / src / se / umu / cs / dit06ajnajs / map / PathSquare.java
blobbd6d98cbcde53de9393c7d9c983eb701a52eac45
1 package se.umu.cs.dit06ajnajs.map;
3 import java.awt.Image;
4 import java.util.logging.Logger;
6 import se.umu.cs.dit06ajnajs.agent.Unit;
9 public class PathSquare extends MapSquare implements Traversable {
10 private static Logger logger = Logger.getLogger("AntiTD");
12 public PathSquare(int x, int y, Image img) {
13 super(x, y, img);
16 public void landOn(Unit unit) {
17 // DONE: Woha a unit is here, I should tell all my towers!
18 logger.info("Unit >" + unit.getClass().getSimpleName() +
19 "< landed on pathsquare. Notifying observers...");
20 setChanged();
21 notifyObservers(unit);