private void select(int bodyIndex) { this.selectedBody = bodyIndex; switch (controller.BodyType(bodyIndex)) { case BodyType.OwnStellaris: siteView.SetView(controller.StellarisController()); setView(siteView); break; case BodyType.OwnColony: siteView.SetView(controller.ColonyController(bodyIndex)); setView(siteView); break; case BodyType.NotColonised: emptyPlanetView.SetView(controller.EmptyPlanetController(bodyIndex), currentPlayer); setView(emptyPlanetView); break; default: //TODO(later): add implementation, foregin planet, empty system, foreign system break; } this.setupSelectionMarker(); }
private void select(int bodyIndex) { switch (controller.BodyType(bodyIndex)) { case BodyType.OwnStellaris: this.siteView.SetView(this.controller.StellarisController()); this.setView(siteView); break; case BodyType.OwnColony: this.siteView.SetView(this.controller.ColonyController(bodyIndex)); this.setView(siteView); break; case BodyType.NotColonised: this.emptyPlanetView.SetView(controller.EmptyPlanetController(bodyIndex), currentPlayer); this.setView(this.emptyPlanetView); break; default: this.setView(null); //TODO(later) add implementation, foregin planet, empty system, foreign system break; } }
public void PlayTurn() { foreach (var stellaris in this.playerController.Stellarises()) { StarSystemController starSystem = this.playerController.OpenStarSystem(stellaris.HostStar); manage(starSystem.StellarisController()); foreach (var planet in starSystem.Planets) { if (starSystem.BodyType(planet.Position) == BodyType.OwnColony) { manage(starSystem.ColonyController(planet.Position)); } } } this.playerController.EndGalaxyPhase(); }