Ejemplo n.º 1
0
 private void sendUpdateCoins()
 {
     for (int i = 0; i < players.Count; i++)
     {
         try
         {
             ClientInterface c = (ClientInterface)Activator.GetObject(typeof(ClientInterface), players[i].getUrl());
             c.updateCoins(coinsRemoved);
         }
         catch (Exception e)
         {
             Console.WriteLine("ERRO5");
             failureDetector.getKnownProcessById(i.ToString()).addFail(new Fail());
             players[i].setAlive(false);
         }
     }
     coinsRemoved.Clear();
 }