Movement printing and Results, state, state reset.

This commit is contained in:
Steffen Illium
2023-11-16 17:08:08 +01:00
parent 7f1d99fe18
commit 6c27aa8eaf
11 changed files with 45 additions and 21 deletions

View File

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