Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
Archivo: Arrow.cs Proyecto: mynew4/DAoC
 /// <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;
 }
Ejemplo n.º 3
0
 /// <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));
 }