Friendly entities are now a subclass of fighting entities, and can die. The T key is now used to talk to friendly entities

This commit is contained in:
eichhornchen
2020-12-04 00:27:25 +01:00
parent 654bab7c1d
commit 3886bee1ba
5 changed files with 57 additions and 16 deletions

View File

@ -38,6 +38,7 @@ class KeyValues(Enum):
RIGHT = auto()
ENTER = auto()
SPACE = auto()
T = auto()
@staticmethod
def translate_key(key: str, settings: Settings) -> Optional["KeyValues"]:
@ -60,4 +61,6 @@ class KeyValues(Enum):
return KeyValues.ENTER
elif key == ' ':
return KeyValues.SPACE
elif key == 't':
return KeyValues.T
return None