コード例 #1
0
void KBAIPlayer::slotRestart()
{
	if(m_randomSeq == 0 || m_ownShipList == 0 || m_battleField == 0)
		return;

	addShips();
	chooseStrategy();
	emit sigReady();
}
コード例 #2
0
/** called when the analyze is ready  */
void Analysis::ready()
{
  if (error()) {
    emit message("Analysis aborted");
  }
  else {
    if (!no_map_)
      prepareResultImage();
    emit message("Analysis finished");

  }
  qDebug("######## READY ########\n");
//!  cleanUp_.deleteFiles();
  emit sigReady(iNodeRoot_, map_);
}