Raumkonstanten.

This commit is contained in:
Olli Graf
2022-04-27 08:25:18 +02:00
parent 0ded3de76e
commit 71e76c957e
5 changed files with 40 additions and 10 deletions

23
tomb.py
View File

@@ -78,10 +78,23 @@ def inputLoop(stdscr):
stdscr.addstr(11,0,'Was nun? ')
command = stdscr.getstr(11,10,40).decode(encoding="utf-8")
command = command.rstrip()
parsedCommand = world.parseInput(command)
commandid = parsedCommand.commandid
verarbeiteBefehl(parsedCommand)
schrittzaehler = schrittzaehler +1
actionmodul.raumaction()
if command.startswith('debug:'):
debugcommand = command.split(':',1)
logging.debug(f'debugcommand: {debugcommand}')
if debugcommand[1] == 'items':
logging.debug('liste Items')
logging.debug(world.gegenstaende)
for item in world.gegenstaende:
logging.debug(f'Id:{item.id} - Name:{item.name}')
else:
parsedCommand = world.parseInput(command)
commandid = parsedCommand.commandid
verarbeiteBefehl(parsedCommand)
schrittzaehler = schrittzaehler +1
actionmodul.raumaction()
wrapper(inputLoop)