Esempio n. 1
0
 /// <summary>
 /// Check if other is an enemy of teamable.
 /// </summary>
 /// <param name="teamable">This teamable.</param>
 /// <param name="other">The other teamable.</param>
 /// <returns>True if other is an enemy of teamable.</returns>
 public static bool IsEnemy(this ITeamable teamable, ITeamable other) => teamable.IsRelation(other, TeamRelation.Enemy);
Esempio n. 2
0
 /// <summary>
 /// Check if other is neutral to teamable.
 /// </summary>
 /// <param name="teamable">This teamable.</param>
 /// <param name="other">The other teamable.</param>
 /// <returns>True if other is neutral to teamable.</returns>
 public static bool IsNeutral(this ITeamable teamable, ITeamable other) => teamable.IsRelation(other, TeamRelation.Neutral);
Esempio n. 3
0
 /// <summary>
 /// Check if other is an ally of teamable.
 /// </summary>
 /// <param name="teamable">This teamable.</param>
 /// <param name="other">The other teamable.</param>
 /// <returns>True if other is an ally of teamable.</returns>
 public static bool IsAlly(this ITeamable teamable, ITeamable other) => teamable.IsRelation(other, TeamRelation.Ally);