public BattleManager(IConfigurationFactory factory, IBattleGroup group)
 {
     _events = factory.GetEvents();
     _msgCollector = ServiceLocator.GetServiceLocator().GetService<IMsgCollector>();
     _group = group;
     _args = new BattleEventArgs(group);
     //建立戰鬥程序
     InitailBattleProcess();
 }
        public override void Execute(BattleEventArgs args)
        {
            IBattleGroup group = args.BattleGroup;

            if (group.DieMonster.Count == 0) return;

            List<object> _data = GetMsgData(group);

            args.Data = _data;
        }
        public override void Execute(BattleEventArgs args)
        {
            IBattleGroup group = args.BattleGroup;

            if (group.DieMonster.Count == 0) throw new Exception();

            int _earnExp = GetEarnExp(group);

            List<object> _data = CharactorRaiseExp(group, _earnExp);

            args.Data = _data;
        }
 public abstract void Execute(BattleEventArgs args);