13 lines
333 B
Java
13 lines
333 B
Java
package se.urmo.game.entities;
|
|
|
|
import se.urmo.game.map.GameMap;
|
|
|
|
import java.awt.Point;
|
|
|
|
public class ScatterToTopRight implements GhostStrategy{
|
|
@Override
|
|
public Point chooseTarget(Ghost ghost, PacMan pacman, GameMap map) {
|
|
return new Point((map.columns() -1) * GameMap.MAP_TILESIZE + GameMap.OFFSET_X, 0);
|
|
}
|
|
}
|