Minor fixes
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
package se.urmo.game.entities.ghost;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import se.urmo.game.collision.GhostCollisionChecker;
|
||||
import se.urmo.game.entities.BaseAnimated;
|
||||
@ -39,6 +40,7 @@ public class Ghost extends BaseAnimated {
|
||||
private final LevelManager levelManager;
|
||||
private static final BufferedImage[] eatenAnimation = SpriteSheetManager.get(SpriteLocation.GHOST).getAnimation(9);
|
||||
private double speed;
|
||||
@Getter
|
||||
private MyPoint position;
|
||||
|
||||
private final GhostStrategy scaterStrategy;
|
||||
@ -236,10 +238,6 @@ public class Ghost extends BaseAnimated {
|
||||
this.speed = BASE_SPEED * levelManager.getGhostSpeed();
|
||||
}
|
||||
|
||||
public Point getPosition() {
|
||||
return new Point((int) position.x, (int) position.y);
|
||||
}
|
||||
|
||||
public boolean isEaten() {
|
||||
return mode == GhostMode.EATEN;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user