7from .visitor_class
import Visitor
8from .visitor_element_classes
import *
26 def Name(self, value) -> None:
49 self.
_name =
"Village of Self-Sufficiency"
53 shop.Name =
"Joe's Burger Joint"
54 shop.Address =
"47 Millings Rd."
56 shop.IngredientsForItems = {
57 "hamburger": [
"ground beef",
"hamburger buns",
"ketchup",
"mustard",
"mayonnaise",
"lettuce",
"tomato",
"onion",
"pickles" ]
62 shop.Name =
"Amelia's Butcher Shop"
63 shop.Address =
"12 Klaxon Ave."
65 shop.IngredientsForItems = {
71 shop.Name =
"Oxel's Breads and Buns Bakery"
72 shop.Address =
"131 Worthington Dr."
74 shop.IngredientsForItems = {
80 shop.Name =
"Connie's Condiments"
81 shop.Address =
"83 Millings Rd."
83 shop.IngredientsForItems = {
84 "ketchup" : [
"fresh ketchup" ],
85 "mustard" : [
"fresh mustard" ],
86 "mayonnaise" : [
"fresh mayonnaise" ]
91 shop.Name =
"Florence's Vegetables"
92 shop.Address =
"32 Main St."
94 shop.IngredientsForItems = {
104 shop.Name =
"Larry's Pickle Emporium"
105 shop.Address =
"34 Main St."
107 shop.IngredientsForItems = {
108 "pickles" : [
"vinegar",
"cucumber",
"salt" ]
113 shop.Name =
"Klyde and Sons Ketchup Makers"
114 shop.Address =
"800 Overtown Rd."
116 shop.IngredientsForItems = {
122 shop.Name =
"Molly's Mustard Mart"
123 shop.Address =
"810 Overtown Rd."
125 shop.IngredientsForItems = {
126 "fresh mustard" : [
"vinegar",
"mustard seed" ]
131 shop.Name =
"Turk's Mayo Supply"
132 shop.Address =
"820 Overtown Rd."
134 shop.IngredientsForItems = {
135 "fresh mayonnaise" : []
140 shop.Name =
"Vinnies' Sour Flavors"
141 shop.Address =
"830 Overtown Rd."
143 shop.IngredientsForItems = {
149 shop.Name =
"Jessie's Salt Works"
150 shop.Address =
"920 Overtown Rd."
152 shop.IngredientsForItems = {
157 def Accept(self, visitor : Visitor) ->
None:
Represent a butcher shop.
Represent a condiment grocer.
Represent a maker (of things).
Represent a pickle grocer.
Represent a restaurant shop.
Represent a vegetable grocer.
Represents a collection of shops that can be visited.
None Accept(self, Visitor visitor)
Accept a visitor and send them around to all the shops.
_shops
List of shops in this village (filled in by the LoadVillage() method)
_name
Name of this village (set by the LoadVillage() method)
str Name(self)
Property getter for the name of this village: value = o.Name
None __init__(self)
Constructor.
None LoadVillage(self)
Load the village.