コード例 #1
0
 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;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
        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!");
        }