Inteligentna_smieciarka/garbage_truck.py

19 lines
637 B
Python
Raw Normal View History

2023-03-31 13:49:27 +02:00
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
2023-03-31 13:49:27 +02:00
class GarbageTruck:
def __init__(self, dump_location, fuel_capacity, xpos, ypos, orientation):
self.dump_location = dump_location
2023-03-31 13:49:27 +02:00
self.tank = GarbageTank(15, 18000)
self.engine = Engine(400)
self.fuel = fuel_capacity
self.xpos = xpos
self.ypos = ypos
self.orientation = orientation
self.houses = [] #lista domów do odwiedzenia