Esempio n. 1
0
        public void AddPlayer(Player.Player NewPlayer)
        {
            Players.Add(NewPlayer);
            NewPlayer.GetNewTiles();

            if(CurrentPlayer == null)
            {
                CurrentPlayer = NewPlayer;
            }
        }
Esempio n. 2
0
 public void RemovePlayers()
 {
     this.Players.Clear();
     CurrentPlayer = null;
 }
Esempio n. 3
0
 public void SetCurrentPlayer(int Index)
 {
     CurrentPlayer = Players[Index];
 }
Esempio n. 4
0
 public void ResetGame()
 {
     GameBoard = new Board.Board();
     Players.Clear();
     CurrentPlayer = null;
     TilesSet = new TilesSet(GameLanguage);
     PassCounter = 0;
     GameBoard.SetEmpty(true);
 }