auto: bis Keller
This commit is contained in:
@@ -9,13 +9,39 @@ class TestModule:
|
||||
self.world = world
|
||||
self.actionmodul = ActionModul.ActionModul(world)
|
||||
|
||||
def debug(self,msg):
|
||||
logging.debug(f'AUTO: {msg}')
|
||||
|
||||
def testOeffneTruhe(self):
|
||||
|
||||
pcmd = self.world.parseInput('nimm Truhe')
|
||||
#Auf den Dachboden
|
||||
self.actionmodul.rauf()
|
||||
self.actionmodul.nimm(pcmd)
|
||||
|
||||
#Zurück ins Wohnzimmer
|
||||
self.actionmodul.runter()
|
||||
#In den Flur
|
||||
self.actionmodul.sued()
|
||||
# Ins Schlafzimmer
|
||||
self.actionmodul.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')
|
||||
|
||||
self.actionmodul.untersuche(pcmd)
|
||||
|
||||
self.debug(f'Ausgänge: {self.world.aktuellerRaum.ausgaenge}')
|
||||
# In den Keller
|
||||
self.actionmodul.runter()
|
||||
pcmd = self.world.parseInput('untersuche Keller')
|
||||
|
||||
self.actionmodul.untersuche(pcmd)
|
||||
pcmd = self.world.parseInput('nimm Schlüssel')
|
||||
self.actionmodul.nimm(pcmd)
|
||||
pcmd = self.world.parseInput('öffne Truhe')
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user