Beispiel #1
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");
            //
        }
        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");
            //
        }
        public ZYDiningTable()
        {
            //Dining Table
            SwinGame.LoadBitmapNamed("diningTable.png", "diningTable.png");
            _diningTable = SwinGame.CreateSprite(SwinGame.BitmapNamed("diningTable.png"));
            //

            //initialize a food sprite without image
            _food = SwinGame.CreateSprite(SwinGame.BitmapNamed(""));

            //get a new customer
            _customer = ZYPokemonCustomerGenerator.NewCustomer();

            //initialize Timer and start it for the first customer, set ticks to 0 and set the state of customer as waiting
            _gameTime = SwinGame.CreateTimer();
            SwinGame.StartTimer(_gameTime);
            _ticks   = 0;
            _waiting = true;
            //

            //initiate a new red status bar
            _statusBar = new ZYStatusBar("emptyThick.png");
            _statusBar.SetFillingImage("redThick.png");
            //
        }
Beispiel #4
0
        public ZYMovement()
        {
            _speed = 1;
            _ticks = 60;

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

            _statusBar = new ZYStatusBar("hb_01c.png");
            _statusBar.SetFillingImage("hb_01b.png");
        }
Beispiel #5
0
        public ZYEasyPlayerMovement()
        {
            _speed = 1;
            _ticks = 60;

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

            _statusBar = new ZYStatusBar("hb_01c.png");
            _statusBar.SetFillingImage("hb_01b.png");

            zYPlayerWish = new ZYPlayerWish("");
            zYPlayerWish.SetFillingImage("normalEmoji.png");
        }
Beispiel #6
0
        public ZYStove(ZYTableOfStove tableOfStove)
        {
            //set the food to cook to null and cooking state as false
            _foodToCook = "";
            _cooking    = false;
            //

            //bind the table
            _tableOfStove = tableOfStove;

            //create the stove SPRITE
            SwinGame.LoadBitmapNamed("stove", "stove.png");
            _stove = SwinGame.CreateSprite(SwinGame.BitmapNamed("stove"));
            //

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

            //initiate new BlUE status bar
            _statusBar = new ZYStatusBar("emptyThick.png");
            _statusBar.SetFillingImage("blueThick.png");
            //
        }