예제 #1
0
파일: Unit.cs 프로젝트: McPalm/FEPonies
 public void AddInhibitor(object o)
 {
     if (_inhibs.Count == 0)
     {
         if (_range == null)
         {
             _range = new Norange();
         }
         _storeRange      = AttackInfo.Reach;
         AttackInfo.Reach = _range;
     }
     _inhibs.Add(o);
     MakeGrey(true);
 }
예제 #2
0
    public AttackInfo(IReach reach = null, IEffect effect = null, ITargetFilter filter = null, IAnimation animation = null)
    {
        this.Reach      = reach;
        this.Effect     = effect;
        this.Filter     = filter;
        AttackAnimation = animation;

        if (reach == null)
        {
            this.Reach = new Melee();
        }
        if (effect == null)
        {
            this.Effect = new Damage();
        }
        if (filter == null)
        {
            this.Filter = new TargetEnemy();
        }
        if (animation == null)
        {
            AttackAnimation = new Tackle();
        }
    }