2017-11-06 10:55:21 -07:00

26 lines
709 B
Java

package build.com.hobogames;
import build.com.hobogames.states.*;
import build.com.hobogames.gameobj.entities.humans.Player;
import java.util.Random;
import java.util.Scanner;
public class Handler {
private Game game;
public Random rand;
public Scanner sc;
public Handler(Game game) {
this.game = game;
this.rand = new Random();
sc = new Scanner(System.in);
}
public Game getGame() {return game;}
public boolean getGameOn() {return game.getGameOn();}
public MenuState getMenuState() {return game.getMenuState();}
public PlayState getPlayState() {return game.getPlayState();}
public Player getPlayer() {return getPlayState().getPlayer();}
}