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); }
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(); } }