Quasics2021Code/Mae/src/main/cpp/commands/TurnControlPanelToTargetColorCommand.cpp
// Returns true when the command should end.
Returns true when the command should end.
Returns true when the command should end .
bool TurnControlPanelToTargetColorCommand::IsFinished() {
  if (order[((int)((m_aimColor)+1)%4)] == m_controlPanel->getCurrentColor() ||
      m_aimColor == ControlPanel::NO_DATA) {
    return true;
  }
  return false;
}
bool TurnControlPanelToTargetColorCommand :: IsFinished ( ) { if ( order [ ( ( int ) ( ( m_aimColor ) + 1 ) % 4 ) ] == m_controlPanel -> getCurrentColor ( ) || m_aimColor == ControlPanel :: NO_DATA ) { return true ; } return false ; }
Returns true when the command should end.
Returns true when the command should end .