mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-06-19 19:02:53 +02:00
Movement printing and Results, state, state reset.
This commit is contained in:
@ -40,6 +40,7 @@ class Object:
|
||||
return True
|
||||
|
||||
def __init__(self, str_ident: Union[str, None] = None, **kwargs):
|
||||
self._status = None
|
||||
self._bound_entity = None
|
||||
self._observers = set()
|
||||
self._str_ident = str_ident
|
||||
@ -84,6 +85,10 @@ class Object:
|
||||
def summarize_state(self):
|
||||
return dict()
|
||||
|
||||
def clear_temp_state(self):
|
||||
self._status = None
|
||||
return self
|
||||
|
||||
def bind_to(self, entity):
|
||||
# noinspection PyAttributeOutsideInit
|
||||
self._bound_entity = entity
|
||||
|
Reference in New Issue
Block a user