public int round_victory(ConnectWork link) { roundVictory vic = new roundVictory(); vic = getStruct <roundVictory>(Marshal.SizeOf(vic)); Console.WriteLine("le gagnant de cette mache est le joueur " + vic.playerId + " avec un(e) " + (Type)vic.type + " de " + (Couleur)vic.color); return(0); }
public void announceRoundWinner(Carte better) { Header h = new Header(); h.id_command = 5; roundVictory info = new roundVictory(); info.type = Convert.ToInt32(better.getType()); info.color = Convert.ToInt32(better.getCouleur()); info.playerId = _fp + 1; foreach (Player player in _players) { player.write <Header>(h); player.write <roundVictory>(info); } }