/// <summary> /// Initialize a new instance of MainMenu /// </summary> /// <param name="game">The game</param> public MainMenu(SchmupGame game) : base(game) { MenuEntry menuEntry; menuEntry = new MenuEntry("Start"); AddEntry(menuEntry); menuEntry = new MenuEntry("Options"); AddEntry(menuEntry); menuEntry = new MenuEntry("Exit"); AddEntry(menuEntry); }
/// <summary> /// Add an entry to the menu /// </summary> /// <param name="menuEntry">New menu entry</param> protected void AddEntry(MenuEntry menuEntry) { menuEntries.Add(menuEntry); }