mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-09-18 00:21:58 +02:00
Comments, small bugfixes removed legacy elements
This commit is contained in:
@@ -18,6 +18,7 @@ class Doors(Collection):
|
||||
def tick_doors(self, state):
|
||||
results = list()
|
||||
for door in self:
|
||||
assert isinstance(door, Door)
|
||||
tick_result = door.tick(state)
|
||||
if tick_result is not None:
|
||||
results.append(tick_result)
|
||||
@@ -26,4 +27,5 @@ class Doors(Collection):
|
||||
|
||||
def reset(self):
|
||||
for door in self:
|
||||
assert isinstance(door, Door)
|
||||
door.reset()
|
||||
|
Reference in New Issue
Block a user