This commit is contained in:
Olli Graf
2022-05-18 08:43:59 +02:00
parent 9fa3e55775
commit e671a22fa2
6 changed files with 71 additions and 7 deletions

View File

@@ -75,7 +75,6 @@ logging.debug('World initialisiert')
actionmodul = ActionModul.ActionModul(world)
def inputLoop(stdscr):
schrittzaehler = 0
world.stdscr = stdscr
curses.echo()
@@ -88,6 +87,7 @@ def inputLoop(stdscr):
actionmodul.clearFehler()
stdscr.addstr(11,0,'Was nun? ')
command = stdscr.getstr(11,10,40).decode(encoding="utf-8")
world.schrittzaehler = world.schrittzaehler +1
command = command.rstrip()
if command.startswith('debug:'):
debugcommand = command.split(':',1)
@@ -114,7 +114,6 @@ def inputLoop(stdscr):
parsedCommand = world.parseInput(command)
commandid = parsedCommand.commandid
verarbeiteBefehl(parsedCommand)
schrittzaehler = schrittzaehler +1
actionmodul.raumaction()
def debug_Items():
@@ -127,4 +126,8 @@ def debug_Items():
# logging.debug(f'Item-IdId:{item.id} - Item-Name:{item.name}')
count = count +1
wrapper(inputLoop)
def main():
wrapper(inputLoop)
if __name__ == '__main__':
main()