public WorldTimeInputHandler(WorldTimeRendererState worldTimeRendererState)
        {
            worldTimeRendererState.ThrowIfNull("worldTimeRenderer");

            _worldTimeRendererState = worldTimeRendererState;
            _keyboardStateHelper = new KeyboardStateHelper(
                KeyDown,
                null,
                null,
                Constants.WorldTimeRenderer.Input.PauseKey,
                Constants.WorldTimeRenderer.Input.FasterKey,
                Constants.WorldTimeRenderer.Input.SlowerKey);
        }
        private void CreateRendererStates()
        {
            _logRendererState = new LogRendererState
                {
                    Visible = _logConfiguration.Visible,
                    MaximumVisibleLogLines = _logConfiguration.MaximumVisibleLogLines,
                    MinimumWindowWidth = _logConfiguration.MinimumWindowWidth,
                    LogEntryLifetime = _logConfiguration.LogEntryLifetime,
                    ShowTimestamps = _logConfiguration.ShowTimestamps,
                    ShowRaisingEvents = _logConfiguration.ShowRaisingEvents
                };
            _worldTimeRendererState = new WorldTimeRendererState
                {
                    Visible = _worldTimeConfiguration.Visible
                };

            var worldTime = new WorldTime(_worldTimeRendererState);
            var worldObserver = new WorldObserver(worldTime, _logRendererState);

            _worldInstance = new WorldInstance(_world, _player, worldTime, worldObserver, _multimediaPlayer);

            _boardRendererState = new BoardRendererState(_worldInstance.Player);
            _fpsRendererState = new FpsRendererState
                {
                    Visible = _fpsConfiguration.Visible
                };
        }
Ejemplo n.º 3
0
        public WorldTime(WorldTimeRendererState worldTimeRendererState)
        {
            worldTimeRendererState.ThrowIfNull("worldTimeRendererState");

            _worldTimeRendererState = worldTimeRendererState;
        }