QTfrontend/game.cpp
changeset 4428 2bc3d3475edf
parent 4406 beb4de0af990
child 4430 cacda05a053e
--- a/QTfrontend/game.cpp	Sun Nov 28 19:03:28 2010 +0300
+++ b/QTfrontend/game.cpp	Sun Nov 28 12:55:57 2010 -0500
@@ -377,3 +377,15 @@
     gameState = state;
     emit GameStateChanged(state);
 }
+
+void HWGame::KillAllTeams()
+{
+    if (m_pTeamSelWidget)
+    {
+        QByteArray buf;
+        QList<HWTeam> teams = m_pTeamSelWidget->getPlayingTeams();
+        for(QList<HWTeam>::iterator it = teams.begin(); it != teams.end(); ++it)
+            HWProto::addStringToBuffer(buf, QString("eteamgone %1").arg((*it).TeamName));
+        RawSendIPC(buf);
+    }
+}