From 1c4184c42687d1c40b7f91824ef2a3238f04764c Mon Sep 17 00:00:00 2001 From: jbiesek Date: Wed, 23 Mar 2022 20:02:51 +0100 Subject: [PATCH] Add trailer class --- trailer.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 trailer.py 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 +