CanSee() public static method

public static CanSee ( EntityInfo source, EntityInfo target ) : bool
source EntityInfo
target EntityInfo
return bool
        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);
            }
        }