private static bool CanSee(EntityInfo src, EntityInfo target) { int srcCampId = src.GetCampId(); int targetCampId = target.GetCampId(); if (srcCampId == targetCampId) { return(true); } else if (srcCampId == (int)CampIdEnum.Hostile || targetCampId == (int)CampIdEnum.Hostile) { return(EntityInfo.CanSee(src, target)); } else { return(true); } }