예제 #1
0
파일: PongDisplay.cs 프로젝트: kibiz0r/Pong
 public PongDisplay(IScreenRenderer screenRenderer, IPlayerSlotRenderer playerSlotRenderer,
     IBallRenderer ballRenderer, IPaddleRenderer paddleRenderer)
 {
     this.screenRenderer = screenRenderer;
     this.playerSlotRenderer = playerSlotRenderer;
     this.ballRenderer = ballRenderer;
     this.paddleRenderer = paddleRenderer;
 }
예제 #2
0
 public PongDisplay(IScreenRenderer screenRenderer, IPlayerSlotRenderer playerSlotRenderer,
                    IBallRenderer ballRenderer, IPaddleRenderer paddleRenderer)
 {
     this.screenRenderer     = screenRenderer;
     this.playerSlotRenderer = playerSlotRenderer;
     this.ballRenderer       = ballRenderer;
     this.paddleRenderer     = paddleRenderer;
 }
예제 #3
0
 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();
 }
예제 #5
0
        public CPU(
            IScreenRenderer screenRenderer,
            IUserInput userInput,
            IBeep beep,
            IRandomNumber randomNumber,
            ILogger logger = null)
        {
            _screenRenderer = screenRenderer;
            _userInput      = userInput;
            _beep           = beep;
            _randomNumber   = randomNumber;
            _logger         = logger;

            Reset();
        }
예제 #6
0
 public Face(IScreenRenderer renderer, IGetInput input)
 {
     _renderer = renderer;
     _input    = input;
 }
 public void Register(IScreenRenderer renderer)
 {
     _screenRenderer = renderer;
 }
예제 #8
0
 public Face(IScreenRenderer renderer, IGetInput input)
 {
     _renderer = renderer;
     _input = input;
 }
 public MemoryVisualizerMainWindow()
 {
     InitializeComponent();
     _screenRenderer = new HexRawScreenRenderer(ScreenCharacterMap.Rows, Characters);
 }