1 package at.ac.tuwien.sbc.valesriegler.types;
3 import java.io.Serializable;
5 import at.ac.tuwien.sbc.valesriegler.common.HasId;
6 import at.ac.tuwien.sbc.valesriegler.common.Util;
7 import at.ac.tuwien.sbc.valesriegler.waiter.Waiter;
10 * this is a PIZZA! omnomnomnom
15 public class Pizza extends PizzaOrder implements Serializable {
16 public Waiter deliveryAgent;
18 // private Person consumer;
20 private Pizza(int id, PizzaType type, int cookId, int orderId) {
23 this.pizzaType = type;
25 this.orderId = orderId;
28 public static Pizza createPizzaFromPizzaOrder(PizzaOrder pizzaorder, int cookId) {
29 return new Pizza(pizzaorder.getId(), pizzaorder.getPizzaType(), cookId, pizzaorder.getOrderId());
35 public String toString() {
36 return "Pizza [pizzaType=" + pizzaType + ", id=" + id + ", cookId=" + cookId + ", deliveryAgent=" + deliveryAgent + "]";