Ejemplo n.º 1
0
    protected override void DoAction()
    {
        if (IsControl)
        {
            _actionParser.OldBattleState = _skillPlayer.BattleState;
            _skillPlayer.ChangeState(BATTLE_STATE.SKILL);
        }
        else
        {
            if (_skillPlayer.BattleState == BATTLE_STATE.SKILL)
            {
                _skillPlayer.ChangeState(BATTLE_STATE.NONE);
                _skillPlayer.ChangeState(_actionParser.OldBattleState);
            }
        }

        if (IsSkillDir)
        {
            ICharaActor chara = _skillPlayer as ICharaActor;
            if (null != chara)
            {
                chara.ChangeRotate(_actionParser.Command.SkillDir);
            }
        }

        Complete();
    }
Ejemplo n.º 2
0
 protected override void DoAction()
 {
     if (EffectData.Id != "" && null != _skillPlayer)
     {
         ICharaActor chara = _skillPlayer as ICharaActor;
         if (null != chara)
         {
             chara.AddEffect(EffectData);
         }
     }
     Complete();
 }
Ejemplo n.º 3
0
 protected override void DoAction()
 {
     if (AnimName != "" && null != _skillPlayer && !_skillPlayer.IsDead())
     {
         ICharaActor chara = _skillPlayer as ICharaActor;
         if (null != chara)
         {
             chara.PlayAction(AnimName);
         }
     }
     Complete();
 }
Ejemplo n.º 4
0
 public BuffCounter(ICharaActor chara)
 {
     _buffListDic = new Dictionary <int, List <Buff> >();
     _chara       = chara;
     _removeKeys  = new Dictionary <int, int>();
 }