Beispiel #1
0
        private void btn_loadGame_Click(object sender, EventArgs e)
        {
            View      gameView = null;
            GameBoard board    = Filer.RetrieveGame();

            if (board.boardName == "Level One ( 8 X 8 )")
            {
                gameView = new LevelOne();
            }
            else if (levels.Text == "Level Two ( 8 X 6 )")
            {
                gameView = new LevelTwo();
            }
            GameController controller = new GameController(board, gameView);
        }
 public void SaveGame()
 {
     Filer.WriteGame(level);
 }