// File: /workspace/github_cpp_makefile_star2_O2/gilecheverria[P]UP_Battle_Project/Game.cpp
// Function: Game::gameMenu()
void Game::gameMenu()
{
    std::string option = "a";

    while (option != "q")
    {
        std::cout << "\n<<< Main Game Menu >>>\n";
        std::cout << "\tv. View the arrays of heros and monsters\n";
        std::cout << "\tah. Add a new Hero\n";
        std::cout << "\tam. Add a new Monster\n";
        std::cout << "\tph. Create a party of heros\n";
        std::cout << "\tpm. Create a party of monsters\n";
        std::cout << "\tb. Battle with the existing parties\n";
        std::cout << "\tq. Quit the program\n";
        std::cout << "Select an option: ";
        std::cin >> option;

        if (option == "v")
        {
            printHeroArray();
            printMonsterArray();
        }
        else if (option == "ah")
        {
            createHero();
        }
        else if (option == "am")
        {
            createMonster();
        }
        else if (option == "ph")
        {
            createHeroParty();
        }
        else if (option == "pm")
        {
            createMonsterParty();
        }
        else if (option == "b")
        {
            the_battle->battleLoop();
        }
        else if (option == "q")
        {
            std::cout << "Thanks for playing! See you next time ..." << std::endl;
        }
        else
        {
            std::cout << "Incorrect option. Try again ..." << std::endl;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x19db(%rip), %rsi      # 0x54b7
leaq 0x8(%rsp), %r14
leaq 0x7(%rsp), %rdx
movq %r14, %rdi
callq 0x2b8c
leaq 0x19c4(%rip), %r15      # 0x54b9
movq 0x44cc(%rip), %r12      # 0x7fc8
movq 0x44d5(%rip), %rbp      # 0x7fd8
leaq 0x1ab0(%rip), %r13      # 0x55ba
movq %r14, %rdi
movq %r15, %rsi
callq 0x40cc
testb %al, %al
je 0x3cab
movq %r12, %rdi
leaq 0x1994(%rip), %rsi      # 0x54bb
callq 0x2130
movq %r12, %rdi
leaq 0x199e(%rip), %rsi      # 0x54d4
callq 0x2130
movq %r12, %rdi
leaq 0x19ba(%rip), %rsi      # 0x54ff
callq 0x2130
movq %r12, %rdi
leaq 0x19c0(%rip), %rsi      # 0x5514
callq 0x2130
movq %r12, %rdi
leaq 0x19c9(%rip), %rsi      # 0x552c
callq 0x2130
movq %r12, %rdi
leaq 0x19d8(%rip), %rsi      # 0x554a
callq 0x2130
movq %r12, %rdi
leaq 0x19ea(%rip), %rsi      # 0x556b
callq 0x2130
movq %r12, %rdi
leaq 0x1a01(%rip), %rsi      # 0x5591
callq 0x2130
movq %r12, %rdi
leaq 0x1a08(%rip), %rsi      # 0x55a7
callq 0x2130
movq %rbp, %rdi
movq %r14, %rsi
callq 0x2190
movq %r14, %rdi
movq %r13, %rsi
callq 0x40d6
testb %al, %al
je 0x3bd3
movq %rbx, %rdi
callq 0x3cda
movq %rbx, %rdi
callq 0x3d4c
jmp 0x3b0a
movq %r14, %rdi
leaq 0x19df(%rip), %rsi      # 0x55bc
callq 0x40d6
testb %al, %al
je 0x3bf3
movq %rbx, %rdi
callq 0x3dc2
jmp 0x3b0a
movq %r14, %rdi
leaq 0x19c2(%rip), %rsi      # 0x55bf
callq 0x40d6
testb %al, %al
je 0x3c13
movq %rbx, %rdi
callq 0x3e2e
jmp 0x3b0a
movq %r14, %rdi
leaq 0x19a5(%rip), %rsi      # 0x55c2
callq 0x40d6
testb %al, %al
je 0x3c33
movq %rbx, %rdi
callq 0x3e9e
jmp 0x3b0a
movq %r14, %rdi
leaq 0x1988(%rip), %rsi      # 0x55c5
callq 0x40d6
testb %al, %al
je 0x3c53
movq %rbx, %rdi
callq 0x3f12
jmp 0x3b0a
movq %r14, %rdi
leaq 0x1a39(%rip), %rsi      # 0x5696
callq 0x40d6
testb %al, %al
je 0x3c77
movq 0x2d0(%rbx), %rdi
callq 0x32e4
jmp 0x3b0a
movq %r14, %rdi
movq %r15, %rsi
callq 0x40d6
testb %al, %al
leaq 0x1967(%rip), %rsi      # 0x55f2
leaq 0x1936(%rip), %rax      # 0x55c8
cmovneq %rax, %rsi
movq %r12, %rdi
callq 0x2130
movq %rax, %rdi
callq 0x2090
jmp 0x3b0a
leaq 0x8(%rsp), %rdi
callq 0x2080
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2080
movq %rbx, %rdi
callq 0x2220
nop