Beispiel #1
0
 internal override void AddTile(
     PlayerTrain playerTrain,
     DominoTileEntity tile,
     Guid playerId)
 {
     if (playerId != playerTrain.ownerId)
     {
         throw new ApplicationException("Can't add tile to a closed player train.");
     }
     base.AddTile(
         playerTrain,
         tile);
     if (tile.IsDouble())
     {
         playerTrain.state = new OpenPlayerTrainState();
     }
 }