Пример #1
0
    def __init__(self):
        """Initializes a Warehouse with basic logic as provided by the Creer code generator."""
        Building.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._exposure = 0
        self._fire_added = 0
Пример #2
0
    def __init__(self):
        """Initializes a Warehouse with basic logic as provided by the Creer code generator."""
        Building.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._exposure = 0
        self._fire_added = 0
    def __init__(self):
        """ initializes a PoliceDepartment with basic logic as provided by the Creer code generator
        """
        Building.__init__(self)

        # turns to death
        self._firethreshold = 2
Пример #4
0
    def __init__(self):
        """Initializes a FireDepartment with basic logic as provided by the Creer code generator.
        """
        Building.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._fire_extinguished = 0
Пример #5
0
 def __init__(self):
     """Initializes a PoliceDepartment with basic logic as provided by the Creer code generator."""
     Building.__init__(self)
Пример #6
0
 def __init__(self):
     """Initializes a WeatherStation with basic logic as provided by the Creer code generator."""
     Building.__init__(self)
Пример #7
0
    def __init__(self):
        """Initializes a FireDepartment with basic logic as provided by the Creer code generator."""
        Building.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._fire_extinguished = 0
Пример #8
0
 def __init__(self):
     """Initializes a WeatherStation with basic logic as provided by the Creer code generator."""
     Building.__init__(self)