Added remaining ghosts incl. movment-strategies
This commit is contained in:
@ -0,0 +1,12 @@
|
||||
package se.urmo.game.entities;
|
||||
|
||||
import se.urmo.game.map.GameMap;
|
||||
|
||||
import java.awt.Point;
|
||||
|
||||
public class ScatterToBottomRight implements GhostStrategy {
|
||||
@Override
|
||||
public Point chooseTarget(Ghost ghost, PacMan pacman, GameMap map) {
|
||||
return new Point(map.getHeight() - 1, map.getHeight() - 1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user