class PIZZA_DATA |
---|
**** | This class stores all prices and selections of Sathers Pizza Blitz. |
baseprice: FLT |
---|
**** | Computes the base price for a pizza of the currently selected size. |
has_topping(special_nr:INT,topping:STR): BOOL |
---|
**** | Returns 'true' if the special number 'special_nr' has the given topping. |
init(out specialnames: ARRAY{STR},out toppingnames: SET{STR}) |
---|
**** | Sets the recepies for the speical pizzas which are available from a specials list. The toppings mentioned in this list will be used to generate the list of toppings. |
price(topping:STR): FLT |
---|
**** | Computes the price for the given topping. Considers expensice toppings and the pizza size. |
topping_factor(topping:STR): FLT |
---|
**** | Computes the relative price for a topping. |
addpizza( name:STR, thistoppings: ARRAY{STR} ) |
---|
**** | Function sued for initialzing. Adds a special with the name 'name' and the list of toppings on that special. |
shared doubletoppings: ARRAY{STR} := |
---|
shared doubletoppings: ARRAY{STR} := |
---|
shared pizzatoppings: ARRAY{ARRAY{STR}}; |
---|
**** | List of toppings on special number `i'. |
shared pizzatoppings: ARRAY{ARRAY{STR}}; |
---|
**** | List of toppings on special number `i'. |
shared special_count: INT; |
---|
**** | List of all specials. |
shared special_count: INT; |
---|
**** | List of all specials. |
shared specials: ARRAY{STR}; |
---|
shared specials: ARRAY{STR}; |
---|
shared toppings: SET{STR}; |
---|
**** | List of all topping names. |
shared toppings: SET{STR}; |
---|
**** | List of all topping names. |