Exemple #1
0
 private static void InitializeBattleList()
 {
     for (int i = 0; i < battleList.Length; i++)
     {
         battleList[i] = new BattleListEntry();
     }
 }
Exemple #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);
 }
Exemple #3
0
 private static void InitializeBattleList()
 {
     for (int i = 0; i < battleList.Length; i++) {
         battleList[i] = new BattleListEntry();
     }
 }
Exemple #4
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;
 }