diff --git a/garbage_truck.py b/garbage_truck.py new file mode 100644 index 0000000..45f611a --- /dev/null +++ b/garbage_truck.py @@ -0,0 +1,17 @@ +class GarbageTank: + 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 GarbageTruck: + def __init__(self, dump_location, fuel_capacity, start_pos): + self.dump_location = dump_location + self.tank = GarbageTank(15, 18000) + self.engine = Engine(400) + self.fuel = fuel_capacity + self.pos = start_pos + self.houses = [] #lista domów do odwiedzenia \ No newline at end of file diff --git a/home.py b/home.py new file mode 100644 index 0000000..e795dfc --- /dev/null +++ b/home.py @@ -0,0 +1,4 @@ +class Home: + def __init__(self, coord): + self.coord = coord + self.collect_request = False \ No newline at end of file diff --git a/litter.py b/litter.py new file mode 100644 index 0000000..6dc9dd9 --- /dev/null +++ b/litter.py @@ -0,0 +1,8 @@ +class Litter: + + types = ['PAPER', 'GLASS', 'PLASTIC', 'METAL', 'BIO', 'MUNICIPAL', 'ELECTRONICS'] + + def __init__(self, type, volume, mass): + self.type = type + self.volume = volume + self.mass = mass