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