public HumanAssistedRacingSimulationScreen(
            IApplicationService appService)
        {
            // Create our human driven car
            humanCar = new CarHuman(true, 100);

            RacingSimulationScreen = appService.Kernel.Get <RacingSimulationScreen>(
                new ConstructorArgument("carControllers", new List <ICarController> {
                humanCar
            }));

            HumanAssistedHud = appService.Kernel.Get <HumanAssistedTrainingHudScreen>(
                new ConstructorArgument("racingSimulationScreen", RacingSimulationScreen));

            AddScreen(RacingSimulationScreen);

            AddScreen(HumanAssistedHud);
        }
Exemple #2
0
        public override void InitializeScreen()
        {
            base.InitializeScreen();

            humanCar = racingSimulationScreen.GetCarControllers().First() as CarHuman;
        }