// File: /workspace/github_cpp_makefile_star2_O2/dnegovan[P]Intruder-On-Donnar-V/Game.cpp
// Function: Game::Game()
Game::Game()
{
    //initialize time
    timeLeft = TIME_START;
    timeTilHint = TIME_HINT;
    deadline =   "                    TIME UNTIL INCUBATION";
    objective1 = "-Talk to the crew to discover the imposter";
	objective2 = "-Gather ingredients and produce Neutralization Compound";
	objective3 = "-Neutralize the parasite";

    //allocate rooms
    bridge = new Bridge;
    corridor = new Corridor;
    captainsQ = new CaptainsQuarters;
    lounge = new Lounge;
    lab = new Lab;
    crewQ = new CrewQuarters;
    engineering = new Engineering;

    //set player position
    currentSpace = corridor;

    //build map
    bridge->up = nullptr;
    bridge->right = nullptr;
    bridge->down = corridor;
    bridge->left = nullptr;
    corridor->up = bridge;
    corridor->right = lounge;
    corridor->down = lab;
    corridor->left = captainsQ;
    captainsQ->up = nullptr;
    captainsQ->right = corridor;
    captainsQ->down = nullptr;
    captainsQ->left = nullptr;
    lounge->up = nullptr;
    lounge->right = nullptr;
    lounge->down = crewQ;
    lounge->left = corridor;
    lab->up = corridor;
    lab->right = nullptr;
    lab->down = engineering;
    lab->left = nullptr;
    crewQ->up = lounge;
    crewQ->right = nullptr;
    crewQ->down = nullptr;
    crewQ->left = nullptr;
    engineering->up = lab;
    engineering->right = nullptr;
    engineering->down = nullptr;
    engineering->left = nullptr;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
callq 0xe2c0
leaq 0x50(%rbx), %rax
movq %rax, 0x40(%rbx)
andq $0x0, 0x48(%rbx)
xorl %eax, %eax
movb %al, 0x50(%rbx)
leaq 0x70(%rbx), %rcx
movq %rcx, 0x60(%rbx)
andq $0x0, 0x68(%rbx)
leaq 0x40(%rbx), %rdi
movb %al, 0x70(%rbx)
leaq 0x90(%rbx), %rcx
movq %rcx, 0x80(%rbx)
andq $0x0, 0x88(%rbx)
leaq 0x60(%rbx), %r15
leaq 0x80(%rbx), %r12
movb %al, 0x90(%rbx)
leaq 0xb0(%rbx), %rcx
movq %rcx, 0xa0(%rbx)
andq $0x0, 0xa8(%rbx)
leaq 0xa0(%rbx), %r13
movb %al, 0xb0(%rbx)
movabsq $0xe00000012, %rax      # imm = 0xE00000012
movq %rax, 0x38(%rbx)
leaq 0x475e(%rip), %rsi      # 0x10708
movq %rdi, -0x38(%rbp)
callq 0x3340
leaq 0x4778(%rip), %rsi      # 0x10732
movq %r15, %rdi
callq 0x3340
leaq 0x4794(%rip), %rsi      # 0x1075d
movq %r12, %rdi
callq 0x3340
leaq 0x47bd(%rip), %rsi      # 0x10795
movq %r13, %rdi
callq 0x3340
pushq $0x68
popq %rdi
callq 0x31e0
movq %rax, %r14
movq %rax, %rdi
callq 0x9dd0
movq %r14, 0xc8(%rbx)
pushq $0x68
popq %rdi
callq 0x31e0
movq %rax, %r14
movq %rax, %rdi
callq 0xa4c8
movq %r14, 0xf8(%rbx)
pushq $0x68
popq %rdi
callq 0x31e0
movq %rax, %r14
movq %rax, %rdi
callq 0xa36c
movq %r14, 0xe0(%rbx)
pushq $0x68
popq %rdi
callq 0x31e0
movq %rax, %r14
movq %rax, %rdi
callq 0xdfe4
movq %r14, 0xd8(%rbx)
pushq $0x68
popq %rdi
callq 0x31e0
movq %rax, %r14
movq %rax, %rdi
callq 0xdac0
movq %r14, 0xd0(%rbx)
pushq $0x68
popq %rdi
callq 0x31e0
movq %rax, %r14
movq %rax, %rdi
callq 0xac38
movq %r14, 0xe8(%rbx)
pushq $0x68
popq %rdi
callq 0x31e0
movq %rax, %r14
movq %rax, %rdi
callq 0xbcc4
movq %r14, 0xf0(%rbx)
movq 0xc8(%rbx), %rax
movq 0xf8(%rbx), %rcx
movq %rcx, 0xc0(%rbx)
andq $0x0, 0x48(%rax)
movq %rcx, 0x50(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x58(%rax)
movq %rax, 0x48(%rcx)
movq 0xd8(%rbx), %rax
movq %rax, 0x60(%rcx)
movq 0xd0(%rbx), %rdx
movq %rdx, 0x50(%rcx)
movq 0xe0(%rbx), %rsi
movq %rsi, 0x58(%rcx)
andq $0x0, 0x48(%rsi)
movq %rcx, 0x60(%rsi)
movups %xmm0, 0x50(%rsi)
andq $0x0, 0x48(%rax)
andq $0x0, 0x60(%rax)
movq 0xe8(%rbx), %rsi
movq %rsi, 0x50(%rax)
movq %rcx, 0x58(%rax)
movq %rcx, 0x48(%rdx)
movq %r14, 0x50(%rdx)
movups %xmm0, 0x58(%rdx)
movq %rax, 0x48(%rsi)
movups %xmm0, 0x50(%rsi)
andq $0x0, 0x60(%rsi)
movq %rdx, 0x48(%r14)
movups %xmm0, 0x50(%r14)
andq $0x0, 0x60(%r14)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xc148
jmp 0xc148
jmp 0xc148
jmp 0xc148
jmp 0xc148
jmp 0xc148
movq %rax, -0x30(%rbp)
movq %r14, %rdi
callq 0x31c0
jmp 0xc15a
movq %rax, -0x30(%rbp)
movq %r13, %rdi
callq 0x3368
movq %r12, %rdi
callq 0x3368
movq %r15, %rdi
callq 0x3368
movq -0x38(%rbp), %rdi
callq 0x3368
movq %rbx, %rdi
callq 0x9794
movq -0x30(%rbp), %rdi
callq 0x3300