mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-06-22 03:31:35 +02:00
Movement printing and Results, state, state reset.
This commit is contained in:
@ -152,6 +152,9 @@ class Gamestate(object):
|
||||
results = list()
|
||||
self.curr_step += 1
|
||||
|
||||
for entity in self.entities.iter_entities():
|
||||
entity.clear_temp_state()
|
||||
|
||||
# Main Agent Step
|
||||
results.extend(self.rules.tick_pre_step_all(self))
|
||||
|
||||
@ -210,6 +213,7 @@ class Gamestate(object):
|
||||
"""
|
||||
Whether it is safe to move to the target positions and moving entity does not introduce a blocking attribute,
|
||||
when position is allready occupied.
|
||||
!!! Will still report true even though, there could be an enity, which var_can_collide == true !!!
|
||||
|
||||
:param moving_entity: Entity
|
||||
:param target_position: pos
|
||||
|
Reference in New Issue
Block a user