예제 #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)