Initial commit
This commit is contained in:
26
src/com/hobogames/Handler.java
Normal file
26
src/com/hobogames/Handler.java
Normal file
@ -0,0 +1,26 @@
|
||||
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();}
|
||||
|
||||
}
|
Reference in New Issue
Block a user