QTfrontend/newnetclient.cpp
changeset 332 10080f681118
parent 329 4c3aad46baa5
child 334 85eacbd9827f
equal deleted inserted replaced
331:6bfc326e4976 332:10080f681118
   166     return;
   166     return;
   167   }
   167   }
   168 
   168 
   169   if (lst[0] == "CONFIG_PARAM") {
   169   if (lst[0] == "CONFIG_PARAM") {
   170   	if (lst[1] == "SEED") {
   170   	if (lst[1] == "SEED") {
   171       emit seedChanged(lst[2]);
   171 	  emit seedChanged(lst[2]);
   172 	  return;
   172 	  return;
   173   	}
   173   	}
   174   	if (lst[1] == "MAP") {
   174   	if (lst[1] == "MAP") {
   175       emit mapChanged(lst[2]);
   175 	  emit mapChanged(lst[2]);
   176 	  return;
   176 	  return;
   177   	}
   177   	}
   178   	if (lst[1] == "THEME") {
   178   	if (lst[1] == "THEME") {
   179       emit themeChanged(lst[2]);
   179 	  emit themeChanged(lst[2]);
   180 	  return;
   180 	  return;
   181   	}
   181   	}
   182   	if (lst[1] == "HEALTH") {
   182   	if (lst[1] == "HEALTH") {
   183       emit initHealthChanged(lst[2].toUInt());
   183 	  emit initHealthChanged(lst[2].toUInt());
   184 	  return;
   184 	  return;
   185   	}
   185   	}
   186   	if (lst[1] == "TURNTIME") {
   186   	if (lst[1] == "TURNTIME") {
   187       emit turnTimeChanged(lst[2].toUInt());
   187 	  emit turnTimeChanged(lst[2].toUInt());
   188 	  return;
   188 	  return;
   189   	}
   189   	}
   190   	if (lst[1] == "FORTSMODE") {
   190   	if (lst[1] == "FORTSMODE") {
   191       emit fortsModeChanged(lst[2].toInt() != 0);
   191 	  emit fortsModeChanged(lst[2].toInt() != 0);
   192 	  return;
   192 	  return;
   193   	}
   193   	}
   194   	qDebug() << "unknow config param: " << lst[1];
   194   	qDebug() << "unknow config param: " << lst[1];
   195     return;
   195     return;
   196   }
   196   }