hilfe befehle.

This commit is contained in:
Olli Graf
2022-05-18 13:45:17 +02:00
parent e671a22fa2
commit 0651532a56
8 changed files with 88 additions and 35 deletions

View File

@@ -18,6 +18,21 @@ class World:
self.waitForCR()
self.printRaum()
def printBefehle(self):
self.clearScreen()
befehlar = []
count = 0
self.stdscr.addstr(5,1,'Das System versteht folgende Befehle:')
for befehlid in self.befehle:
befehl = self.befehle[befehlid].name
befehlar.append(befehl)
count = count +1
self.stdscr.addstr(6,1, str(befehlar))
self.waitForCR()
self.waitForCR()
def waitForCR(self):
self.stdscr.addstr(0,0,'Taste für Weiter',curses.color_pair(1))
self.stdscr.getch()
@@ -247,6 +262,7 @@ class World:
self.ITEM_FISCH = '17'
self.ITEM_SCHWERT = '18'
self.ITEM_BOXSACK = '19'
self.ITEM_MAUS = '20'
# Räume
@@ -261,6 +277,8 @@ class World:
self.RAUM_BACH = '8'
self.RAUM_FELD = '9'
self.RAUM_TEICH = '10'
self.RAUM_FELD = '11'
self.RAUM_KLEINES_FELD = '12'
self.fehler = ''