Esempio n. 1
0
 /// <summary>
 /// Check if other and teamable are both enemies.
 /// </summary>
 /// <param name="teamable">This teamable.</param>
 /// <param name="other">The other teamable.</param>
 /// <returns>True if both other and teamable are enemies.</returns>
 public static bool IsEnemySymetric(this ITeamable teamable, ITeamable other) => teamable.IsEnemy(other) && teamable.IsRelationSymetric(other);
Esempio n. 2
0
 /// <summary>
 /// Check if other and teamable are both neutral.
 /// </summary>
 /// <param name="teamable">This teamable.</param>
 /// <param name="other">The other teamable.</param>
 /// <returns>True if both other and teamable are neutral.</returns>
 public static bool IsNeutralSymetric(this ITeamable teamable, ITeamable other) => teamable.IsNeutral(other) && teamable.IsRelationSymetric(other);