当前位置: 首页>>代码示例>>Python>>正文


Python DungeonState.actions方法代码示例

本文整理汇总了Python中dungeon_game.dungeons.dungeon_state.DungeonState.actions方法的典型用法代码示例。如果您正苦于以下问题:Python DungeonState.actions方法的具体用法?Python DungeonState.actions怎么用?Python DungeonState.actions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在dungeon_game.dungeons.dungeon_state.DungeonState的用法示例。


在下文中一共展示了DungeonState.actions方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: reltav_gryson_go

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import actions [as 别名]
 def reltav_gryson_go(self):
     state = DungeonState()
     state.message = "He tells you that he is glad to have you, and that he hopes to teach you much along the way.  He also \
                              lets you know that <div class='special'>he will meet you outside</div> once you are ready to depart."
     state.choices = [('relintavern', 'Ok.')]
     state.actions = [(game_utils.add_status, self.request, status_consts.ON_FIRST_JOURNEY_W_GRAYSON, True)]
     return state
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:9,代码来源:relin.py

示例2: findfiles

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import actions [as 别名]
 def findfiles(self):
     state = DungeonState()
     state.message = "You and Grayson look into the main commquart office and find files related to his sister Ifalna.  It says she is kept \
                     in the <div class='special'>19th sector of the Yementi prison block</div>."
     state.actions = [(game_utils.add_status, self.request, status_consts.GRAYSON_SIS_LOC_YEM)]
     state.choices = [('commquart', 'Get out of here'),]
     return state
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:9,代码来源:yementi.py

示例3: reltavgrpyoung

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import actions [as 别名]
 def reltavgrpyoung(self):
     state = DungeonState()
     state.message = "You talk to the youngest of the bunch, and the rest of the group is watching like hawks.  He says something\
                                 about how they just came from the nearby town of <div class='special'>Lorentown</div>, but he is quickly told to shut up."
     state.actions = [[game_utils.add_status, self.request, status_consts.KNOW_LORENTOWN, True]]
     state.choices = [('reltavgrp','Ok')] 
     return state
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:9,代码来源:relin.py

示例4: ystavpianofire

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import actions [as 别名]
 def ystavpianofire(self):
     state = DungeonState()
     state.message = "Lublob plays Wake Up by The Arcade Fire.  A man in the back of the bar perks up and says he loved \
                     your selection.  He teaches you how to use <div class='special'>Morph</div> magic using a special b-stone."
     state.choices = [('ystav', 'Leave him alone'),]
     state.actions = [(game_utils.add_magic, self.request, magic_consts.MORPH)]
     return state    
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:9,代码来源:yellowstar.py

示例5: relwlkkidsstonehave

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import actions [as 别名]
 def relwlkkidsstonehave(self):
     state = DungeonState()
     state.message = "You ask if you can have one of the m-stones because you really like how they shine.  They boys look at each \
                             other for a moment, until the youngest one hands you one of his <div class='special'>m-stones</div> from his collection.  \
                             He looks up at you but doesn't say anything."
     state.choices = [('relinwalk', 'Thank the boy and leave them alone'),]
     state.actions = [(game_utils.add_inventory, self.request, inventory_consts.CHILDS_M_STONE)]
     return state
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:10,代码来源:relin.py

示例6: ystavpianomangive

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import actions [as 别名]
 def ystavpianomangive(self):
     state = DungeonState()
     state.message = "You <div class='special'>drop a few coins</div> into his tip jar."
     state.choices = [('ystavpianomanplay', 'Ask him to play a tune for you'),                         
                      ('ystavpianoask', 'Ask him his name'),
                      ('ystav', 'Leave him alone'),]
     state.actions = [(game_utils.add_status, self.request, status_consts.YS_GAVE_PIANOMAN_MONEY),]
     return state
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:10,代码来源:yellowstar.py

示例7: sector10

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import actions [as 别名]
 def sector10(self):
     state = DungeonState()
     state.message = "You head into sector 10 of the Yementi prison.  You find a few women prisoners here, many of them look battered and abused, \
                     you ask them where Grayson's sister is.  They do not know but they offer sexual pleasure for their release.  You tell them \
                     their offer does not interest you but you will help them if you can, but first you must find someone."
     state.choices = [('yemprison', 'Go back')]
     state.actions = [(game_utils.add_status, self.request, status_consts.SEC_10_WOMEN_YEM),]
     return state
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:10,代码来源:yementi.py

示例8: lorentavbartenderaskweather

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import actions [as 别名]
 def lorentavbartenderaskweather(self):
     state = DungeonState()
     state.message = "You ask him what he thinks about the weather here in Lorentown.  He tells you that it is ok, he enjoys the cool \
                     weather, but he says there is nothing like the weather in his home town of <div class='special'>Panalia</div>.  He tells you \
                     it's a beautiful, rich land where it is never too hot or too cold."
     state.choices = [('lorentavbartenderaskyou', 'Ask him if he recognizes you'),
                      ('lorentav', 'Finish your drink'),]
     state.actions = [(game_utils.add_status, self.request, status_consts.KNOW_TOWN_PANALIA),] 
     return state
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:11,代码来源:lorentown.py

示例9: yshistelenaleave

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import actions [as 别名]
 def yshistelenaleave(self):
     state = DungeonState()
     state.message = "As you are walking out of the Historical Center, you hear Elena call your name from behind.  She is adjusting \
                     a pouch on her belt and then raises her eyes to meet yours.  She says that if you are both to survive, you both \
                     better be ready.  You look at her for a moment, she walks up to you before you can say anything, and you both leave, \
                     preparing for the uncertain doom to come."
     state.choices = [('start', 'Head to the exit of the Historical Center')]
     state.actions = [(game_utils.add_status, self.request, status_consts.ON_JOURNEY_ELENA_YS)]
     return state
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:11,代码来源:yellowstar.py

示例10: ysgenweapknife

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import actions [as 别名]
 def ysgenweapknife(self):
     state = DungeonState()
     if game_utils.check_status(self.request, status_consts.MONEY_LV_1):
         state.message = "You got a <div class='special'>knife</div>."
         state.choices = [('ysgen', 'Back to shopping'),]
         state.actions = [(game_utils.add_inventory, self.request, inventory_consts.KNIFE)]
     else:
         state.message = "Sorry, you can't afford that."
         state.choices = [('ysgen', 'Back to shopping'),]
     return state  
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:12,代码来源:yellowstar.py

示例11: ysgenweapshottie

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import actions [as 别名]
 def ysgenweapshottie(self):
     state = DungeonState()
     if game_utils.check_status(self.request, status_consts.MONEY_LV_3):
         state.message = "You got the <div class='special'>8 gauge shotgun</div>."
         state.choices = [('ysgen', 'Back to shopping'),]
         state.actions = [(game_utils.add_inventory, self.request, inventory_consts.SHOTGUN_8G)]
     else:
         state.message = "Sorry, you can't afford that."
         state.choices = [('ysgen', 'Back to shopping'),]
     return state  
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:12,代码来源:yellowstar.py

示例12: ysgenmagicfire

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import actions [as 别名]
 def ysgenmagicfire(self):
     state = DungeonState()
     if game_utils.check_status(self.request, status_consts.MONEY_LV_1):
         state.message = "You learned <div class='special'>Fire</div> magic."
         state.choices = [('ysgen', 'Back to shopping'),]
         state.actions = [(game_utils.add_magic, self.request, magic_consts.FIRE)]
     else:
         state.message = "Sorry, you can't afford that."
         state.choices = [('ysgen', 'Back to shopping'),]
     return state  
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:12,代码来源:yellowstar.py

示例13: yshistreadbookmoremoremore

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import actions [as 别名]
 def yshistreadbookmoremoremore(self):
     state = DungeonState()
     state.message = "'The way is harsh.  The light is nigh gone.  I can nary hear a peep.  We are in the Deep Black now, and it is \
                     just four.  It is just four of us.  We are in the Deep Black.  I write to you by candle, I have but four left in my \
                     bag.  I love you my darling.  We have spent a hundred moons forging the path so that you all may come and find us \
                     and be with us again.  We will make it and we will be happy again.  I will see the end of this place.' -Tonas"
     state.choices = [("yshistreadbookmoremoremoremore", "Read another passage from the book"),
                      ("yshist", "Put the book down"),]
     state.actions = []
     return state        
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:12,代码来源:yellowstar.py

示例14: ysinn

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import actions [as 别名]
 def ysinn(self):
     state = DungeonState()
     state.message = "You walk into the Snowpeak Inn, you take note of the sign made out of wood, shaped like mountains \
                     and painted white at the tips.  The words Snowpeak painted in green and white at the mountain tips. \
                     Doren, the inn keeper, says hello to you."
     state.choices = [('ysinntalk', 'Talk to Doren'),
                      ('ysinnmap', 'Take a look at the map on the wall'),
                      ('ysinnrest', 'Get some rest'),
                      ('start', 'Leave the Inn'),]
     state.actions = []
     return state
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:13,代码来源:yellowstar.py

示例15: ystav

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import actions [as 别名]
 def ystav(self):
     state = DungeonState()
     state.message = "You walk into the The Icey Tavern, or just The Icey, as the locals call it.  It smells of rotten cheese and fresh lager, \
                     just the way they like it around here.  The mining men often come to this tavern to unload their heavy burdens and \
                     listen to the young man playing the bars piano, angling for silver."
     state.choices = [('ystavminer', 'Talk to a group of miners'),
                      ('ystavkirin', 'Talk to Kirin the bartender'),
                      ('ystavpianoman', 'Talk to the young man playing piano'),
                      ('start', 'Leave the tavern'),]
     state.actions = []
     return state
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:13,代码来源:yellowstar.py


注:本文中的dungeon_game.dungeons.dungeon_state.DungeonState.actions方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。