private void MenuStrip_Game_DifficultyChanged(object sender, EventArgs e) { this.difficulty = (Difficulty)Enum.Parse(typeof(Difficulty), (string)((ToolStripMenuItem)sender).Tag); this.LoadGame(null, null); }
public PlayScreen(Difficulty difficulty) { AddChild(new Board(difficulty)); }
public void RecordWin(Difficulty difficulty, int time) { RecordResult(difficulty, time, true); }
public void RecordLoss(Difficulty difficulty, int time) { RecordResult(difficulty, time, false); }
private void HardDifficulty_Click(object sender, EventArgs e) { difficulty = Difficulty.Hard; SetUpGame(); }
private void NormalDifficulty_Click(object sender, EventArgs e) { difficulty = Difficulty.Normal; SetUpGame(); }
private void EasyDifficulty_Click(object sender, EventArgs e) { difficulty = Difficulty.Easy; SetUpGame(); }
public Game(Difficulty diff, int Width = 8, int Height = 8, int BombCount = 10) { SetDifficulty(diff, Width, Height, BombCount); InitializeBoard(); }
public View(Difficulty difficulty = Difficulty.Easy) { Game = new Game(difficulty); InitializeComponent(); }