// this restarts a complete new game , it shows some of the parts that have to be reset, Lists, radio buttons, background images, it's a proof of concept not the full code needed. public void NewGame() { bettingDetails = new BettingDetails(); ships = new Ships[4]; LoadShips(); LoadPunters(); //PunterCash just loads the balance of cash each punter has // PunterCash(); NewGameReset(); splitContainer1.Panel1.BackgroundImage = (Resource1.starry_sky_night_stars_115042_1920x1080); splitContainer1.Panel1.BackgroundImageLayout = ImageLayout.Tile; bettingDetails.AllBusted[0] = true; bettingDetails.AllBusted[1] = true; bettingDetails.AllBusted[2] = true; bettingDetails.AllBusted[3] = true; lblWagerName.Text = ""; lblWinner.Text = ""; lblCreedoCash.Text = ""; lblJubbaCash.Text = ""; lblSnokeCash.Text = ""; lblWattoCash.Text = ""; }
public Race() { InitializeComponent(); ships = new Ships[4]; bettingDetails = new BettingDetails(); LoadShips(); LoadPunters(); //PunterCash just loads the balance of cash each punter has PunterCash(); }