public CookAgent(String name) { super(); this.name = name; menu.addItem("Marsinara with Meatballs", 9.49); menu.addItem("Chicken Fusilli", 9.49); menu.addItem("Pepperoni Pizza", 6.99); menu.addItem("Celestial Caesar Chicken Salad", 8.49); menu.addItem("Bread Sticks", 4.99); for (int i = 0; i < menu.menuList.size(); i++) { inventory.put(menu.menuList.get(i), startAmount); } foods = Collections.synchronizedList(new ArrayList<Food>()); foods.add(new Food("Marsinara with Meatballs", 5, 4, 6, 7000)); foods.add(new Food("Chicken Fusilli", 5, 4, 6, 6000)); foods.add(new Food("Pepperoni Pizza", 5, 4, 6, 4000)); foods.add(new Food("Celestial Caesar Chicken Salad", 5, 4, 6, 7000)); foods.add(new Food("Bread Sticks", 5, 4, 6, 2500)); recipeTimes.put("Marsinara with Meatballs", 30); recipeTimes.put("Chicken Fusilli", 30); recipeTimes.put("Pepperoni Pizza", 40); recipeTimes.put("Celestial Caesar Chicken Salad", 20); recipeTimes.put("Bread Sticks", 20); // market = m; // restaurant = rest; }
public RestaurantCafe(SimCityGui gui, String name) { this.gui = gui; this.name = name; type = "American"; // initial food values are high so no mkt orders for now.... Food food = new Food("Apple-Granola Pancakes", 1500, 15, 4, 8, 10.49); foods.add(food); food = new Food("Sirloin Steak and Eggs", 2000, 15, 4, 8, 11.99); foods.add(food); food = new Food("Ham and Cheese Omelet", 2000, 12, 4, 8, 9.99); foods.add(food); food = new Food("Walt's Chili", 1750, 5, 14, 8, 6.99); foods.add(food); food = new Food("Main Street Cheeseburger", 1800, 15, 4, 8, 11.99); foods.add(food); menu2.addItem("Apple-Granola Pancakes", 10.49); menu2.addItem("Sirloin Steak and Eggs", 11.99); menu2.addItem("Ham and Cheese Omelet", 9.99); menu2.addItem("Walt's Chili", 6.99); menu2.addItem("Main Street Cheeseburger", 11.99); menu = new Menu(foods); setLayout(new GridLayout(1, 2, 20, 20)); group.setLayout(new GridLayout(1, 2, 10, 10)); group.add(customerPanel); group.add(waiterPanel); }