public BaseShip(ShipPort port) { if (port == null) throw new ArgumentNullException("port"); _port = port; _index = -Width; _size = 0; _loading = _full = _disposed = false; }
public BaseLevel(LevelManager manager, LevelModel data) { if(manager == null) throw new ArgumentNullException("manager"); else if (data == null) throw new ArgumentNullException("data"); _manager = manager; _metrics = LevelMetrics.Zero; _port = new ShipPort(this, data.Port); _tracks = TrackFactory.GetInstance().Create(data); _carts = new List<BaseCart>(); _spawner = new Spawner(this); Initialize(); }