public void endGame() { //we're letting garabage collector clean up memory condition = new ReadyCondition(); //Change state correct_elevator = null; wrong_elevator = null; floors = null; player = null; }
public HauntedBuilding() { condition = new ReadyCondition(); difficulty = 0; //Maybe part of GameCondition? title = "Welcome to Haunted Building\n"; floors = null; player = null; correct_elevator = null; wrong_elevator = null; }
public Graphic startGame(GameState gs) { condition = new PlayingCondition(this); errorCheck(gs); setupDifficulty(gs); setupElevators(); setupFloors(gs); setupPlayer(gs); return new Graphic(player.Coord, null, "Find your way out!"); }