Ejemplo n.º 1
0
 public static void reOpenTournament()
 {
     ClientUIStateManager.requestGotoState(ClientUIStates.PlayingTournament, () => {
         initCurrentTree(storedInitMsg);
         storedUpdates.ForEach(u => currentTree.updateRounds(u.rounds, false));
         currentTree.renderVisualTree();
     });
 }
        private void handleTournamentUpdate(IIncommingMessage rawMsg)
        {
            TournamentTreeUpdate update = rawMsg.Deserialize <TournamentTreeUpdate>();

            singleton.allUpdates.Add(update);
            currentTree.updateRounds(update.rounds, spectating == false);
        }
Ejemplo n.º 3
0
        public static void playGame(int col, int row)
        {
            tree.getRound(col, row).forceRandomWinner();
            List <TournamentRoundDTO> temp = new List <TournamentRoundDTO>();

            foreach (List <TournamentRound> layer in tree.getTree())
            {
                foreach (TournamentRound r in layer)
                {
                    temp.Add(r.createDTO());
                }
            }
            visualSingleton.updateRounds(temp.ToArray(), true);
        }