Beispiel #1
0
 public PongDisplay(IScreenRenderer screenRenderer, IPlayerSlotRenderer playerSlotRenderer,
                    IBallRenderer ballRenderer, IPaddleRenderer paddleRenderer)
 {
     this.screenRenderer     = screenRenderer;
     this.playerSlotRenderer = playerSlotRenderer;
     this.ballRenderer       = ballRenderer;
     this.paddleRenderer     = paddleRenderer;
 }
Beispiel #2
0
 public PongDisplay(IScreenRenderer screenRenderer, IPlayerSlotRenderer playerSlotRenderer,
     IBallRenderer ballRenderer, IPaddleRenderer paddleRenderer)
 {
     this.screenRenderer = screenRenderer;
     this.playerSlotRenderer = playerSlotRenderer;
     this.ballRenderer = ballRenderer;
     this.paddleRenderer = paddleRenderer;
 }
Beispiel #3
0
 public void SetUp()
 {
     FontRenderer = Mock<IFontRenderer>();
     PlayerSlotRenderer = new PlayerSlotRenderer(FontRenderer.Object);
 }