Changed Collision Check

This commit is contained in:
Steffen Illium
2023-11-23 11:07:16 +01:00
parent b68f9e1911
commit 142bbb2c0c
4 changed files with 30 additions and 14 deletions

View File

@ -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