// File: wrighteagle2d[P]wrighteaglebase/Debug/../src/NetworkTest.cpp
// Function: StatisticUnit::StatisticUnit()
StatisticUnit::StatisticUnit() {
  //初始化CU
  CU.count = 0;
  CU.average = 0;
  CU.quadrature = 0;
  CU.variance = 0;
  CU.MaxDelay.val = 0;
  CU.MaxDelay.ValTime = Time(-3, 0);
  CU.MinDelay.val = 111111110;
  CU.MinDelay.ValTime = Time(-3, 0);

  BeginName = "";
  EndName = "";
  int threshold = 20;
  MissBegin = 0;
  for (int i = 0; i < 9; i++) {
    Interval[i].threshold = threshold;
    Interval[i].count = 0;
    Interval[i].probility = 0;
    threshold += 10;
  }

  CMDSend.Dashs = 0;
  CMDSend.Turns = 0;
  CMDSend.Kicks = 0;
  CMDSend.Says = 0;
  CMDSend.TurnNecks = 0;
  CMDSend.Catchs = 0;
  CMDSend.Moves = 0;
  CMDSend.ChangeViews = 0;
  CMDSend.Tackles = 0;
  CMDSend.Pointtos = 0;
  CMDSend.Attentiontos = 0;

  CMDExecute.Dashs = 0;
  CMDExecute.Turns = 0;
  CMDExecute.Kicks = 0;
  CMDExecute.Says = 0;
  CMDExecute.TurnNecks = 0;
  CMDExecute.Catchs = 0;
  CMDExecute.Moves = 0;
  CMDExecute.ChangeViews = 0;
  CMDExecute.Tackles = 0;
  CMDExecute.Pointtos = 0;
  CMDExecute.Attentiontos = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x38(%rbp)
callq 0x64600
movq -0x38(%rbp), %rdi
addq $0xb0, %rdi
movq %rdi, -0x48(%rbp)
callq 0xa820
movq -0x38(%rbp), %rdi
addq $0xd0, %rdi
movq %rdi, -0x40(%rbp)
callq 0xa820
movq -0x38(%rbp), %rax
movq $0x0, 0x28(%rax)
movq $0x0, 0x20(%rax)
movq $0x0, 0x38(%rax)
movq $0x0, 0x30(%rax)
movq $0x0, 0x10(%rax)
leaq -0x10(%rbp), %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
xorl %edx, %edx
callq 0x13c70
jmp 0x61caf
movq -0x38(%rbp), %rax
movq -0x10(%rbp), %rcx
movq %rcx, 0x18(%rax)
movq $0x69f6bc6, (%rax)      # imm = 0x69F6BC6
leaq -0x24(%rbp), %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
xorl %edx, %edx
callq 0x13c70
jmp 0x61cd4
movq -0x38(%rbp), %rdi
movq -0x24(%rbp), %rax
movq %rax, 0x8(%rdi)
addq $0xb0, %rdi
leaq 0x609d7(%rip), %rsi     # 0xc26c5
callq 0xa810
jmp 0x61cf5
movq -0x38(%rbp), %rdi
addq $0xd0, %rdi
leaq 0x609be(%rip), %rsi     # 0xc26c5
callq 0xa810
jmp 0x61d0e
movq -0x38(%rbp), %rax
movl $0x14, -0x28(%rbp)
movl $0x0, 0x54(%rax)
movl $0x0, -0x2c(%rbp)
cmpl $0x9, -0x2c(%rbp)
jge 0x61dbd
movq -0x38(%rbp), %rax
movslq -0x28(%rbp), %rdx
movq %rax, %rcx
addq $0xf0, %rcx
movslq -0x2c(%rbp), %rsi
imulq $0x18, %rsi, %rsi
addq %rsi, %rcx
movq %rdx, (%rcx)
movq %rax, %rcx
addq $0xf0, %rcx
movslq -0x2c(%rbp), %rdx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
movl $0x0, 0x8(%rcx)
addq $0xf0, %rax
movslq -0x2c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x10(%rax)
movl -0x28(%rbp), %eax
addl $0xa, %eax
movl %eax, -0x28(%rbp)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x61d27
movq -0x40(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
callq 0xa370
movq -0x48(%rbp), %rdi
callq 0xa370
jmp 0x61e85
movq -0x38(%rbp), %rax
movl $0x0, 0x5c(%rax)
movl $0x0, 0x60(%rax)
movl $0x0, 0x58(%rax)
movl $0x0, 0x64(%rax)
movl $0x0, 0x68(%rax)
movl $0x0, 0x6c(%rax)
movl $0x0, 0x70(%rax)
movl $0x0, 0x74(%rax)
movl $0x0, 0x80(%rax)
movl $0x0, 0x78(%rax)
movl $0x0, 0x7c(%rax)
movl $0x0, 0x88(%rax)
movl $0x0, 0x8c(%rax)
movl $0x0, 0x84(%rax)
movl $0x0, 0x90(%rax)
movl $0x0, 0x94(%rax)
movl $0x0, 0x98(%rax)
movl $0x0, 0x9c(%rax)
movl $0x0, 0xa0(%rax)
movl $0x0, 0xac(%rax)
movl $0x0, 0xa4(%rax)
movl $0x0, 0xa8(%rax)
addq $0x50, %rsp
popq %rbp
retq
movq -0x18(%rbp), %rdi
callq 0xaa60
nop