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
Exemple #2
0
def main_menu():
    """Show Keahua Action Options
    Arguments: None
    """
    build_menu()
    print(
        colorizer.colorize('\nChoose a KILLER option.',
                           colors.text_colors['WARNING'], '', ''))
    choice = input("> ")

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

    if choice == "2":
        release(keahua, 'animal')

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

    if choice == "4":
        release(keahua, 'plant')

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

    if choice != "6":
        main_menu()
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()
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()