17 lines
566 B
Python
17 lines
566 B
Python
class Garbage_tank:
|
|
def __init__(self, volume_capacity, mass_capacity):
|
|
self.vcapacity = volume_capacity #m^3
|
|
self.mcapacity = mass_capacity #kg
|
|
|
|
class Engine:
|
|
def __init__(self, power):
|
|
self.power = power #HP
|
|
|
|
class Garbage_truck:
|
|
def __init__(self, dump_location, fuel_capacity, start_pos):
|
|
self.dump_location = dump_location
|
|
self.tank = Garbage_tank(15, 18000)
|
|
self.engine = Engine(400)
|
|
self.fuel = fuel_capacity
|
|
self.pos = start_pos
|
|
self.houses = [] #lista domów do odwiedzenia |