public BS_DiningTable() { //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 = BS_PokemonCustomerGenerator.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 BS_StatusBar("emptyThick.png"); _statusBar.SetFillingImage("redThick.png"); // }
public BS_Movement() { _speed = 1; _ticks = 60; _gameTime = SwinGame.CreateTimer(); SwinGame.StartTimer(_gameTime); _statusBar = new BS_StatusBar("hb_01c.png"); _statusBar.SetFillingImage("hb_01b.png"); }
public BS_Stove(BS_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 BS_StatusBar("emptyThick.png"); _statusBar.SetFillingImage("blueThick.png"); // }