public CarsRemover( BuildMode.Controls.CarsRemover control, Func<CarsRemover, IRoadInformation> conductorFactory )
     : base( control )
 {
     Contract.Requires( control != null ); Contract.Requires( conductorFactory != null ); Contract.Ensures( this.Information != null );
     this._roadInformation = conductorFactory( this );
     this.CarsRemoverBuilder = control;
 }
 public JunctionEdge( BuildMode.Controls.JunctionEdge edge, Func<JunctionEdge, IRoadInformation> roadInformationFactory )
 {
     this._roadInformationFactory = roadInformationFactory;
     this._roadInformation = this._roadInformationFactory( this );
     this.EdgeBuilder = edge;
     this.Drawer = new JunctionEdgeDrawer( this );
 }
Exemplo n.º 3
0
 public Lane( RoadLaneBlock lane, Func<Lane, IRoadInformation> conductorFactory )
     : base( lane )
 {
     Contract.Requires( lane != null ); Contract.Requires( conductorFactory != null ); Contract.Ensures( this.Information != null );
     this.RoadLaneBlock = lane;
     this._roadInformation = conductorFactory( this );
 }
 public CarsInserter( BuildMode.Controls.CarsInserter control, Func<CarsInserter, IRoadInformation> conductorFactory )
     : base( control )
 {
     Contract.Requires( control != null ); Contract.Requires( conductorFactory != null ); Contract.Ensures( this.Information != null );
     this._roadInformation = conductorFactory( this );
     this.CarsInserterBuilder = control;
     this.LastTimeCarWasInseter = DateTime.Now;
     this.CarsInsertionInterval = TimeSpan.FromMilliseconds( 500 );
 }
        public LaneJunction( RoadJunctionBlock control, Func<LaneJunction, IRoadInformation> condutorFactory )
            : base( control )
        {
            this.JunctionBuilder = control;

            this._condutorFactory = condutorFactory;
            this._roadInformation = this._condutorFactory( this );
            this._drawer = new LaneJunctionDrawer( this );
        }
Exemplo n.º 6
0
 public LaneCorner( RoadConnection control, Func<LaneCorner, IRoadInformation> conductorFactory )
     : base( control )
 {
     Contract.Requires( control != null ); Contract.Requires( conductorFactory != null ); Contract.Ensures( this.Information != null ); this.LaneCornerBuild = control;
     this._roadInformation = conductorFactory( this );
 }
 public void AddLight( Light.Light light )
 {
     this._lights = light;
     // BUG
     this._roadInformation = this._condutorFactory( this );
 }