コード例 #1
0
        public GameOverView(IRenderProxy render,
                            IGamePlayfieldView playfieldView)
        {
            this.render        = render;
            this.playfieldView = playfieldView;

            GameOverMessage = PrepareGameOverMessage();
        }
コード例 #2
0
        public StartPlayView(IRenderProxy render,
                             IGamePlayfieldView playfieldView)
        {
            this.render        = render;
            this.playfieldView = playfieldView;

            PressButtonToPlayMessage = PreparePressButtonToPlayMessage();
        }
コード例 #3
0
        public StopPlayView(IRenderProxy render,
                            IGamePlayfieldView playfieldView)
        {
            this.render        = render;
            this.playfieldView = playfieldView;

            StopPlayMessage = PrepareStopPlayMessage();
        }
コード例 #4
0
 public GameBeginView(IRenderProxy render,
                      IGamePlayfieldView playfieldView,
                      IMenuView menuView)
 {
     this.render        = render;
     this.menuView      = menuView;
     this.playfieldView = playfieldView;
     TitleMessage       = render.PrepareTextLine(model.GetTitle(), 0);
 }
コード例 #5
0
 public GamePlayfieldView(
     IRenderProxy render,
     ICollection <IBrick> bricks,
     IBorderManager borderManager
     )
 {
     this.render        = render;
     this.bricks        = bricks;
     this.borderManager = borderManager;
 }
コード例 #6
0
 public GamePlayView(IRenderProxy render,
                     IGamePlayfieldView playfieldView,
                     IInfoPanelView infoView,
                     IPadManager padManager,
                     IBallManager ballManager,
                     ITailManager tailManager
                     )
 {
     this.render        = render;
     this.playfieldView = playfieldView;
     this.infoView      = infoView;
     this.padManager    = padManager;
     this.ballManager   = ballManager;
     this.tailManager   = tailManager;
 }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UnmanagedBitmapRenderer" /> class.
 /// </summary>
 /// <param name="threadManager">The thread manager.</param>
 /// <param name="dispatcher">The dispatcher.</param>
 /// <param name="pixelWidth">Width of the pixel.</param>
 /// <param name="pixelHeight">Height of the pixel.</param>
 public UnmanagedBitmapRenderer(IThreadManager threadManager, IDispatcher dispatcher, int pixelWidth, int pixelHeight)
     : base(threadManager)
 {
     threadManager.Guard("threadManager");
     dispatcher.Guard("dispatcher");
     this.dispatcher = dispatcher;
     if (0 >= pixelWidth)
     {
         pixelWidth = 1;
     }
     if (0 >= pixelHeight)
     {
         pixelHeight = 1;
     }
     proxy = new RenderProxy(pixelHeight, pixelWidth, pixelWidth * 4);
 }
コード例 #8
0
 public InfoPanelView(IRenderProxy render, IGameEngine game)
 {
     this.game   = game;
     this.render = render;
 }