コード例 #1
0
 private static void InitializeBattleList()
 {
     for (int i = 0; i < battleList.Length; i++)
     {
         battleList[i] = new BattleListEntry();
     }
 }
コード例 #2
0
 public static bool PlayerInVision(BattleListEntry a, BattleListEntry b)
 {
     if (a.z != b.z)
     {
         return(false);
     }
     return(Math.Abs(a.x - b.x) <= 7 && Math.Abs(a.y - b.y) <= 5);
 }