// File: /workspace/github_cpp_makefile_star2_O2/kongrigoriou[P]Text-Based-RPG/src/Squad.cpp
// Function: Squad::display_allHeroes()
void Squad::display_allHeroes(){
    
    cout << "Pick your Heroes!" << endl;

    cout << "Available Warriors:" << endl;

    list <Hero*>::iterator it;

    // cout << "NAME   HP  "
    for(it = Warriors.begin(); it != Warriors.end(); ++it){
        cout << (*it)->get_name() << "\t\t" << (*it)->get_HealthPower() << "\t" << (*it)->get_MagicPower() 
        << "\t" << (*it)->get_Strength() << "\t" << (*it)->get_Agility() << "\t" << (*it)->get_Dexterity() << endl;
    }

    cout << "Available Sorcerers:" << endl;

    list <Hero*>::iterator it2;

    for(it2 = Sorcerers.begin(); it2 != Sorcerers.end(); ++it){
        cout << (*it)->get_name() << "\t" << (*it)->get_HealthPower() << "\t" << (*it)->get_MagicPower() 
        << "\t" << (*it)->get_Strength() << "\t" << (*it)->get_Agility() << "\t" << (*it)->get_Dexterity() << endl;
    }

    cout << "Available Paladins:" << endl;

    list <Hero*>::iterator it3;

    for(it3 = Paladins.begin(); it3 != Paladins.end(); ++it){
        cout << (*it)->get_name() << "\t" << (*it)->get_HealthPower() << "\t" << (*it)->get_MagicPower() 
        << "\t" << (*it)->get_Strength() << "\t" << (*it)->get_Agility() << "\t" << (*it)->get_Dexterity() << endl;
    }

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0x88fb(%rip), %r14      # 0x12fd0
leaq 0x2b33(%rip), %rsi      # 0xd20f
movq %r14, %rdi
callq 0x31a0
movq %rax, %rdi
callq 0x30f0
leaq 0x2b2e(%rip), %rsi      # 0xd221
movq %r14, %rdi
callq 0x31a0
movq %rax, %rdi
callq 0x30f0
movq %rbx, -0x30(%rbp)
leaq 0x18(%rbx), %r14
leaq -0x60(%rbp), %r15
leaq 0x2b20(%rip), %r13      # 0xd236
movq %r14, %r12
movq (%r12), %r12
cmpq %r14, %r12
je 0xa805
movq 0x10(%r12), %rsi
movq %r15, %rdi
callq 0x42e0
movq 0x8896(%rip), %rdi      # 0x12fd0
movq %r15, %rsi
callq 0x3170
movq %rax, %rdi
leaq 0x2ae9(%rip), %rsi      # 0xd235
callq 0x31a0
movq %rax, %rbx
movq 0x10(%r12), %rdi
callq 0x4306
movq %rbx, %rdi
movl %eax, %esi
callq 0x3230
movq %rax, %rdi
movq %r13, %rsi
callq 0x31a0
movq %rax, %rbx
movq 0x10(%r12), %rdi
callq 0x44b6
movq %rbx, %rdi
movl %eax, %esi
callq 0x3230
movq %rax, %rdi
movq %r13, %rsi
callq 0x31a0
movq %rax, %rbx
movq 0x10(%r12), %rdi
callq 0x44c0
movq %rbx, %rdi
movl %eax, %esi
callq 0x3230
movq %rax, %rdi
movq %r13, %rsi
callq 0x31a0
movq %rax, %rbx
movq 0x10(%r12), %rdi
callq 0x44ca
movq %rbx, %rdi
movl %eax, %esi
callq 0x3230
movq %rax, %rdi
movq %r13, %rsi
callq 0x31a0
movq %rax, %rbx
movq 0x10(%r12), %rdi
callq 0x44d4
movq %rbx, %rdi
movl %eax, %esi
callq 0x3230
movq %rax, %rdi
callq 0x30f0
movq %r15, %rdi
callq 0x30e0
jmp 0xa719
movq 0x87c4(%rip), %rdi      # 0x12fd0
leaq 0x2a25(%rip), %rsi      # 0xd238
callq 0x31a0
movq %rax, %rdi
callq 0x30f0
movq -0x30(%rbp), %rax
leaq 0x30(%rax), %rcx
movq %rcx, -0x40(%rbp)
movq 0x30(%rax), %rax
movq %rax, -0x38(%rbp)
leaq -0x60(%rbp), %r15
leaq 0x29f7(%rip), %r13      # 0xd236
movq %r12, %r14
movq -0x38(%rbp), %rax
cmpq -0x40(%rbp), %rax
je 0xa928
movq 0x10(%r14), %rsi
movq %r15, %rdi
callq 0x42e0
movq 0x876d(%rip), %rdi      # 0x12fd0
movq %r15, %rsi
callq 0x3170
movq %rax, %rdi
movq %r13, %rsi
callq 0x31a0
movq %rax, %rbx
movq 0x10(%r14), %rdi
callq 0x4306
movq %rbx, %rdi
movl %eax, %esi
callq 0x3230
movq %rax, %rdi
movq %r13, %rsi
callq 0x31a0
movq %rax, %rbx
movq 0x10(%r14), %rdi
callq 0x44b6
movq %rbx, %rdi
movl %eax, %esi
callq 0x3230
movq %rax, %rdi
movq %r13, %rsi
callq 0x31a0
movq %rax, %rbx
movq 0x10(%r14), %rdi
callq 0x44c0
movq %rbx, %rdi
movl %eax, %esi
callq 0x3230
movq %rax, %rdi
movq %r13, %rsi
callq 0x31a0
movq %rax, %rbx
movq 0x10(%r14), %rdi
callq 0x44ca
movq %rbx, %rdi
movl %eax, %esi
callq 0x3230
movq %rax, %rdi
movq %r13, %rsi
callq 0x31a0
movq %rax, %rbx
movq 0x10(%r14), %rdi
callq 0x44d4
movq %rbx, %rdi
movl %eax, %esi
callq 0x3230
movq %rax, %rdi
callq 0x30f0
movq %r15, %rdi
callq 0x30e0
movq (%r14), %r14
jmp 0xa842
movq 0x86a1(%rip), %rdi      # 0x12fd0
leaq 0x2917(%rip), %rsi      # 0xd24d
callq 0x31a0
movq %rax, %rdi
callq 0x30f0
movq -0x30(%rbp), %rcx
leaq 0x48(%rcx), %rax
cmpq %rax, 0x48(%rcx)
jne 0xa960
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x60(%rbp), %rbx
movq 0x8665(%rip), %r13      # 0x12fd0
leaq 0x28c4(%rip), %r15      # 0xd236
movq 0x10(%r12), %rsi
movq %rbx, %rdi
callq 0x42e0
movq %r13, %rdi
movq %rbx, %rsi
callq 0x3170
movq %rax, %rdi
movq %r15, %rsi
callq 0x31a0
movq %rax, %r14
movq 0x10(%r12), %rdi
callq 0x4306
movq %r14, %rdi
movl %eax, %esi
callq 0x3230
movq %rax, %rdi
movq %r15, %rsi
callq 0x31a0
movq %rax, %r14
movq 0x10(%r12), %rdi
callq 0x44b6
movq %r14, %rdi
movl %eax, %esi
callq 0x3230
movq %rax, %rdi
movq %r15, %rsi
callq 0x31a0
movq %rax, %r14
movq 0x10(%r12), %rdi
callq 0x44c0
movq %r14, %rdi
movl %eax, %esi
callq 0x3230
movq %rax, %rdi
movq %r15, %rsi
callq 0x31a0
movq %rax, %r14
movq 0x10(%r12), %rdi
callq 0x44ca
movq %r14, %rdi
movl %eax, %esi
callq 0x3230
movq %rax, %rdi
movq %r15, %rsi
callq 0x31a0
movq %rax, %r14
movq 0x10(%r12), %rdi
callq 0x44d4
movq %r14, %rdi
movl %eax, %esi
callq 0x3230
movq %rax, %rdi
callq 0x30f0
movq %rbx, %rdi
callq 0x30e0
movq (%r12), %r12
jmp 0xa972
jmp 0xaa51
jmp 0xaa51
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x30e0
movq %rbx, %rdi
callq 0x3240
nop