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


Python Menu.menu_summary方法代码示例

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


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

示例1: contineu

# 需要导入模块: from menu import Menu [as 别名]
# 或者: from menu.Menu import menu_summary [as 别名]
def contineu():
	os.system('clear')
	roll_stats()
	roll_stats_print()
	continue_submenu = Menu(menus.fourth_menu)
	return_menu_name.get_name(menus.fourth_menu)
	continue_submenu.menu_summary()
开发者ID:greenfox-academy,项目名称:kristoftombacz,代码行数:9,代码来源:commands.py

示例2: resume

# 需要导入模块: from menu import Menu [as 别名]
# 或者: from menu.Menu import menu_summary [as 别名]
def resume():
	os.system('clear')
	
	new_game_submenu = Menu(return_menu_name.return_name())
	prev_menu_name = new_game_submenu.get_menu_name()
	prev_menu = Menu(prev_menu_name)
	prev_menu.menu_summary()
开发者ID:greenfox-academy,项目名称:kristoftombacz,代码行数:9,代码来源:commands.py

示例3: save

# 需要导入模块: from menu import Menu [as 别名]
# 或者: from menu.Menu import menu_summary [as 别名]
def save():
	os.system('clear')
	print('\n')
	for files in list_json():
		print(' '*5 + files)
	save_submenu = Menu(menus.eighth_menu)
	save_submenu.menu_summary()
开发者ID:greenfox-academy,项目名称:kristoftombacz,代码行数:9,代码来源:commands.py

示例4: potion_selector

# 需要导入模块: from menu import Menu [as 别名]
# 或者: from menu.Menu import menu_summary [as 别名]
def potion_selector():
	os.system('clear')

	if 'Potion of' in player1.inventory[2]:
		print('\nYou chose: ' + player1.inventory[2])

	potion_selector_submenu = Menu(menus.sixth_menu)
	return_menu_name.get_name(menus.sixth_menu)
	potion_selector_submenu.menu_summary()
开发者ID:greenfox-academy,项目名称:kristoftombacz,代码行数:11,代码来源:commands.py

示例5: strike

# 需要导入模块: from menu import Menu [as 别名]
# 或者: from menu.Menu import menu_summary [as 别名]
def strike():
	os.system('clear')
	global player_hit

	while True:
		player1_dexter = menus.random_cube_double() + player1.dexterity
		monster_dexter = menus.random_cube_double() + monster.dexterity

		if player1_dexter > monster_dexter:
			print('\nYou hit the monster')
			player_hit = True
			monster.health -= 2
			break
			
		elif player1_dexter < monster_dexter:
			print('\nThe monster hit you')
			player_hit = False
			player1.health -= 2
			break

	after_fight = Menu(menus.strike_submenu)
	after_fight.menu_summary()
开发者ID:greenfox-academy,项目名称:kristoftombacz,代码行数:24,代码来源:fight.py

示例6: begin

# 需要导入模块: from menu import Menu [as 别名]
# 或者: from menu.Menu import menu_summary [as 别名]
def begin(character):
	os.system('clear')
	global player_luck
	global player1

	if player_luck is None:
		pass
	elif player_luck is True:
		print('You tried your luck and succeeded')
	elif player_luck is False:
		print('You tried your luck and failed')
	
	player_luck = None

	if player_hit is None:
		print('\nTest your Sword in a test fight!\n')
	
	pre_fight_print(character, monster)
	player1 = character
	begin_fight = Menu(menus.begin_menu)
	return_menu_name.get_name(menus.begin_menu)
	begin_fight.menu_summary()
开发者ID:greenfox-academy,项目名称:kristoftombacz,代码行数:24,代码来源:fight.py

示例7: Menu

# 需要导入模块: from menu import Menu [as 别名]
# 或者: from menu.Menu import menu_summary [as 别名]
import os
from menu import Menu
from menus import *

os.system("clear")
main_menu = Menu(first_menu)
main_menu.menu_summary()
开发者ID:greenfox-academy,项目名称:kristoftombacz,代码行数:9,代码来源:game.py

示例8: character

# 需要导入模块: from menu import Menu [as 别名]
# 或者: from menu.Menu import menu_summary [as 别名]
def character():
	os.system('clear')
	print(player1.character_table())
	begin_game_menu = Menu(menus.seventh_menu)
	return_menu_name.get_name(menus.seventh_menu)
	begin_game_menu.menu_summary()
开发者ID:greenfox-academy,项目名称:kristoftombacz,代码行数:8,代码来源:commands.py

示例9: quit

# 需要导入模块: from menu import Menu [as 别名]
# 或者: from menu.Menu import menu_summary [as 别名]
def quit():
	os.system('clear')
	quit_submenu = Menu(menus.third_menu)
	quit_submenu.menu_summary()
开发者ID:greenfox-academy,项目名称:kristoftombacz,代码行数:6,代码来源:commands.py

示例10: new_game

# 需要导入模块: from menu import Menu [as 别名]
# 或者: from menu.Menu import menu_summary [as 别名]
def new_game():
	os.system('clear')
	username_print(username_input())
	new_game_submenu = Menu(menus.second_menu)
	return_menu_name.get_name(menus.second_menu)
	new_game_submenu.menu_summary()
开发者ID:greenfox-academy,项目名称:kristoftombacz,代码行数:8,代码来源:commands.py

示例11: save_character

# 需要导入模块: from menu import Menu [as 别名]
# 或者: from menu.Menu import menu_summary [as 别名]
def save_character():
	filename = open('save.json', 'w')
	json.dump(player1.create_dictionary(), filename)
	filename.close()
	return_menu = Menu(return_menu_name.return_name())
	return_menu.menu_summary()
开发者ID:greenfox-academy,项目名称:kristoftombacz,代码行数:8,代码来源:commands.py


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