예제 #1
0
        public BS_End(ViewManager viewManager) : base(viewManager)
        {
            //background Image

            SwinGame.LoadBitmapNamed("Ending1", "Ending1");
            _menu = SwinGame.CreateSprite(SwinGame.BitmapNamed("Ending1"));
            //

            //Go to menu
            _gotoMenuButton = new BS_Button("grey_button06.png");
            _gotoMenuButton.SetWidth(191);
            _gotoMenuButton.SetHeight(49);
            _gotoMenuButton.SetText("-Back to Menu-", 25);
            //
        }
        public BS_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 BS_Button("grey_button06.png");
            _gotoMenuButton.SetWidth(191);
            _gotoMenuButton.SetHeight(49);
            _gotoMenuButton.SetText(" Back to Menu ", 25);
            //
        }
        public Settings(ViewManager viewManager)
            : base(viewManager)
        {
            //background Image
            _image = BS_bgSelector.bg_img();
            SwinGame.LoadBitmapNamed(_image, _image);
            _menu = SwinGame.CreateSprite(SwinGame.BitmapNamed(_image));
            //

            //next img button
            _nextImgButton = new BS_Button("flatDark24_2.png");
            _nextImgButton.SetWidth(30);
            _nextImgButton.SetHeight(30);
            _nextImgButton.SetText(" Background Changer ", 15);

            //previous img button
            _previousImgButton = new BS_Button("flatDark23_2.png");
            _previousImgButton.SetWidth(30);
            _previousImgButton.SetHeight(30);

            //BGM1 button
            _BGM1Button = new MWButton("red_button2.png");
            _BGM1Button.SetWidth(80);
            _BGM1Button.SetHeight(40);
            _BGM1Button.SetText("Adventure", 15);

            //BGM2 button
            _BGM2Button = new MWButton("red_button2.png");
            _BGM2Button.SetWidth(80);
            _BGM2Button.SetHeight(40);
            _BGM2Button.SetText(" Fantasy ", 15);

            //stop BGM button
            _stopBGMButton = new MWButton("red_button2.png");
            _stopBGMButton.SetWidth(80);
            _stopBGMButton.SetHeight(40);
            _stopBGMButton.SetText("No Music", 15);

            //Go to menu
            _gotoMenuButton = new BS_Button("grey_button06.png");
            _gotoMenuButton.SetWidth(191);
            _gotoMenuButton.SetHeight(49);
            _gotoMenuButton.SetText(" Back to Menu ", 25);
            //
        }
        public BS_Game(ViewManager viewManager) : base(viewManager)
        {
            _sideBar     = new BS_SideBar(_viewManager);
            _servingArea = new BS_ServingArea();
            _btmBar      = new BS_BottomBar();

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

            //Register for Observer Pattern
            foreach (BS_DiningTable diningTable in _servingArea.DiningTable)
            {
                diningTable.RegisterSideBar(_sideBar);
            }
            _btmBar.RegisterStove(_servingArea.Stoves);
            _servingArea.Player.RegisterHoldingFrame(_sideBar.HoldingFoodFrame);
            //
        }
        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);
        }