public void act(Table table, EnumRoom.JugType type = EnumRoom.JugType.Tap) // Bring Water { Jug jug = initRoomModel.jugList[0]; // Fetch a Jug table.jugList.Add(jug); // Add the Jug to the table initRoomModel.jugList.RemoveAt(0); //Remove the Jug from stock }
public void act(Table table, EnumRoom.JugType type) { throw new NotImplementedException(); }
public Jug(EnumRoom.JugType type, EnumRoom.MaterialState state) : base("Jug", type, state) { }
public void Action(String choice, Table table, Waiter waiter = null, EnumRoom.BreadType breadType = EnumRoom.BreadType.White, EnumRoom.JugType jugType = EnumRoom.JugType.Tap) { switch (choice) { case "BringBread": BringBread bringBread = (BringBread)this.mapActions["BringBread"]; bringBread.act(table, breadType); break; case "BringJug": BringJug bringJug = (BringJug)this.mapActions["BringJug"]; bringJug.act(table, jugType); break; /* case "Serve": * //this.mapActions["Serve"].act(); * break; */ case "CleanTable": CleanTable cleanTable = (CleanTable)this.mapActions["CleanTable"]; cleanTable.act(table, waiter); break; default: break; } }