private void _ToBattle()
        {
            var status = new BattleCasterStatus(_Binder, _Player, _Map, _Player.GetBattleCaster());

            status.NextEvent   += _ToCast;
            status.DisarmEvent += _ToDone;
            _SetStatus(status);
        }
        private void _ToCast(SkillCaster caster)
        {
            var status = new BattleCasterStatus(_Binder, _Player, _Map, caster);

            status.NextEvent       += _ToCast;
            status.BattleIdleEvent += _ToBattle;
            status.DisarmEvent     += _ToDone;
            _SetStatus(status);
        }
Esempio n. 3
0
        private void _ToDamage()
        {
            var skill  = Resource.Instance.FindSkill(ACTOR_STATUS_TYPE.DAMAGE1);
            var caster = new SkillCaster(skill, new Determination(skill));
            var stage  = new BattleCasterStatus(_Binder, _Player, _Map, caster);

            stage.BattleIdleEvent += _ToBattle;
            stage.NextEvent       += _ToCast;
            _SetStatus(stage);
        }
        private void _ToDamage()
        {
            var skill     = _Player.Equipment.GetSkill();
            var skillData = Resource.Instance.FindSkill(skill.Injury);

            var caster = new SkillCaster(skillData, new Determination(skillData));
            var stage  = new BattleCasterStatus(_Binder, _Player, _Map, caster);

            stage.BattleIdleEvent += _ToBattle;
            stage.NextEvent       += _ToCast;
            _SetStatus(stage);
        }
 private void _ToBattle()
 {
     var status = new BattleCasterStatus(_Binder, _Player, _Map, _Player.GetBattleCaster());
     status.NextEvent += _ToCast;
     status.DisarmEvent += _ToDone;
     _SetStatus(status);
 }
        private void _ToKnockout()
        {
            var skill = Resource.Instance.FindSkill(ACTOR_STATUS_TYPE.KNOCKOUT1);
            var caster = new SkillCaster(skill, new Determination(skill));
            var stage = new BattleCasterStatus(_Binder, _Player, _Map, caster);
            stage.BattleIdleEvent += _ToBattle;
            stage.NextEvent += _ToCast;

            _SetStatus(stage);
        }
 private void _ToCast(SkillCaster caster)
 {
     var status = new BattleCasterStatus(_Binder, _Player, _Map , caster);
     status.NextEvent += _ToCast;
     status.BattleIdleEvent += _ToBattle;
     status.DisarmEvent += _ToDone;
     _SetStatus(status);
 }