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


Python DungeonState.choices方法代码示例

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


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

示例1: ysgenweapknife

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import choices [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

示例2: ysgenmagicfire

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import choices [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

示例3: ysgenweapshottie

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import choices [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

示例4: yemprison

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import choices [as 别名]
 def yemprison(self):
     state = DungeonState() 
     if game_utils.check_inventory(self.request, inventory_consts.PRISON_KEY_YEM):            
         state.message = "You enter the Yementi prison block."
         state.choices = [('sector5', 'Go to the prisons fifth sector'),
                          ('sector10', 'Go to the prisons tenth sector'),
                          ('sector19', 'Go to the prisons nineteenth sector'),
                          ('commquart', 'Go back to the commanders quarters')]
     else:
         state.message = "You cannot enter the Yementi prison block, the door is locked.  A key is required."
         state.choices = [('commquart', 'Go find the key')]
     return state
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:14,代码来源:yementi.py

示例5: usesightcamp

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import choices [as 别名]
 def usesightcamp(self):
     state = DungeonState()
     if game_utils.check_magic(self.request, magic_consts.SIGHT):            
         state.message = "You see far beyond the walls, and into the depths of the facilities.  You see the faces of the slaves, toiling \
                         away for years on the poisonous, murdersome mines of Yementi.  You see a few empty guards quarters, you see some \
                         people crying, you see some people laughing, you see some things you wish you had not seen.  \
                         Most importantly, though, you gain a <div class='special'>full understanding of the facilities layout</div>."
         state.actions = [(game_utils.add_status, self.request, status_consts.FARSEE_FACILITY_YEM),]
         state.choices = [('makeplan', 'Make a plan for sneaking in'),]
     else:
         state.message = "You do not have Sight."
         state.choices = [('gorunningheadfirst', 'Go charging for the encampment'),
                          ('makeplan', 'Consult Grayson on a plan'),]
     return state
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:16,代码来源:yementi.py

示例6: yshistreadbookmoremoremoremore

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import choices [as 别名]
 def yshistreadbookmoremoremoremore(self):
     state = DungeonState()
     state.message = "'I will pull the knife out of his heart tonight.  Even though we have not had light for days now \
                     I will know of the moonlight, as it hangs overhead, while we are trapped in this place.  Tonight he dies.  This is \
                     my last candle.  I hope this finds you well.' -Tonas"
     state.choices = [("yshist", "Put the book down"),]
     return state
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:9,代码来源:yellowstar.py

示例7: quarterc

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import choices [as 别名]
 def quarterc(self):
     state = DungeonState()
     state.message = "You enter the second building.  Inside you find various memos addressed to 'C-Sect'.  It appears that \
                     the building is used as the medical clinic.  There are some sick guards and doctors trying to help them, \
                     nobody notices you."
     state.choices = [('getout', 'Back to the office courtyard'),]
     return state
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:9,代码来源:yementi.py

示例8: faceask

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import choices [as 别名]
 def faceask(self):
     state = DungeonState()
     state.message = "Grayson screams at them, asking why their faces are so ugly.  One of the guards begins crying and Grayson \
                     slaps him across the face."
     state.choices = [('questionguard', 'Keep questioning them'),
                      ('guardquart','Go into the guard quarters'),]
     return state
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:9,代码来源:yementi.py

示例9: lorengetagirltell

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import choices [as 别名]
 def lorengetagirltell(self):
     state = DungeonState()
     state.message = "You take her to the room and sit her down on the chair across from you.  You tell her that life is not worth \
                     throwing away in a dump like this.  She quietly listens and nods occassionally.  You tell her there are better ways \
                     to make money.  She tells you this is the best she knows and you tell her she can do better."
     state.choices = [('start', 'Get out of Rikers'),]
     return state
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:9,代码来源:lorentown.py

示例10: lorenrikerask

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import choices [as 别名]
 def lorenrikerask(self):
     state = DungeonState()
     state.message = "You ask Riker how she can run such a terrible business, and she asks how she can't.  She says it is the best way \
                     to make money, that sex will  never stop selling.  She urges you to get with the times, then says that if you do not \
                     like her business you are free to leave."
     state.choices = [('start', 'Get out of Rikers'),]
     return state
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:9,代码来源:lorentown.py

示例11: lorennbizclose

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import choices [as 别名]
 def lorennbizclose(self):
     state = DungeonState()
     state.message = "You tell Riker you plan to shut down her little business.  She asks how you plan to do that.  You tell her \
                     you could do any number of things to ruin her and that she should not try to test you.  She says she does not \
                     want a fight as it would make her girls very upset.  She says she will pay you to please leave her alone."
     state.choices = [('start', 'Get out of Rikers'),]
     return state
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:9,代码来源:lorentown.py

示例12: lorentavfool

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import choices [as 别名]
 def lorentavfool(self):
     state = DungeonState()
     state.message = "You go up to the fool and threaten to run a broad sword through his gullet, but he shrieks and falls backward.  Everyone \
                     laughs.  You ask him his name and he says it is Rumlon."
     state.choices = [('lorentavhelpup', 'Help Rumlon him to his feet'),
                      ('lorentav', 'Leave him be'),]
     return state    
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:9,代码来源:lorentown.py

示例13: reltav_gryson_go

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import choices [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

示例14: sector19

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import choices [as 别名]
 def sector19(self):
     state = DungeonState()
     state.message = "You find Grayson's sister, Ifalna.  He laughs and gives her a hug.  He casts several cure spells on her, and she is \
                     happy to see him.  She asks who you are and Grayson says he could not have done it without your help.  She thanks you and \
                     says she will always help you in your time of need."
     state.choices = [('yempoutside', 'Get out of here')]
     return state
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:9,代码来源:yementi.py

示例15: leavegrayson

# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import choices [as 别名]
 def leavegrayson(self):
     state = DungeonState()
     state.message = "You tell Grayson you will not be journeying with him anymore.  He says that is unfortunate and that he cannot be blamed \
                     for what the emotal did to him, and tries to pursuade you to keep going with him."
     state.choices = [("relin/start", "Back to Relin"),
                      ("moveonfromww", "On second thought, keep going with Grayson"),]
     return state
开发者ID:partriv,项目名称:Dungeon-Game,代码行数:9,代码来源:yementi.py


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