/// <summary> /// Checks this alliance can attack the given alliance. /// </summary> /// <param name="alliance">Alliance to check against.</param> /// <returns>True if can attack the given alliance, else false.</returns> public bool CanAttack(Alliance alliance) { if (alliance == null) { const string errmsg = "Parameter `alliance` is null."; if (log.IsErrorEnabled) log.Error(errmsg); Debug.Fail(errmsg); return false; } return CanAttack(alliance.ID); }
/// <summary> /// Provides the extra text for the <see cref="AdvancedPropertyDescriptor"/> for a /// <see cref="Alliance"/>. /// </summary> /// <param name="v">The value.</param> /// <returns>The extra text to display.</returns> static string ExtraTextProvider_Alliance(Alliance v) { if (v == null) return null; return v.Name; }