コード例 #1
0
def main_menu():
    """Show Keahua Action Options

    Arguments: None
    """
    clear_screen()
    build_menu()
    choice = input(">> ")
    # print(choice)
    # input('^^choice')

    if choice == "1":
        annex_habitat(keahua)

    if choice == "2":
        release_animal(keahua)

    if choice == "3":
        redo_feed_animal(keahua)

    if choice == "4":
        add_plant(keahua)

    if choice == "5":
        build_facility_report(keahua)
        pass

    if choice != "6":
        main_menu()

    if choice == "6":
        os.system('say Goodbye' if os.name != 'nt' else '')

    return
コード例 #2
0
def main_menu():
    """Show Keahua Action Options

    Arguments: None
    """
    build_menu()
    choice = input(">> ")

    if choice == "1":
        annex_habitat(keahua)

    if choice == "2":
        release_animal(keahua)

    if choice == "3":
        feed_animal(keahua)

    if choice == "4":
        add_plant(keahua)

    if choice == "5":
        build_facility_report(keahua)
        pass

    if choice != "6":
        main_menu()
コード例 #3
0
def main_menu(message_text=""):
    """Show Keahua Action Options

    Arguments: None
    """
    build_menu(message_text)

    choice = input("> ")

    if choice == "1":
        annex_habitat(keahua,
                      main_menu,
                      message_text="Choose a biome to annex")

    elif choice == "2":
        release_animal(keahua, main_menu)

    elif choice == "3":
        feeding_menu(keahua, main_menu, message_text)
    # feed

    elif choice == "4":
        run_plant_menu(keahua, main_menu)

    elif choice == "5":
        build_facility_report(keahua, main_menu)
        pass

    elif choice != "6":
        main_menu()
コード例 #4
0
def main_menu():
    """Show Keahua Action Options

    Arguments: None
    """
    build_menu()
    choice = input("\n Choose a KILLER option. \n \033[1;31;m> \033[1;0;m ")

    if choice == "1":
        annex_biome(keahua)

    if choice == "2":
        release_animal(keahua)

    if choice == "3":
        feed_animal(keahua)

    if choice == "4":
        cultivate_plant(keahua)

    if choice == "5":
        build_facility_report(keahua)

    if choice != "6":
        main_menu()
コード例 #5
0
def main_menu():
    """Show Keahua Action Options

    Arguments: None
    """
    build_menu()
    choice = input('''
Choose a KILLER option.

>  ''')

    if choice == "1":
        annex_biome(keahua)

    if choice == "2":
        release_animal(keahua)

    if choice == "3":
        cultivate_plant(keahua)

    # if choice == "4":
    #     feed_animal()

    if choice == "4":
        build_facility_report(keahua)
        pass

    if choice != "5":
        main_menu()