/// <summary> /// Constructs a new ArrowOnTargetAction /// </summary> /// <param name="actionSource">The action source</param> /// <param name="arrowTarget">The arrow target</param> /// <param name="spellHandler"></param> public ArrowOnTargetAction(GameLiving actionSource, GameLiving arrowTarget, ArrowSpellHandler spellHandler) : base(actionSource) { if (arrowTarget == null) { throw new ArgumentNullException("arrowTarget"); } if (spellHandler == null) { throw new ArgumentNullException("spellHandler"); } m_arrowTarget = arrowTarget; m_handler = spellHandler; }
/// <summary> /// Constructs a new ArrowOnTargetAction /// </summary> /// <param name="actionSource">The action source</param> /// <param name="arrowTarget">The arrow target</param> /// <param name="spellHandler"></param> public ArrowOnTargetAction(GameLiving actionSource, GameLiving arrowTarget, ArrowSpellHandler spellHandler) : base(actionSource) { if (arrowTarget == null) throw new ArgumentNullException("arrowTarget"); if (spellHandler == null) throw new ArgumentNullException("spellHandler"); m_arrowTarget = arrowTarget; m_handler = spellHandler; }
/// <summary> /// Constructs a new ArrowOnTargetAction /// </summary> /// <param name="actionSource">The action source</param> /// <param name="arrowTarget">The arrow target</param> /// <param name="spellHandler"></param> public ArrowOnTargetAction(GameLiving actionSource, GameLiving arrowTarget, ArrowSpellHandler spellHandler) : base(actionSource) { m_arrowTarget = arrowTarget ?? throw new ArgumentNullException(nameof(arrowTarget)); m_handler = spellHandler ?? throw new ArgumentNullException(nameof(spellHandler)); }