def __init__(self): """Initializes a Forecast with basic logic as provided by the Creer code generator.""" GameObject.__init__(self) # private attributes to hold the properties so they appear read only self._controlling_player = None self._direction = "" self._intensity = 0
def __init__(self): """Initializes a Building with basic logic as provided by the Creer code generator.""" GameObject.__init__(self) # private attributes to hold the properties so they appear read only self._bribed = False self._building_east = None self._building_north = None self._building_south = None self._building_west = None self._fire = 0 self._health = 0 self._is_headquarters = False self._owner = None self._x = 0 self._y = 0
def __init__(self): """Initializes a Player with basic logic as provided by the Creer code generator.""" GameObject.__init__(self) # private attributes to hold the properties so they appear read only self._bribes_remaining = 0 self._buildings = [] self._client_type = "" self._fire_departments = [] self._headquarters = None self._lost = False self._name = "Anonymous" self._other_player = None self._police_departments = [] self._reason_lost = "" self._reason_won = "" self._time_remaining = 0 self._warehouses = [] self._weather_stations = [] self._won = False