Added remaining ghosts incl. movment-strategies
This commit is contained in:
@ -6,7 +6,7 @@ import java.awt.Point;
|
||||
|
||||
public class ScatterToTopRight implements GhostStrategy{
|
||||
@Override
|
||||
public Point chooseTarget(PacMan pacman, GameMap map) {
|
||||
return new Point((map.columns() -1) * GameMap.MAP_TILESIZE, 0);
|
||||
public Point chooseTarget(Ghost ghost, PacMan pacman, GameMap map) {
|
||||
return new Point((map.columns() -1) * GameMap.MAP_TILESIZE + GameMap.OFFSET_X, 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user