// File: wrighteagle2d[P]wrighteaglebase/Debug/../src/ActionEffector.cpp
// Function: ActionEffector::ResetForScan()
void ActionEffector::ResetForScan() {
  //清空互斥命令
  //清除turn neck命令
  ActionEffector::CMD_QUEUE_MUTEX.Lock();
  if (!mCommandQueue.empty()) {
    for (std::list<CommandInfo>::iterator it = mCommandQueue.begin();
         it != mCommandQueue.end();) {
      switch (it->mType) {
      case CT_Kick:
        mIsKick = false;
        --mKickCount;
        it = mCommandQueue.erase(it);
        break;
      case CT_Dash:
        mIsDash = false;
        --mDashCount;
        it = mCommandQueue.erase(it);
        break;
      case CT_Move:
        mIsMove = false;
        --mMoveCount;
        it = mCommandQueue.erase(it);
        break;
      case CT_Turn:
        mIsTurn = false;
        --mTurnCount;
        it = mCommandQueue.erase(it);
        break;
      case CT_TurnNeck:
        mIsTurnNeck = false;
        --mTurnNeckCount;
        it = mCommandQueue.erase(it);
        break;
      case CT_Tackle:
        mIsTackle = false;
        --mTackleCount;
        it = mCommandQueue.erase(it);
        break;
      default:
        ++it;
        break;
      }
    }
    mIsMutex = false;
  }
  ActionEffector::CMD_QUEUE_MUTEX.UnLock();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x80(%rbp)
leaq 0xeee9a(%rip), %rdi     # 0xfe6c8
callq 0x8ebb0
movq -0x80(%rbp), %rdi
addq $0x28, %rdi
callq 0x11900
testb $0x1, %al
jne 0xfabb
movq -0x80(%rbp), %rdi
addq $0x28, %rdi
callq 0x11920
movq %rax, -0x10(%rbp)
movq -0x80(%rbp), %rdi
addq $0x28, %rdi
callq 0x11980
movq %rax, -0x18(%rbp)
leaq -0x10(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x11950
testb $0x1, %al
jne 0xf880
jmp 0xfab0
leaq -0x10(%rbp), %rdi
callq 0x119b0
movl (%rax), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x88(%rbp)
subl $0x9, %eax
ja 0xfaa2
movq -0x88(%rbp), %rax
leaq 0xb17eb(%rip), %rcx     # 0xc1098
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x80(%rbp), %rax
movb $0x0, 0xe96(%rax)
movl 0xe54(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0xe54(%rax)
addq $0x28, %rax
movq %rax, -0x90(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x10(%rbp), %rsi
callq 0x11f00
movq -0x90(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x11eb0
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0xfaab
movq -0x80(%rbp), %rax
movb $0x0, 0xe92(%rax)
movl 0xe44(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0xe44(%rax)
addq $0x28, %rax
movq %rax, -0x98(%rbp)
leaq -0x38(%rbp), %rdi
leaq -0x10(%rbp), %rsi
callq 0x11f00
movq -0x98(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x11eb0
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0xfaab
movq -0x80(%rbp), %rax
movb $0x0, 0xe9a(%rax)
movl 0xe64(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0xe64(%rax)
addq $0x28, %rax
movq %rax, -0xa0(%rbp)
leaq -0x48(%rbp), %rdi
leaq -0x10(%rbp), %rsi
callq 0x11f00
movq -0xa0(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x11eb0
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0xfaab
movq -0x80(%rbp), %rax
movb $0x0, 0xe91(%rax)
movl 0xe40(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0xe40(%rax)
addq $0x28, %rax
movq %rax, -0xa8(%rbp)
leaq -0x58(%rbp), %rdi
leaq -0x10(%rbp), %rsi
callq 0x11f00
movq -0xa8(%rbp), %rdi
movq -0x58(%rbp), %rsi
callq 0x11eb0
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0xfaab
movq -0x80(%rbp), %rax
movb $0x0, 0xe93(%rax)
movl 0xe48(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0xe48(%rax)
addq $0x28, %rax
movq %rax, -0xb0(%rbp)
leaq -0x68(%rbp), %rdi
leaq -0x10(%rbp), %rsi
callq 0x11f00
movq -0xb0(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x11eb0
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0xfaab
movq -0x80(%rbp), %rax
movb $0x0, 0xe97(%rax)
movl 0xe58(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0xe58(%rax)
addq $0x28, %rax
movq %rax, -0xb8(%rbp)
leaq -0x78(%rbp), %rdi
leaq -0x10(%rbp), %rsi
callq 0x11f00
movq -0xb8(%rbp), %rdi
movq -0x78(%rbp), %rsi
callq 0x11eb0
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0xfaab
leaq -0x10(%rbp), %rdi
callq 0x11cf0
jmp 0xf859
movq -0x80(%rbp), %rax
movb $0x0, 0xe90(%rax)
leaq 0xeec06(%rip), %rdi     # 0xfe6c8
callq 0x8ebe0
addq $0xc0, %rsp
popq %rbp
retq