public ZYMediumMode(ViewManager viewManager) : base(viewManager)
        {
            _sideBar     = new EasyModeSideBar(_viewManager);
            _servingArea = new ZYServingAreaMedium();

            _btmBar = new ZYBottomBar();

            _giveUpButton = new ZYButton("pauseButton.png");
            _giveUpButton.SetWidth(80);
            _giveUpButton.SetHeight(80);
            _giveUpButton.SetText("Pause", 20);

            //Register for Observer Pattern
            foreach (ZYDiningTable diningTable in _servingArea.DiningTable)
            {
                diningTable.RegisterSideBar(_sideBar);
            }
            _btmBar.RegisterStove(_servingArea.Stoves);
            _servingArea.Player.RegisterHoldingFrame(_sideBar.HoldingFoodFrame);
            //

            //initiate _gameTime
            _gameTime = SwinGame.CreateTimer();
            SwinGame.StartTimer(_gameTime);

            //initiate new BlUE status bar
            _statusBar = new ZYStatusBar("blackprogressbar.png");
            _statusBar.SetFillingImage("blueprogressbar.png");
            //
        }
示例#2
0
        public ZYDifficultMode(ViewManager viewManager) : base(viewManager)
        {
            _sideBar     = new ZYSideBar(_viewManager);
            _servingArea = new ZYServingAreaDifficult();

            _btmBar = new ZYBottomBar();

            _giveUpButton = new ZYButton("blue_button07.png");
            _giveUpButton.SetWidth(80);
            _giveUpButton.SetHeight(80);
            _giveUpButton.SetText("Exit", 35);

            //Register for Observer Pattern
            foreach (ZYDiningTable diningTable in _servingArea.DiningTable)
            {
                diningTable.RegisterSideBar(_sideBar);
            }
            _btmBar.RegisterStove(_servingArea.Stoves);
            _servingArea.Player.RegisterHoldingFrame(_sideBar.HoldingFoodFrame);
            //

            //initiate new BlUE status bar
            _statusBar = new ZYStatusBar("blackprogressbar.png");
            _statusBar.SetFillingImage("blueprogressbar.png");
            //
        }
示例#3
0
        public PauseScreenForMedium(ViewManager viewManager) : base(viewManager)
        {
            //background Image
            _image = "pauseBackground.jpg";
            SwinGame.LoadBitmapNamed(_image, _image);
            _menu = SwinGame.CreateSprite(SwinGame.BitmapNamed(_image));
            //

            //Go to menu
            _gotoMenuButton = new ZYButton("grey_button06.png");
            _gotoMenuButton.SetWidth(191);
            _gotoMenuButton.SetHeight(49);
            _gotoMenuButton.SetText(" Resume ", 25);
            //
        }
示例#4
0
        public Instruction(ViewManager viewManager) : base(viewManager)
        {
            //background Image
            _image = "instruction.png";
            SwinGame.LoadBitmapNamed(_image, _image);
            _menu = SwinGame.CreateSprite(SwinGame.BitmapNamed(_image));
            //

            //Go to menu
            _gotoMenuButton = new ZYButton("grey_button06.png");
            _gotoMenuButton.SetWidth(191);
            _gotoMenuButton.SetHeight(49);
            _gotoMenuButton.SetText(" Back to Menu ", 25);
            //
        }
        public ZYStartDifficult(ViewManager viewManager) : base(viewManager)
        {
            //background Image
            _image = "hell.png";
            SwinGame.LoadBitmapNamed(_image, _image);
            _menu = SwinGame.CreateSprite(SwinGame.BitmapNamed(_image));
            //

            //Go to menu
            _gotoMenuButton = new ZYButton("grey_button06.png");
            _gotoMenuButton.SetWidth(191);
            _gotoMenuButton.SetHeight(49);
            _gotoMenuButton.SetText("  Start Next Level", 20);
            //
        }
        public ZYEnd(ViewManager viewManager) : base(viewManager)
        {
            winOrLose = false;
            //background Image
            SwinGame.LoadBitmapNamed("loseBackground", "loseBackground.jpg");
            _menu = SwinGame.CreateSprite(SwinGame.BitmapNamed("loseBackground"));
            //

            SwinGame.LoadBitmapNamed("winEnding.jpg", "winEnding.jpg");
            winEnding = SwinGame.CreateSprite(SwinGame.BitmapNamed("winEnding.jpg"));
            //Go to menu
            _gotoMenuButton = new ZYButton("grey_button06.png");
            _gotoMenuButton.SetWidth(191);
            _gotoMenuButton.SetHeight(49);
            _gotoMenuButton.SetText("-Back to Menu-", 25);
            //
        }
        public ZYCharacterInterface(ViewManager viewManager) : base(viewManager)
        {
            //background Image
            _image = "characterSelectionBackground.jpg";
            SwinGame.LoadBitmapNamed(_image, _image);
            _menu = SwinGame.CreateSprite(SwinGame.BitmapNamed(_image));
            //

            //Male Button
            _maleButton = new ZYButton("grey_button06.png");
            _maleButton.SetWidth(191);
            _maleButton.SetHeight(49);
            _maleButton.SetText(" Male ", 25);
            //

            _femaleButton = new ZYButton("grey_button06.png");
            _femaleButton.SetWidth(191);
            _femaleButton.SetHeight(49);
            _femaleButton.SetText(" Female ", 25);
        }
        public Menu(ViewManager viewManager) : base(viewManager)
        {
            _backgroundImage = BS_bgSelector.bg_img();
            SwinGame.LoadBitmapNamed(_backgroundImage, _backgroundImage);
            _menu = SwinGame.CreateSprite(SwinGame.BitmapNamed(_backgroundImage));

            _startButton = new ZYButton("grey_button06.png");
            _startButton.SetWidth(191);
            _startButton.SetHeight(49);
            _startButton.SetText("     Start     ", 33);

            _settingsButton = new BS_Button("grey_button06.png");
            _settingsButton.SetWidth(191);
            _settingsButton.SetHeight(49);
            _settingsButton.SetText("   Settings  ", 33);

            _instructionButton = new ZYButton("grey_button06.png");
            _instructionButton.SetWidth(191);
            _instructionButton.SetHeight(49);
            _instructionButton.SetText(" Instruction ", 33);
        }