mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-07-05 17:11:35 +02:00
Changed Collision Check
This commit is contained in:
@ -58,9 +58,16 @@ class Result:
|
||||
|
||||
@dataclass
|
||||
class ActionResult(Result):
|
||||
"""
|
||||
A specific Result class representing outcomes of actions.
|
||||
"""
|
||||
def __init__(self, *args, action_introduced_collision: bool = False, **kwargs):
|
||||
"""
|
||||
A specific Result class representing outcomes of actions.
|
||||
|
||||
:param action_introduced_collision: Wether the action did introduce a colision between agents or other entities.
|
||||
These need to be able to collide.
|
||||
"""
|
||||
super().__init__(*args, **kwargs)
|
||||
self.action_introduced_collision = action_introduced_collision
|
||||
|
||||
pass
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user