public ShipController(Ship s, SolarSystemController ssc, IActorRef actorTextOutput) { _model = s; _solarSystemC = ssc; _actorTextOutput = actorTextOutput; _destination = _model.SolarSystem.Planets.Where(x => x.StarChartId == _model.DestinationScId).FirstOrDefault(); }
private void addNewCargoStoreToShip(Ship ship, Agent o) { Store s = new Store(); s.Owner = o; s.Location = ship; ship.Stores.Add(o.AgentId,s); o.Stores.Add(s); // seed with basic starter resource s.StoredResources.Add(ResourceTypeEnum.Spice, 10); }
private Ship GetShip(String seedName, ShipType shipT) { Ship s = new Ship(); s.Type = shipT; s.Name = seedName; return s; }
internal void DockShip(Ship s) { _model.DockedShips.Add(s); }