// File: /workspace/github_cpp_makefile_star2_O2/Jacobious52[P]Tanks/IntroView.cpp
// Function: IntroView::_init()
void IntroView::_init()
{
    player1 = "";
    player2 = "";

    _position = Point<int>::zero();
    _size = ConsoleTools::get_terminal_size();

    // title
    Sprite *header = new Sprite(TextureTools::get_texture("title"));
    // adjust positions for unicode text
    header->set_position(Point<int>(get_size().x/2 - header->get_size().x/4 - 6, 2));
    header->set_size(Point<int>(header->get_size().x, header->get_size().y));
    header->set_fcolor(ConsoleTools::magneta);
    header->tag = 1;

    add_child(header);

     // copyright
    Sprite *copyright = new Sprite("Copyright © Jacob Gonzalez (a1687803) 2015");
    copyright->set_position(Point<int>(get_size().x/2 - copyright->get_size().x/2,
                                         get_size().y - 1));
    copyright->set_fcolor(ConsoleTools::green);

    add_child(copyright);

    // vs_text. not adding to view for can be on stack

    _vs_text = Sprite(TextureTools::get_texture("vs"));
    _vs_text.set_position(Point<int>(get_size().x/2 - _vs_text.get_size().x/4 + 2,
                                        get_size().y/2 - _vs_text.get_size().y/2));
    _vs_text.set_fcolor(ConsoleTools::yellow);

    // loading string
    _load_num_string = "";
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rdi, %rbx
addq $0x38, %rdi
leaq 0x5b09(%rip), %r14      # 0xb00b
movq %r14, %rsi
callq 0x34b0
leaq 0x58(%rbx), %rdi
movq %r14, %rsi
callq 0x34b0
andq $0x0, 0x18(%rbx)
callq 0x3970
movq %rax, 0x20(%rbx)
pushq $0x60
popq %rdi
callq 0x32d0
movq %rax, %r14
leaq 0x5be8(%rip), %rsi      # 0xb11e
leaq -0xb0(%rbp), %rdi
leaq -0x130(%rbp), %rdx
callq 0x3120
movb $0x1, %r15b
leaq -0xd0(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x79ee
leaq -0xd0(%rbp), %rsi
movq %r14, %rdi
callq 0x4be2
xorl %r15d, %r15d
leaq -0xd0(%rbp), %rdi
callq 0x3340
movabsq $-0x100000000, %r13     # imm = 0xFFFFFFFF00000000
leaq -0xb0(%rbp), %rdi
callq 0x3340
movq %rbx, %rdi
callq 0x8d2e
pushq $0x2
popq %r12
cltd
idivl %r12d
movl %eax, %r15d
movq %r14, %rdi
callq 0x8d2e
pushq $-0x4
popq %rcx
cltd
idivl %ecx
leal (%r15,%rax), %esi
addl $-0x6, %esi
btsq $0x21, %rsi
movq %r14, %rdi
callq 0x8d24
movq %r14, %rdi
callq 0x8d2e
movq %rax, %r15
movq %r14, %rdi
callq 0x8d2e
andq %r13, %rax
movl %r15d, %esi
orq %rax, %rsi
movq %r14, %rdi
callq 0x8d38
pushq $0x23
popq %rsi
movq %r14, %rdi
callq 0x637a
movl $0x1, 0x8(%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8c32
pushq $0x60
popq %rdi
callq 0x32d0
movq %rax, %r14
leaq 0x5b08(%rip), %rsi      # 0xb124
leaq -0x90(%rbp), %rdi
leaq -0x130(%rbp), %rdx
callq 0x3120
leaq -0x90(%rbp), %rsi
movq %r14, %rdi
callq 0x4be2
leaq -0x90(%rbp), %rdi
callq 0x3340
movq %rbx, %rdi
callq 0x8d2e
cltd
idivl %r12d
movl %eax, %r15d
movq %r14, %rdi
callq 0x8d2e
pushq $-0x2
popq %rcx
cltd
idivl %ecx
addl %eax, %r15d
movq %rbx, %rdi
callq 0x8d2e
andq %r13, %rax
addq %rax, %r13
orq %r13, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x8d24
pushq $0x20
popq %rsi
movq %r14, %rdi
callq 0x637a
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8c32
leaq 0x5aad(%rip), %rsi      # 0xb150
leaq -0x50(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x3120
leaq -0x70(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x79ee
leaq -0x130(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x4be2
leaq 0x78(%rbx), %r14
leaq -0x130(%rbp), %rsi
movq %r14, %rdi
callq 0x5f20
leaq -0x130(%rbp), %rdi
callq 0x5496
leaq -0x70(%rbp), %rdi
callq 0x3340
leaq -0x50(%rbp), %rdi
callq 0x3340
movq %rbx, %rdi
callq 0x8d2e
cltd
idivl %r12d
movl %eax, %r15d
movq %r14, %rdi
callq 0x8d2e
cltd
pushq $-0x4
popq %rcx
idivl %ecx
addl %eax, %r15d
addl $0x2, %r15d
movq %rbx, %rdi
callq 0x8d2e
shrq $0x20, %rax
cltd
idivl %r12d
movl %eax, %r12d
movq %r14, %rdi
callq 0x8d2e
shrq $0x20, %rax
cltd
pushq $-0x2
popq %rcx
idivl %ecx
addl %eax, %r12d
shlq $0x20, %r12
orq %r12, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x8d24
pushq $0x21
popq %rsi
movq %r14, %rdi
callq 0x637a
addq $0xd8, %rbx
leaq 0x5896(%rip), %rsi      # 0xb00b
movq %rbx, %rdi
callq 0x34b0
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x130(%rbp), %rdi
callq 0x5496
jmp 0x57d9
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x3340
jmp 0x5801
jmp 0x57c7
movq %rax, %rbx
leaq -0xd0(%rbp), %rdi
callq 0x3340
movb $0x1, %r15b
jmp 0x57f0
movq %rax, %rbx
jmp 0x5801
movq %rax, %rbx
jmp 0x5809
movq %rax, %rbx
jmp 0x57e2
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x3340
leaq -0x50(%rbp), %rdi
callq 0x3340
jmp 0x5809
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
callq 0x3340
testb %r15b, %r15b
je 0x5809
movq %r14, %rdi
callq 0x32a0
movq %rbx, %rdi
callq 0x3450
movq %rax, %rdi
callq 0x3aae
nop