public BoardPlacement(StartPageData startPageData) { InitializeComponent(); completeClean(); this.startPageData = startPageData; Narrator.placing(narratorTxt, startPageData.getPlayerName()); battleboard = new Board(battleGrid); battleships = new Ship[5]; randomize(battleships); }
public BoardPlacement(StartPageData startPageData) { InitializeComponent(); completeClean(); /* Saving startPageData from previous StartPage while the user is choosing his ships and settings*/ this.startPageData = startPageData; Narrator.placing(narratorTxt, startPageData.getPlayerName()); battleboard = new Board(battleGrid); battleships = new Ship[5]; randomize(battleships); }