Exemple #1
0
 /// <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);
 }
Exemple #2
0
 /// <summary>
 /// Add an entry to the menu
 /// </summary>
 /// <param name="menuEntry">New menu entry</param>
 protected void AddEntry(MenuEntry menuEntry)
 {
     menuEntries.Add(menuEntry);
 }