auto:teich bis zum Bach
Beschreibungstexte
This commit is contained in:
@@ -12,8 +12,12 @@ class TestModule:
|
||||
def debug(self,msg):
|
||||
logging.debug(f'AUTO: {msg}')
|
||||
|
||||
def parseInput(self, command):
|
||||
return self.world.parseInput(command)
|
||||
|
||||
def testOeffneTruhe(self):
|
||||
pcmd = self.world.parseInput('nimm Truhe')
|
||||
pcmd = self.parseInput('nimm Truhe')
|
||||
|
||||
#Auf den Dachboden
|
||||
self.ac.rauf()
|
||||
self.ac.nimm(pcmd)
|
||||
@@ -26,41 +30,72 @@ class TestModule:
|
||||
self.ac.west()
|
||||
self.debug(f'aktueller Raum: {self.world.aktuellerRaum.name}')
|
||||
self.debug(f'Ausgänge: {self.world.aktuellerRaum.ausgaenge}')
|
||||
pcmd = self.world.parseInput('untersuche Bett')
|
||||
pcmd = self.parseInput('untersuche Bett')
|
||||
|
||||
|
||||
self.ac.untersuche(pcmd)
|
||||
|
||||
self.debug(f'Ausgänge: {self.world.aktuellerRaum.ausgaenge}')
|
||||
# In den Keller
|
||||
self.ac.runter()
|
||||
pcmd = self.world.parseInput('nimm Jacke')
|
||||
pcmd = self.parseInput('nimm Jacke')
|
||||
|
||||
self.ac.nimm(pcmd)
|
||||
pcmd = self.world.parseInput('benutze Jacke')
|
||||
pcmd = self.parseInput('benutze Jacke')
|
||||
|
||||
self.ac.benutze(pcmd)
|
||||
pcmd = self.world.parseInput('öffne Truhe')
|
||||
pcmd = self.parseInput('öffne Truhe')
|
||||
|
||||
self.ac.oeffne(pcmd)
|
||||
|
||||
def testTeich(self):
|
||||
self.testOeffneTruhe()
|
||||
pcmd = self.world.parseInput('nimm Seil')
|
||||
pcmd = self.parseInput('nimm Seil')
|
||||
|
||||
self.ac.nimm(pcmd)
|
||||
pcmd = self.world.parseInput('nimm Schwert')
|
||||
pcmd = self.parseInput('nimm Schwert')
|
||||
|
||||
self.ac.nimm(pcmd)
|
||||
|
||||
#Rauf ins Schlafzimmer
|
||||
self.ac.rauf()
|
||||
|
||||
pcmd = self.world.parseInput('untersuche Nachtschrank')
|
||||
pcmd = self.parseInput('untersuche Nachtschrank')
|
||||
|
||||
self.ac.untersuche(pcmd)
|
||||
pcmd = self.world.parseInput('nimm Haustürschlüssel')
|
||||
pcmd = self.parseInput('nimm Haustürschlüssel')
|
||||
|
||||
self.ac.nimm(pcmd)
|
||||
|
||||
#In den Flur
|
||||
self.ac.ost()
|
||||
pcmd = self.world.parseInput('untersuche Pflanze')
|
||||
pcmd = self.parseInput('untersuche Pflanze')
|
||||
|
||||
self.ac.untersuche(pcmd)
|
||||
pcmd = self.world.parseInput('nimm Krug')
|
||||
pcmd = self.parseInput('nimm Krug')
|
||||
|
||||
self.ac.nimm(pcmd)
|
||||
pcmd = self.parseInput('öffne Haustür')
|
||||
|
||||
self.ac.oeffne(pcmd)
|
||||
|
||||
# nach draussen
|
||||
self.ac.sued()
|
||||
|
||||
# aufs Dach
|
||||
self.ac.rauf()
|
||||
|
||||
pcmd = self.parseInput('nimm Planke')
|
||||
self.ac.nimm(pcmd)
|
||||
|
||||
#Wieder runter
|
||||
self.ac.runter()
|
||||
#Zum Bach
|
||||
self.ac.sued()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user