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