public void LaunchDifficultyMenu() { List <string> options = new List <string>(); options.Add("ŁATWY"); options.Add("NORMALNY"); options.Add("TRUDNY"); Menu menu = new Menu(options, "POZIOM TRUDNOŚCI", new Point(BANNER_HEIGHT + 1, 2)); menu.PrintTitle(); menu.PrintOptions(); menu.Choose(); switch (menu.GetCurrentOption()) { case "ŁATWY": stage = 500; break; case "NORMALNY": stage = 200; break; case "TRUDNY": stage = 100; break; } }
public void LaunchSizeMenu() { List <string> options = new List <string>(); options.Add("40 x 20"); options.Add("50 x 30"); options.Add("100 x 40"); Menu menu = new Menu(options, "WIELKOŚĆ MAPY", new Point(BANNER_HEIGHT + 1, 2)); menu.PrintTitle(); menu.PrintOptions(); menu.Choose(); switch (menu.GetCurrentOption()) { case "40 x 20": mapHeight = 20; mapWidth = 40; break; case "50 x 30": mapHeight = 30; mapWidth = 50; break; case "100 x 40": mapHeight = 40; mapWidth = 100; break; } }
public void LaunchMenu() { List <string> options = new List <string>(); options.Add("ROZPOCZNIJ GRĘ"); options.Add("ZAKOŃCZ"); Menu menu = new Menu(options, "", new Point(BANNER_HEIGHT + 1, 2)); menu.PrintTitle(); menu.PrintOptions(); menu.Choose(); switch (menu.GetCurrentOption()) { case "ROZPOCZNIJ GRĘ": LaunchDifficultyMenu(); LaunchSpeedMenu(); LaunchSizeMenu(); break; case "ZAKOŃCZ": Environment.Exit(0); break; } }
public void LaunchSpeedMenu() { List <string> options = new List <string>(); options.Add("WOLNO"); options.Add("NORMALNIE"); options.Add("SZYBKO"); Menu menu = new Menu(options, "PRĘDKOŚĆ", new Point(BANNER_HEIGHT + 1, 2)); menu.PrintTitle(); menu.PrintOptions(); menu.Choose(); switch (menu.GetCurrentOption()) { case "WOLNO": wait = 200; break; case "NORMALNIE": wait = 100; break; case "SZYBKO": wait = 50; break; } }