Пример #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main()
 {
     using (var instance = new SystemMain())
     {
         instance.Run();
     }
 }
Пример #2
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main()
 {
     using (var instance = new SystemMain())
     {
         instance.Run();
     }
 }
Пример #3
0
        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);
        }
Пример #4
0
        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);
        }
Пример #5
0
        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);
        }
Пример #6
0
        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);
        }
Пример #7
0
        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);
        }
Пример #8
0
        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);
        }
Пример #9
0
 public ScoresMenu(Stack<IScreen> stack, SystemMain main)
 {
     _menuStack = stack;
     _systemMain = main;
     _menu = new ScreenMenu(_menuText,"Scores Menu");
 }
Пример #10
0
 public ScoresMenu(Stack <IScreen> stack, SystemMain main)
 {
     _menuStack  = stack;
     _systemMain = main;
     _menu       = new ScreenMenu(_menuText, "Scores Menu");
 }
Пример #11
0
 public void AddValuesToDictionaryActualDict()
 {
     _target = new SystemMain();
     Assert.AreEqual(true, SystemMain.FontPackage.ContainsKey("Main"));
     Assert.AreEqual(true, SystemMain.TexturePackage.ContainsKey("Boss"));
 }
Пример #12
0
 public void CreateTexturePackage()
 {
     _target = new SystemMain();
     Assert.IsNotNull(_target);
     Assert.IsNotNull(SystemMain.TexturePackage);
 }
Пример #13
0
 public void CreateFontPackage()
 {
     _target = new SystemMain();
     Assert.IsNotNull(_target);
     Assert.IsNotNull(SystemMain.FontPackage);
 }