Ejemplo n.º 1
0
def selection_process(selection, wormhole):
    command_process(selection)
    if selection == "back":
        wormholes.wormholes_view()
    sector_id = ""
    for item in wormholes_json_data[str(wormhole)]["sectors"]:
        if selection == wormholes_json_data[str(item)]["name"].lower():
            sector_id = item
    if not sector_id:
        print "Invalid Selection.  Please try again."
        sleep(2)
        sectors_view(wormhole)
    else:
        levels.levels_view(sector_id, wormhole)
Ejemplo n.º 2
0
def selection_process():
	selection = raw_input(prompt(__builtin__.active_user))
	# Check for exit/back commands
	command_process(selection)
	selection = selection.lower()
	if selection == "ship hanger":
		f = open('./Data/ship_hanger.txt', 'w')
		f.close()
		ship_hanger()
	elif selection == "wormholes":
		wormholes_view()
	elif selection == "salvage missions":
		salvage_missions()
	elif selection == "communications":
		communications()
	else:
		print "Invalid Selection"
		selection_process()