IsThisSystemExploredByEmpire() публичный Метод

public IsThisSystemExploredByEmpire ( Empire empire ) : bool
empire Empire
Результат bool
Пример #1
0
        public List <StarSystem> CheckExploredSystems(Galaxy galaxy)
        {
            List <StarSystem> exploredSystems = new List <StarSystem>();

            foreach (Fleet fleet in FleetManager.GetFleets())
            {
                if (fleet.TravelNodes == null || fleet.TravelNodes.Count == 0)
                {
                    StarSystem systemExplored = fleet.AdjacentSystem;
                    if (systemExplored != null && !systemExplored.IsThisSystemExploredByEmpire(this))
                    {
                        SitRepManager.AddItem(new SitRepItem(Screen.Galaxy, systemExplored, null, new Point(systemExplored.X, systemExplored.Y), systemExplored.Name + " has been explored."));
                        systemExplored.AddEmpireExplored(this);
                        exploredSystems.Add(systemExplored);
                    }
                }
            }
            return(exploredSystems);
        }