Esempio n. 1
0
        /// <summary>
        /// 处理战斗结束情况,关闭窗口
        /// </summary>
        private void Close()
        {
            //处理战斗结果
            if (MonsterDeath)
            {
                //获取经验和金币
                Hero.Coin += Monster.Coin;
                Hero.Exp  += Monster.Exp;

                Monster.Death();
            }
            else if (HeroDeath)
            {
                Hero.Death();
            }

            Hero.InBattle             = false;
            Monster.InBattle          = false;
            Monster.FrameChangeEvent -= OneBattle;
            this.Enable = false;
        }