public MWMarioDiningTable()
        {
            //Dining Table
            SwinGame.LoadBitmapNamed("diningTable.png", "diningTable.png");
            _mariodiningTable = SwinGame.CreateSprite(SwinGame.BitmapNamed("diningTable.png"));
            //

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

            //get a new customer
            _mariocustomer = MWMarioCustomerGenerator.NewMarioCustomer();

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

            //initiate a new red status bar
            _mariostatusBar = new MWStatusBar("emptyThick.png");
            _mariostatusBar.SetFillingImage("redThick.png");
            //
        }
コード例 #2
0
        public MWMovement()
        {
            _speed = 1;
            _ticks = 60;

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

            _statusBar = new MWStatusBar("hb_01c.png");
            _statusBar.SetFillingImage("hb_01b.png");
        }
コード例 #3
0
        public Stove(TableOfStove 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 MWStatusBar("emptyThick.png");
            _statusBar.SetFillingImage("blueThick.png");
            //
        }