示例#1
0
        /// <summary>
        /// initialise a new game
        /// </summary>
        /// <param name="maxplayers"></param>
        public void InitNewGame(int maxplayers)
        {
            Board = CurrentConfigFile.LoadDefauldBoard();
            LoadCards();

            Players = new ObservableCollection <Player>();
            for (int index = 0; index < maxplayers; index++)
            {
                Players.Add(new Player(this, "Player " + (index + 1), 1500, Start));
            }
            CurrentPlayer = Players.First();
        }
示例#2
0
 /// <summary>
 /// initialise a saved game
 /// </summary>
 /// <param name="savedGame"></param>
 public void InitSavedGame(string savedGame)
 {
     Board = CurrentConfigFile.LoadDefauldBoard();
     LoadCards();
     LoadPlayers(savedGame);
 }