public void Draw()
 {
     _customer.Draw();
     SwinGame.DrawSprite(_diningTable);
     SwinGame.DrawSprite(_food);
     _statusBar.Draw(_ticks, _diningTable.X + 22, _diningTable.Y + 25);
 }
 public override void Draw()
 {
     _servingArea.Draw();
     _sideBar.Draw();
     _btmBar.Draw();
     _giveUpButton.Draw();
     SwinGame.DrawText("Medium", Color.Black, "Arial", 15, 370, 10);
     SwinGame.DrawText("Difficult", Color.Black, "Arial", 15, 440, 50);
     //draw the part of full bar based on the time passed.
     _statusBar.Draw((int)_ticks, 365, 32);
 }
Exemplo n.º 3
0
        public void Draw()
        {
            //first draw table
            _tableOfStove.Draw();

            //second draw the stove sprite
            SwinGame.DrawSprite(_stove);

            //draw the part of full bar based on the time passed.
            _statusBar.Draw((int)_ticks, _stove.X + 35, _stove.Y + 7);
        }
Exemplo n.º 4
0
 public void Draw(float x, float y)
 {
     _statusBar.Draw(_ticks, x, y);
 }