/// <summary> /// The main entry point for the application. /// </summary> static void Main() { using (var instance = new SystemMain()) { instance.Run(); } }
public MainMenu(Stack<IScreen> stack, SystemMain main) { _menuStack = stack; _systemMain = main; _menuText = new List<string> {"Take Quiz", "Options", "View Scores"/*, "Edit Material"*/, "Exit"}; _menu = new ScreenMenu(_menuText,"XNA GAMES!"); //SystemMain.Drawing.DrawInstruction(40, 640, " to go back", SystemMain.TexturePackage["B"], 4); }
public MainMenu(Stack <IScreen> stack, SystemMain main) { _menuStack = stack; _systemMain = main; _menuText = new List <string> { "Take Quiz", "Options", "View Scores" /*, "Edit Material"*/, "Exit" }; _menu = new ScreenMenu(_menuText, "XNA GAMES!"); //SystemMain.Drawing.DrawInstruction(40, 640, " to go back", SystemMain.TexturePackage["B"], 4); }
public OptionsMenu(Stack<IScreen> stack, SystemMain main) { _menuStack = stack; _systemMain = main; if (Game.Equals("DeathSquid")) _menuText = new List<string> {"DeathSquid", "Breakout", "Back"}; else _menuText = new List<string> {"Breakout", "DeathSquid", "Back"}; _menu = new ScreenMenu(_menuText, "Options"); SystemMain.Drawing.DestroyTips(); SystemMain.Drawing.DrawInstruction(40, 560, " to continue", SystemMain.TexturePackage["A"], 3); SystemMain.Drawing.DrawInstruction(40, 640, " to go back", SystemMain.TexturePackage["B"], 3); }
public SystemDisplay(Stack<IScreen> screens, SystemMain main) { _menuStack = screens; _systemMain = main; //_qLoad = new QuestionLoader(); //populate a booklet from file system _booklet = SystemMain.Booklets[SystemMain.SelectedBooklet]; _player = "Eric"; _scoreManager = new ScoreManager(_player); _menu = new ScreenMenu(_menuText, "Are you ready to take your quiz?"); SystemMain.Drawing.DestroyTips(); SystemMain.Drawing.DrawInstruction(40, 560, " to continue", SystemMain.TexturePackage["A"], 3); SystemMain.Drawing.DrawInstruction(40, 640, " to go back", SystemMain.TexturePackage["B"], 4); }
public SystemDisplay(Stack <IScreen> screens, SystemMain main) { _menuStack = screens; _systemMain = main; //_qLoad = new QuestionLoader(); //populate a booklet from file system _booklet = SystemMain.Booklets[SystemMain.SelectedBooklet]; _player = "Eric"; _scoreManager = new ScoreManager(_player); _menu = new ScreenMenu(_menuText, "Are you ready to take your quiz?"); SystemMain.Drawing.DestroyTips(); SystemMain.Drawing.DrawInstruction(40, 560, " to continue", SystemMain.TexturePackage["A"], 3); SystemMain.Drawing.DrawInstruction(40, 640, " to go back", SystemMain.TexturePackage["B"], 4); }
public OptionsMenu(Stack <IScreen> stack, SystemMain main) { _menuStack = stack; _systemMain = main; if (Game.Equals("DeathSquid")) { _menuText = new List <string> { "DeathSquid", "Breakout", "Back" } } ; else { _menuText = new List <string> { "Breakout", "DeathSquid", "Back" } }; _menu = new ScreenMenu(_menuText, "Options"); SystemMain.Drawing.DestroyTips(); SystemMain.Drawing.DrawInstruction(40, 560, " to continue", SystemMain.TexturePackage["A"], 3); SystemMain.Drawing.DrawInstruction(40, 640, " to go back", SystemMain.TexturePackage["B"], 3); }
public ScoresMenu(Stack<IScreen> stack, SystemMain main) { _menuStack = stack; _systemMain = main; _menu = new ScreenMenu(_menuText,"Scores Menu"); }
public ScoresMenu(Stack <IScreen> stack, SystemMain main) { _menuStack = stack; _systemMain = main; _menu = new ScreenMenu(_menuText, "Scores Menu"); }
public void AddValuesToDictionaryActualDict() { _target = new SystemMain(); Assert.AreEqual(true, SystemMain.FontPackage.ContainsKey("Main")); Assert.AreEqual(true, SystemMain.TexturePackage.ContainsKey("Boss")); }
public void CreateTexturePackage() { _target = new SystemMain(); Assert.IsNotNull(_target); Assert.IsNotNull(SystemMain.TexturePackage); }
public void CreateFontPackage() { _target = new SystemMain(); Assert.IsNotNull(_target); Assert.IsNotNull(SystemMain.FontPackage); }