QTfrontend/frameTeam.cpp
changeset 352 4665bfe25470
parent 348 c91b983de18f
child 362 b28e0dd48269
--- a/QTfrontend/frameTeam.cpp	Sun Jan 21 19:51:02 2007 +0000
+++ b/QTfrontend/frameTeam.cpp	Sun Jan 21 19:53:25 2007 +0000
@@ -62,6 +62,13 @@
   teamToWidget.erase(it);
 }
 
+void FrameTeams::setHHNum(const HWTeam& team)
+{
+  TeamShowWidget* pTeamShowWidget = dynamic_cast<TeamShowWidget*>(getTeamWidget(team));
+  if(!pTeamShowWidget) throw;
+  pTeamShowWidget->setHHNum(team.numHedgehogs);
+}
+
 QWidget* FrameTeams::getTeamWidget(HWTeam team)
 {
   tmapTeamToWidget::iterator it=teamToWidget.find(team);