// File: wrighteagle2d[P]wrighteaglebase/Debug/../src/PlayerParam.cpp
// Function: PlayerParam::init(int, char**)
void PlayerParam::init(int argc, char **argv) {
  ParseFromCmdLine(
      argc, argv); //首先分析命令行，因为有可能命令行里面改了配置文件的路径
  ParseFromConfigFile(M_player_conf_file.c_str()); //分析配置文件
  ParseFromCmdLine(
      argc, argv); //再次分析命令行，因为命令行有权更改配置文件里面的默认设置
  MaintainConsistency();

  std::ifstream file("data/eps0.1");

  memset(mSightChange, 0, sizeof(mSightChange));
  if (!file) {
    PRINT_ERROR("date/eps0.1 not exist");
    return;
  }

  int i = 0;
  while (!file.eof()) {
    if (i >= SIGHTSIZE) {
      //    PRINT_ERROR("mSightChange not big enough!!!!!!!");
      break;
    }
    file >> mSightChange[i][0] >> mSightChange[i][1] >> mSightChange[i][2];
    i++;
  }
  file.close();

  std::ifstream file1("data/eps0.01");
  memset(mMarkChange, 0, sizeof(mMarkChange));
  if (!file1) {
    PRINT_ERROR("file data/eps0.01 not exist");
    return;
  }
  i = 0;
  while (!file1.eof()) {

    if (i >= MARKSIZE) {
      //	 PRINT_ERROR("mMarkChange not big enough!!!!!!!!");
      break;
    }
    file1 >> mMarkChange[i][0] >> mMarkChange[i][1] >> mMarkChange[i][2];
    i++;
  }
  file1.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x4e0, %rsp            # imm = 0x4E0
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x450(%rbp)
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
callq 0x704a0
movq -0x450(%rbp), %rdi
addq $0x30d8, %rdi           # imm = 0x30D8
callq 0xa240
movq -0x450(%rbp), %rdi
movq %rax, %rsi
callq 0x706d0
movq -0x450(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
callq 0x704a0
movq -0x450(%rbp), %rdi
callq 0x79b10
leaq 0x49378(%rip), %rsi     # 0xc3d9d
leaq -0x220(%rbp), %rdi
movl $0x8, %edx
callq 0xab00
movq -0x450(%rbp), %rdi
addq $0x3208, %rdi           # imm = 0x3208
xorl %esi, %esi
movl $0x5d0, %edx            # imm = 0x5D0
callq 0xa310
movq -0x220(%rbp), %rax
movq -0x18(%rax), %rax
leaq -0x220(%rbp,%rax), %rdi
callq 0xa2a0
movb %al, -0x441(%rbp)
jmp 0x7aa70
movb -0x441(%rbp), %al
testb $0x1, %al
jne 0x7aa7f
jmp 0x7ab4a
jmp 0x7aa81
movq 0x83568(%rip), %rdi     # 0xfdff0
leaq 0x4931a(%rip), %rsi     # 0xc3da9
callq 0xa5a0
movq %rax, -0x458(%rbp)
jmp 0x7aa9d
movq -0x458(%rbp), %rdi
leaq 0x4a7a6(%rip), %rsi     # 0xc5251
callq 0xa5a0
movq %rax, -0x460(%rbp)
jmp 0x7aab9
movq -0x460(%rbp), %rdi
movl $0x165, %esi            # imm = 0x165
callq 0xaa40
movq %rax, -0x468(%rbp)
jmp 0x7aad3
movq -0x468(%rbp), %rdi
leaq 0x48a7e(%rip), %rsi     # 0xc355f
callq 0xa5a0
movq %rax, -0x470(%rbp)
jmp 0x7aaef
movq -0x470(%rbp), %rdi
leaq 0x492c3(%rip), %rsi     # 0xc3dc0
callq 0xa5a0
movq %rax, -0x478(%rbp)
jmp 0x7ab0b
movq -0x478(%rbp), %rdi
movq 0x83497(%rip), %rsi     # 0xfdfb0
callq 0xa630
jmp 0x7ab20
jmp 0x7ab22
jmp 0x7ab24
movl $0x1, -0x230(%rbp)
jmp 0x7ae7f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x7ae94
movl $0x0, -0x234(%rbp)
movq -0x220(%rbp), %rax
movq -0x18(%rax), %rax
leaq -0x220(%rbp,%rax), %rdi
callq 0xab20
movb %al, -0x479(%rbp)
jmp 0x7ab74
movb -0x479(%rbp), %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x7ab85
jmp 0x7ac2d
cmpl $0x3e, -0x234(%rbp)
jl 0x7ab93
jmp 0x7ac2d
movq -0x450(%rbp), %rax
movslq -0x234(%rbp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq 0x3208(%rax,%rcx,8), %rsi
leaq -0x220(%rbp), %rdi
callq 0xa4a0
movq %rax, -0x488(%rbp)
jmp 0x7abc2
movq -0x488(%rbp), %rdi
movq -0x450(%rbp), %rax
movslq -0x234(%rbp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq 0x3210(%rax,%rcx,8), %rsi
callq 0xa4a0
movq %rax, -0x490(%rbp)
jmp 0x7abf1
movq -0x490(%rbp), %rdi
movq -0x450(%rbp), %rax
movslq -0x234(%rbp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq 0x3218(%rax,%rcx,8), %rsi
callq 0xa4a0
jmp 0x7ac19
movl -0x234(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x234(%rbp)
jmp 0x7ab54
leaq -0x220(%rbp), %rdi
callq 0xa150
jmp 0x7ac3b
leaq 0x49194(%rip), %rsi     # 0xc3dd6
leaq -0x440(%rbp), %rdi
movl $0x8, %edx
callq 0xab00
jmp 0x7ac55
movq -0x450(%rbp), %rdi
addq $0x37d8, %rdi           # imm = 0x37D8
xorl %esi, %esi
movl $0x2460, %edx           # imm = 0x2460
callq 0xa310
movq -0x440(%rbp), %rax
movq -0x18(%rax), %rax
leaq -0x440(%rbp,%rax), %rdi
callq 0xa2a0
movb %al, -0x491(%rbp)
jmp 0x7ac8f
movb -0x491(%rbp), %al
testb $0x1, %al
jne 0x7ac9e
jmp 0x7ad75
jmp 0x7aca0
movq 0x83349(%rip), %rdi     # 0xfdff0
leaq 0x490fb(%rip), %rsi     # 0xc3da9
callq 0xa5a0
movq %rax, -0x4a0(%rbp)
jmp 0x7acbc
movq -0x4a0(%rbp), %rdi
leaq 0x4a587(%rip), %rsi     # 0xc5251
callq 0xa5a0
movq %rax, -0x4a8(%rbp)
jmp 0x7acd8
movq -0x4a8(%rbp), %rdi
movl $0x177, %esi            # imm = 0x177
callq 0xaa40
movq %rax, -0x4b0(%rbp)
jmp 0x7acf2
movq -0x4b0(%rbp), %rdi
leaq 0x4885f(%rip), %rsi     # 0xc355f
callq 0xa5a0
movq %rax, -0x4b8(%rbp)
jmp 0x7ad0e
movq -0x4b8(%rbp), %rdi
leaq 0x490c7(%rip), %rsi     # 0xc3de3
callq 0xa5a0
movq %rax, -0x4c0(%rbp)
jmp 0x7ad2a
movq -0x4c0(%rbp), %rdi
movq 0x83278(%rip), %rsi     # 0xfdfb0
callq 0xa630
jmp 0x7ad3f
jmp 0x7ad41
jmp 0x7ad43
movl $0x1, -0x230(%rbp)
jmp 0x7ae73
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
leaq -0x440(%rbp), %rdi
callq 0xa1b0
jmp 0x7ae94
movl $0x0, -0x234(%rbp)
movq -0x440(%rbp), %rax
movq -0x18(%rax), %rax
leaq -0x440(%rbp,%rax), %rdi
callq 0xab20
movb %al, -0x4c1(%rbp)
jmp 0x7ad9f
movb -0x4c1(%rbp), %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x7adb0
jmp 0x7ae5b
cmpl $0x184, -0x234(%rbp)    # imm = 0x184
jl 0x7adc1
jmp 0x7ae5b
movq -0x450(%rbp), %rax
movslq -0x234(%rbp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq 0x37d8(%rax,%rcx,8), %rsi
leaq -0x440(%rbp), %rdi
callq 0xa4a0
movq %rax, -0x4d0(%rbp)
jmp 0x7adf0
movq -0x4d0(%rbp), %rdi
movq -0x450(%rbp), %rax
movslq -0x234(%rbp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq 0x37e0(%rax,%rcx,8), %rsi
callq 0xa4a0
movq %rax, -0x4d8(%rbp)
jmp 0x7ae1f
movq -0x4d8(%rbp), %rdi
movq -0x450(%rbp), %rax
movslq -0x234(%rbp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq 0x37e8(%rax,%rcx,8), %rsi
callq 0xa4a0
jmp 0x7ae47
movl -0x234(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x234(%rbp)
jmp 0x7ad7f
leaq -0x440(%rbp), %rdi
callq 0xa150
jmp 0x7ae69
movl $0x0, -0x230(%rbp)
leaq -0x440(%rbp), %rdi
callq 0xa1b0
leaq -0x220(%rbp), %rdi
callq 0xa1b0
addq $0x4e0, %rsp            # imm = 0x4E0
popq %rbp
retq
leaq -0x220(%rbp), %rdi
callq 0xa1b0
movq -0x228(%rbp), %rdi
callq 0xaa60
nopl (%rax)