Compare commits
3 Commits
0a18d1a656
...
bb6c1d0c2b
Author | SHA1 | Date | |
---|---|---|---|
bb6c1d0c2b | |||
|
30c6d5d626 | ||
3080d0baa6 |
17
garbage_truck.py
Normal file
17
garbage_truck.py
Normal file
@ -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
|
4
home.py
Normal file
4
home.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
class Home:
|
||||||
|
def __init__(self, coord):
|
||||||
|
self.coord = coord
|
||||||
|
self.collect_request = False
|
Loading…
Reference in New Issue
Block a user