public Game(Player player, MainActivity.LogDelegate logDelegate) { player1 = player; this.logDelegate = logDelegate; idToPlayer = new Dictionary <uint, int>(); idToPlayer.Add(player.uid, 0); }
public Server(MainActivity.LogDelegate logDelegate) { this.logDelegate = logDelegate; rng = new Random(); nextUID = 0; idToGame = new Dictionary <uint, Game>(); games = new List <Game>(); waitingGames = new List <Game>(); new Thread(StartTCP).Start(); new Thread(StartUDP).Start(); //new Thread(Debug).Start(); }