Ejemplo n.º 1
0
 /// <summary>
 /// Resets the current target handle strategy to the default.
 /// </summary>
 private void ResetTargetHandleStrategy() => targetHandleStrategy = new TargetHandleStrategyAttack(this);
Ejemplo n.º 2
0
 /// <summary>
 /// Sets the current target handle strategy.
 /// </summary>
 /// <param name="strategy">The strategy.</param>
 /// <exception cref="ArgumentNullException">strategy</exception>
 protected void SetTargetHandleStrategy(UnitTargetHandleStrategy strategy)
 {
     targetHandleStrategy = strategy ?? throw new ArgumentNullException(nameof(strategy));
 }