internal void UpdateZoomed(bool isMouseOverHUD, GameTime time, int elapsedMinutes) { cSector = SectorsList[AllSystems[selectedSystem].Sector - 1]; foreach (PlanetsSystem s in cSector.ContainedSystems) { if (s.ID == AllSystems[selectedSystem].ID) { s.UpdateZoomed(time, elapsedMinutes); } } }
public void SetUpMiniMap(MapSector sectorInfo) { currentSectorInfo = sectorInfo; List<SectorBlockInfo> sectorList = new List<SectorBlockInfo>(); bool containsSystem; foreach (Point p in sectorInfo.ContainedCoords) { containsSystem = false; foreach (PlanetsSystem s in sectorInfo.ContainedSystems) { if (p == s.GridPosition) { sectorList.Add(new SectorBlockInfo(true, s.SystemColour, s.ID, s.controlledBy, s.Planets.ToString())); containsSystem = true; } } if (!containsSystem) { sectorList.Add(new SectorBlockInfo(false)); } } model.UpdatePlanetsList(sectorList, "Sector " + sectorInfo.Name); }