public DummySensor(VirtualFunctionBus virtualFunctionBus)
            : base(virtualFunctionBus)
        {
            this.virtualFunctionBus = virtualFunctionBus;
            virtualFunctionBus.RegisterComponent(this);

            this.dummyPacket = new DummyPacket();
            virtualFunctionBus.DummyPacket = this.dummyPacket;
        }
Esempio n. 2
0
 public PowerTrain(VirtualFunctionBus functionBus, int start_x, int start_y)
     : base(functionBus)
 {
     this.Engine           = new EngineController();
     this.Steering         = new SteeringController();
     this.PowerTrainPacket = new PowerTrainPacket();
     this.HMIPacket        = this.virtualFunctionBus.HMIPacket;
     this.AEBActionPacket  = virtualFunctionBus.AEBActionPacket;
     this.virtualFunctionBus.PowerTrainPacket = this.PowerTrainPacket;
     this.Steering.SetStartPosition(start_x, start_y);
 }
Esempio n. 3
0
 public Radar(VirtualFunctionBus virtualFunction)
     : base(virtualFunction)
 {
     this.offsetX     = 120;
     this.offsetY     = 0;
     this.rotate      = rotate - 90;
     this.range       = 200 * 50;
     this.angleOfView = 60;
     this.Brush       = SolidColorBrush.Parse("red");
     this.dif         = this.range * Math.Tan((double)this.angleOfView / 2 * (Math.PI / 180));
     this.maxDetect   = Math.Sqrt(Math.Pow(this.range, 2) + Math.Pow(this.range, 2));
 }
 public AccController(VirtualFunctionBus virtualFunctionBus)
     : base(virtualFunctionBus)
 {
 }
 public GameOverCondition(VirtualFunctionBus virtualFunctionBus)
     : base(virtualFunctionBus)
 {
     this.IsGameOver = false;
 }
 public HumanMachineInterface(VirtualFunctionBus virtualFunctionBus)
     : base(virtualFunctionBus)
 {
     this.hmiPacket = new HMIPacket();
     virtualFunctionBus.HMIPacket = this.hmiPacket;
 }
Esempio n. 7
0
 public Sensor(VirtualFunctionBus virtualFunction)
     : base(virtualFunction)
 {
 }