Beispiel #1
0
 public void startGame()
 {
     battleBoard                = new BattleBoard(setUp.playerBoard, setUp.opponentBoard, setUp.playerBoard.getBoatList(), setUp.opponentBoard.getListOfBoats());
     battleBoard.Location       = new System.Drawing.Point(0, 0);
     battleBoard.Height         = this.Height;
     battleBoard.Width          = this.Width;
     battleBoard.newGame.Click += newGame_click;
     this.Controls.Add(battleBoard);
     if (setUp != null)
     {
         setUp.Dispose();
     }
 }
Beispiel #2
0
 public void startGame()
 {
     battleBoard                = new BattleBoard(setUp.playerBoard, setUp.opponentBoard, setUp.playerBoard.getBoatList(), setUp.opponentBoard.getListOfBoats());
     battleBoard.Location       = new Point(0, 0);
     battleBoard.Height         = this.Height;
     battleBoard.Width          = this.Width;
     battleBoard.newGame.Click += newGameB_click;
     battleBoard.BackColor      = Color.Transparent;
     this.Controls.Add(battleBoard);
     if (setUp != null)
     {
         setUp.Dispose();
     }
 }
 public void setBattleBoard(BattleBoard bb)
 {
     this.BB = bb;
 }