public PongDisplay(IScreenRenderer screenRenderer, IPlayerSlotRenderer playerSlotRenderer, IBallRenderer ballRenderer, IPaddleRenderer paddleRenderer) { this.screenRenderer = screenRenderer; this.playerSlotRenderer = playerSlotRenderer; this.ballRenderer = ballRenderer; this.paddleRenderer = paddleRenderer; }
public static IScreenRenderer GetPreferredRenderer() { if (null == _renderer) { //_renderer = new ConsoleRenderer(); _renderer = new PoleDisplayRenderer(); _renderer.Init(); } return _renderer; }
private void spriteToolStripMenuItem_Click(object sender, EventArgs e) { foreach (ToolStripMenuItem item in viewToolStripMenuItem.DropDownItems) { item.Checked = false; } spriteToolStripMenuItem.Checked = true; previousByteToolStripMenuItem.Enabled = true; nextByteToolStripMenuItem.Enabled = true; DisplayMode = DisplayMode.Sprite; _screenRenderer = new SpriteScreenRenderer(ScreenCharacterMap.Rows, Characters); MemOverview = MemOverview.Create(Memory, Height, DisplayMode == DisplayMode.Disassembly ? DisassemblyStartAddress.Value : 0); RenderScreen(); }
public CPU( IScreenRenderer screenRenderer, IUserInput userInput, IBeep beep, IRandomNumber randomNumber, ILogger logger = null) { _screenRenderer = screenRenderer; _userInput = userInput; _beep = beep; _randomNumber = randomNumber; _logger = logger; Reset(); }
public Face(IScreenRenderer renderer, IGetInput input) { _renderer = renderer; _input = input; }
public void Register(IScreenRenderer renderer) { _screenRenderer = renderer; }
public MemoryVisualizerMainWindow() { InitializeComponent(); _screenRenderer = new HexRawScreenRenderer(ScreenCharacterMap.Rows, Characters); }