Added Scatter-strategy
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
package se.urmo.game.state;
|
||||
|
||||
import lombok.Getter;
|
||||
import se.urmo.game.main.Game;
|
||||
|
||||
import java.awt.*;
|
||||
@ -9,6 +10,7 @@ import java.util.Map;
|
||||
public class GameStateManager {
|
||||
private final Game game;
|
||||
private Map<GameStateType, GameState> states = new HashMap<>();
|
||||
@Getter
|
||||
private GameState currentState;
|
||||
|
||||
public GameStateManager(Game game) {
|
||||
@ -28,8 +30,4 @@ public class GameStateManager {
|
||||
public void render(Graphics2D g) {
|
||||
currentState.render(g);
|
||||
}
|
||||
|
||||
public GameState getCurrentState() {
|
||||
return currentState;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user