예제 #1
0
        public static void UpdateEverything()
        {
            //todo: move this somewhere else
            //reader done analyzing new stuff, update things
            if (MainWindow.Overlay.IsVisible)
            {
                MainWindow.Overlay.Update(false);
            }

            if (MainWindow.PlayerWindow.IsVisible)
            {
                MainWindow.PlayerWindow.SetCardCount(Game.PlayerHandCount, 30 - Game.PlayerDrawn.Sum(card => card.Count));
            }

            if (MainWindow.OpponentWindow.IsVisible)
            {
                MainWindow.OpponentWindow.SetOpponentCardCount(Game.OpponentHandCount, Game.OpponentDeckCount, Game.OpponentHasCoin);
            }


            if (MainWindow.NeedToIncorrectDeckMessage && !MainWindow.IsShowingIncorrectDeckMessage && Game.CurrentGameMode != GameMode.Spectator)
            {
                MainWindow.IsShowingIncorrectDeckMessage = true;
                MainWindow.ShowIncorrectDeckMessage();
            }
        }
예제 #2
0
        public static void UpdateEverything(GameV2 game)
        {
            if (Core.Overlay.IsVisible)
            {
                Core.Overlay.Update(false);
            }

            if (Core.Windows.PlayerWindow.IsVisible)
            {
                Core.Windows.PlayerWindow.SetCardCount(game.Player.HandCount, game.Player.DeckCount);
            }

            if (Core.Windows.OpponentWindow.IsVisible)
            {
                Core.Windows.OpponentWindow.SetOpponentCardCount(game.Opponent.HandCount, game.Opponent.DeckCount, game.Opponent.HasCoin);
            }


            if (MainWindow.NeedToIncorrectDeckMessage && !MainWindow.IsShowingIncorrectDeckMessage && game.CurrentGameMode != GameMode.Spectator &&
                game.IgnoreIncorrectDeck != DeckList.Instance.ActiveDeck)
            {
                MainWindow.IsShowingIncorrectDeckMessage = true;
                MainWindow.ShowIncorrectDeckMessage();
            }
        }
예제 #3
0
        public static void UpdateEverything()
        {
            if (MainWindow.Overlay.IsVisible)
            {
                MainWindow.Overlay.Update(false);
            }

            if (MainWindow.PlayerWindow.IsVisible)
            {
                MainWindow.PlayerWindow.SetCardCount(Game.PlayerHandCount, 30 - Game.PlayerDrawn.Sum(card => card.Count));
            }

            if (MainWindow.OpponentWindow.IsVisible)
            {
                MainWindow.OpponentWindow.SetOpponentCardCount(Game.OpponentHandCount, Game.OpponentDeckCount, Game.OpponentHasCoin);
            }


            if (MainWindow.NeedToIncorrectDeckMessage && !MainWindow.IsShowingIncorrectDeckMessage && Game.CurrentGameMode != GameMode.Spectator)
            {
                MainWindow.IsShowingIncorrectDeckMessage = true;
                MainWindow.ShowIncorrectDeckMessage();
            }
        }