Пример #1
0
 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();
 }
Пример #2
0
        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);
        }
Пример #3
0
 private Ship GetShip(String seedName, ShipType shipT)
 {
     Ship s = new Ship();
     s.Type = shipT;
     s.Name = seedName;
     return s;
 }
Пример #4
0
 internal void DockShip(Ship s)
 {
     _model.DockedShips.Add(s);
 }