コード例 #1
0
ファイル: ForceIdentifier.cs プロジェクト: superliujian/Sxta
 public static bool IsOther(ForceIdentifierEnum8 force)
 {
     return (force == ForceIdentifierEnum8.Other);
 }
コード例 #2
0
ファイル: ForceIdentifier.cs プロジェクト: superliujian/Sxta
 public static bool IsNeutral(ForceIdentifierEnum8 force)
 {
     return (((int)force - 1) % 3 == 2);
 }
コード例 #3
0
ファイル: ForceIdentifier.cs プロジェクト: superliujian/Sxta
 /// <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);
 }
コード例 #4
0
ファイル: ForceIdentifier.cs プロジェクト: superliujian/Sxta
 /// <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);
 }
コード例 #5
0
ファイル: ForceIdentifier.cs プロジェクト: agustinsantos/Sxta
 public static bool IsOther(ForceIdentifierEnum8 force)
 {
     return(force == ForceIdentifierEnum8.Other);
 }
コード例 #6
0
ファイル: ForceIdentifier.cs プロジェクト: agustinsantos/Sxta
 public static bool IsNeutral(ForceIdentifierEnum8 force)
 {
     return(((int)force - 1) % 3 == 2);
 }
コード例 #7
0
ファイル: ForceIdentifier.cs プロジェクト: agustinsantos/Sxta
 /// <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);
 }
コード例 #8
0
ファイル: ForceIdentifier.cs プロジェクト: agustinsantos/Sxta
 /// <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);
 }