Esempio n. 1
0
 public static void UpdateBpAfterRaidBattle(RaidBattleInfo battleInfo, MainWindowViewModel viewModel)
 {
     if (battleInfo.isPlaying || battleInfo.isWin || battleInfo.isLose)
     {
         viewModel.BpValue = battleInfo.bpValue;
         viewModel.BpMax = battleInfo.bpMax;
     }
 }
Esempio n. 2
0
        public static void PrintRaidBattleInfo(RaidBattleInfo battleInfo, MainWindowViewModel viewModel)
        {
            if (battleInfo.isPlaying || battleInfo.isWin || battleInfo.isLose)
            {
                string history = "";
                history += battleInfo.Boss + Environment.NewLine;
                history += String.Format("血量: {0} / {1}", battleInfo.hp - battleInfo.totalDamage, battleInfo.hp) + Environment.NewLine;

                switch (battleInfo.type)
                {
                    case AstrumClient.FIND:
                        history += "类型:发现" + Environment.NewLine;
                        break;
                    case AstrumClient.RESCUE:
                        history += "类型:救援" + Environment.NewLine;
                        break;
                }

                viewModel.History = history;
            }
        }