Rudimentary colisioncheck
This commit is contained in:
@ -27,6 +27,7 @@ public class Ghost {
|
||||
|
||||
private final GhostCollisionChecker collisionChecker;
|
||||
private final GhostStrategy chaseStrategy;
|
||||
private final Point startPos;
|
||||
@Getter
|
||||
private Point position;
|
||||
|
||||
@ -50,7 +51,7 @@ public class Ghost {
|
||||
position = new Point(
|
||||
13 * GameMap.MAP_TILESIZE + GameMap.OFFSET_X + (GameMap.MAP_TILESIZE / 2),
|
||||
4 * GameMap.MAP_TILESIZE + GameMap.OFFSET_Y + (GameMap.MAP_TILESIZE / 2) );
|
||||
|
||||
startPos = position;
|
||||
this.currentStrategy = chaseStrategy;
|
||||
}
|
||||
|
||||
@ -195,4 +196,11 @@ public class Ghost {
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isFrightened() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public void resetPosition() {
|
||||
position = startPos;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user