added home class
This commit is contained in:
parent
3080d0baa6
commit
30c6d5d626
@ -1,4 +1,4 @@
|
|||||||
class Garbage_tank:
|
class GarbageTank:
|
||||||
def __init__(self, volume_capacity, mass_capacity):
|
def __init__(self, volume_capacity, mass_capacity):
|
||||||
self.vcapacity = volume_capacity #m^3
|
self.vcapacity = volume_capacity #m^3
|
||||||
self.mcapacity = mass_capacity #kg
|
self.mcapacity = mass_capacity #kg
|
||||||
@ -7,10 +7,10 @@ class Engine:
|
|||||||
def __init__(self, power):
|
def __init__(self, power):
|
||||||
self.power = power #HP
|
self.power = power #HP
|
||||||
|
|
||||||
class Garbage_truck:
|
class GarbageTruck:
|
||||||
def __init__(self, dump_location, fuel_capacity, start_pos):
|
def __init__(self, dump_location, fuel_capacity, start_pos):
|
||||||
self.dump_location = dump_location
|
self.dump_location = dump_location
|
||||||
self.tank = Garbage_tank(15, 18000)
|
self.tank = GarbageTank(15, 18000)
|
||||||
self.engine = Engine(400)
|
self.engine = Engine(400)
|
||||||
self.fuel = fuel_capacity
|
self.fuel = fuel_capacity
|
||||||
self.pos = start_pos
|
self.pos = start_pos
|
||||||
|
Loading…
Reference in New Issue
Block a user