コード例 #1
0
ファイル: RectangleLayout.cs プロジェクト: lnc0gnlt0/fp
 public RectangleLayout(ILayouter layouter, ILayoutDrawer drawer, IImageOptions imageOptions,
                        IFontOptions fontOptions)
 {
     this.layouter     = layouter;
     this.drawer       = drawer;
     this.imageOptions = imageOptions;
     this.fontOptions  = fontOptions;
     bitmap            = new Bitmap(imageOptions.Width, imageOptions.Height);
     graphics          = Graphics.FromImage(bitmap);
 }
コード例 #2
0
 public Level1(IFoodDrawer foodDrawer, ILayoutDrawer layoutDrawer, IGameOver gameOver) : base(foodDrawer, layoutDrawer, gameOver)
 {
 }
コード例 #3
0
ファイル: LevelBase.cs プロジェクト: vibhore-gupta/SnakeGame
 public LevelBase(IFoodDrawer foodDrawer, ILayoutDrawer layoutDrawer, IGameOver gameOver)
 {
     _foodDrawer   = foodDrawer;
     _layoutDrawer = layoutDrawer;
     _gameOver     = gameOver;
 }