Ejemplo n.º 1
0
 public void SetBasicControls()
 {
     pictureBox = new PictureBox();
     pictureBox.Image = Image.FromFile("ImageForTest.jpg");
     puzzles = new List<Puzzle>();
     formGameTable = new FormGameTable();
     for (int y = 0; y < 7; y++)
     {
         for (int x = 0; x < 5; x++)
         {
             Puzzle puzzle = new Puzzle();
             puzzle.Width = pictureBox.Image.Width / 5;
             puzzle.Height = pictureBox.Image.Height / 7;
             puzzle.CoordinateX = puzzle.Width * x;
             puzzle.CoordinateY = puzzle.Height * y;
             puzzle.Location = new Point(puzzle.CoordinateX, puzzle.CoordinateY);
             puzzle.ImageOrder = +1;
             puzzles.Add(puzzle);
             formGameTable.Controls.Add(puzzle);
         }
     }
 }
 public PuzzleEventHandlers(FormGameTable form, List <Puzzle> basePuzzleList, List <Puzzle> mixedPuzzleList)
 {
     _form            = form;
     _basePuzzleList  = basePuzzleList;
     _mixedPuzzleList = mixedPuzzleList;
 }
 public SetConjunctionBetweenPuzzles(List<Puzzle> puzzles, FormGameTable form,PictureBox picture)
 {
     this._picture = picture;
     this._puzzles = puzzles;
     this._form = form;
 }
Ejemplo n.º 4
0
 public RunPuzzlesGame(FormGameTable form, PictureBox pictureBox)
 {
     this._form       = form;
     this._pictureBox = pictureBox;
 }
 public AutoConstructPicture(FormGameTable form1, PictureBox image)
 {
     this.form = form1;
     _image = image;
 }
Ejemplo n.º 6
0
 public ThrowPuzzlesOnDesk(FormGameTable form1, PictureBox picture)
 {
     this._picture = picture;
     this._form1 = form1;
 }
Ejemplo n.º 7
0
 public AutoConstructPicture(FormGameTable form1, PictureBox image)
 {
     this.form = form1;
     _image    = image;
 }
 public CheckForPictureBuildCorrectness(FormGameTable form, List <Puzzle> baseList)
 {
     this._form            = form;
     this._basePuzzlesList = baseList;
 }
 public PuzzleEventHandlers(FormGameTable form, List<Puzzle> basePuzzleList, List<Puzzle> mixedPuzzleList)
 {
     _form = form;
     _basePuzzleList = basePuzzleList;
     _mixedPuzzleList = mixedPuzzleList;
 }
Ejemplo n.º 10
0
 public ThrowPuzzlesOnDesk(FormGameTable form1, PictureBox picture)
 {
     this._picture = picture;
     this._form1   = form1;
 }
Ejemplo n.º 11
0
 public RunPuzzlesGame(FormGameTable form, PictureBox pictureBox)
 {
     this._form = form;
     this._pictureBox = pictureBox;
 }
Ejemplo n.º 12
0
 public SetConjunctionBetweenPuzzles(List <Puzzle> puzzles, FormGameTable form, PictureBox picture)
 {
     this._picture = picture;
     this._puzzles = puzzles;
     this._form    = form;
 }
 public CheckForPictureBuildCorrectness(FormGameTable form, List<Puzzle> baseList)
 {
     this._form = form;
     this._basePuzzlesList = baseList;
 }