diff --git a/trailer.py b/trailer.py new file mode 100644 index 0000000..b44a0ab --- /dev/null +++ b/trailer.py @@ -0,0 +1,32 @@ +class Trailer: + + def __init__(self, capacity, _type, priority, weight): + self.capacity = capacity + self.type = _type + self.priority = priority + self.weight = weight + + +class Fertilizer(Trailer): # do nawożenia + + def __init__(self): + super(Fertilizer, self).__init__(capacity=1, _type="Fertilizer", priority=1, weight=1) # parametry do uzupełnienia + + +class Water(Trailer): # do podlewania + + def __init__(self): + super(Water, self).__init__(capacity=1, _type="Water", priority=1, weight=1) # parametry do uzupełnienia + + +class Harvest(Trailer): # do zbierania + + def __init__(self): + super(Harvest, self).__init__(capacity=1, _type="Harvest", priority=1, weight=1) # parametry do uzupełnienia + + +class Sow(Trailer): # do siania + + def __init__(self): + super(Sow, self).__init__(capacity=1, _type="Sow", priority=1, weight=1) # parametry do uzupełnienia +