Exemplo n.º 1
0
 public Game()
 {
     _gameComponents = new List<GameComponent>();
     _timer = new Timer();
     _renderer = new Renderer();
     Input = new Input(this, _renderer.Form.Handle);
     Register(Input);
     _world = new World(this, _renderer);
     Register(_world);
     _playerPlane = AirplaneFactory.Create(_world, this, _renderer, true);
     Register(_playerPlane);
     for (int i = 0; i < 5; i++)
         Register(AirplaneFactory.Create(_world, this, _renderer, false, _playerPlane));
     Camera camera = new Camera(this, _playerPlane);
     Register(camera);
     _renderer.Camera = camera;
     Register(new MonitoringHeader(this, _renderer));
     Register(new FlightRecorder(this, _timer, _playerPlane));
 }
 public PlayerAirplaneCommands(Input input)
 {
     _input = input;
 }