Add trailer class
This commit is contained in:
parent
857eb2bbd3
commit
1c4184c426
32
trailer.py
Normal file
32
trailer.py
Normal file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user