equal
deleted
inserted
replaced
375 void HWGame::SetGameState(GameState state) |
375 void HWGame::SetGameState(GameState state) |
376 { |
376 { |
377 gameState = state; |
377 gameState = state; |
378 emit GameStateChanged(state); |
378 emit GameStateChanged(state); |
379 } |
379 } |
|
380 |
|
381 void HWGame::KillAllTeams() |
|
382 { |
|
383 if (m_pTeamSelWidget) |
|
384 { |
|
385 QByteArray buf; |
|
386 QList<HWTeam> teams = m_pTeamSelWidget->getPlayingTeams(); |
|
387 for(QList<HWTeam>::iterator it = teams.begin(); it != teams.end(); ++it) |
|
388 HWProto::addStringToBuffer(buf, QString("eteamgone %1").arg((*it).TeamName)); |
|
389 RawSendIPC(buf); |
|
390 } |
|
391 } |