Ejemplo n.º 1
0
 public static bool IsOther(ForceIdentifierEnum8 force)
 {
     return (force == ForceIdentifierEnum8.Other);
 }
Ejemplo n.º 2
0
 public static bool IsNeutral(ForceIdentifierEnum8 force)
 {
     return (((int)force - 1) % 3 == 2);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// returns true if the force is opposing, false otherwise
 /// </summary>
 /// <param name="force">the force</param>
 /// <returns>true if the force is opposing</returns>
 public static bool IsOpposing(ForceIdentifierEnum8 force)
 {
     return (((int)force - 1) % 3 == 1);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// returns true if the force is friendly, false otherwise
 /// </summary>
 /// <param name="force">the force</param>
 /// <returns>true if the force is friendly</returns>
 public static bool IsFriendly(ForceIdentifierEnum8 force)
 {
     return (((int)force - 1) % 3 == 0);
 }
Ejemplo n.º 5
0
 public static bool IsOther(ForceIdentifierEnum8 force)
 {
     return(force == ForceIdentifierEnum8.Other);
 }
Ejemplo n.º 6
0
 public static bool IsNeutral(ForceIdentifierEnum8 force)
 {
     return(((int)force - 1) % 3 == 2);
 }
Ejemplo n.º 7
0
 /// <summary>
 /// returns true if the force is opposing, false otherwise
 /// </summary>
 /// <param name="force">the force</param>
 /// <returns>true if the force is opposing</returns>
 public static bool IsOpposing(ForceIdentifierEnum8 force)
 {
     return(((int)force - 1) % 3 == 1);
 }
Ejemplo n.º 8
0
 /// <summary>
 /// returns true if the force is friendly, false otherwise
 /// </summary>
 /// <param name="force">the force</param>
 /// <returns>true if the force is friendly</returns>
 public static bool IsFriendly(ForceIdentifierEnum8 force)
 {
     return(((int)force - 1) % 3 == 0);
 }