Minor changes
This commit is contained in:
@ -99,12 +99,10 @@ public class Ghost extends BaseAnimated {
|
||||
|
||||
private void updatePosition(PacMan pacman, GameMap map) {
|
||||
if (map.isAligned(new Point((int) position.x, (int) position.y))) {
|
||||
log.info("Evaluating possible directions");
|
||||
prevDirection = direction;
|
||||
direction = chooseDirection(
|
||||
prioritize(collisionChecker.calculateDirectionAlternatives(position)),
|
||||
currentStrategy.chooseTarget(this, pacman, map));
|
||||
log.info("selecting direction {}", direction);
|
||||
}
|
||||
|
||||
moveTo(getNewPosition());
|
||||
|
||||
Reference in New Issue
Block a user