QTfrontend/ui/widget/teamselect.cpp
changeset 12217 a6cd48b8ef61
parent 11046 47a8c19ecb60
child 12298 91ebbadc461d
--- a/QTfrontend/ui/widget/teamselect.cpp	Mon Apr 10 20:56:01 2017 +0200
+++ b/QTfrontend/ui/widget/teamselect.cpp	Mon Apr 10 21:42:53 2017 +0200
@@ -310,6 +310,17 @@
     return m_curNotPlayingTeams;
 }
 
+unsigned short TeamSelWidget::getNumHedgehogs() const
+{
+    unsigned short numHogs = 0;
+    QList<HWTeam>::const_iterator team;
+    for(team = curPlayingTeams.begin(); team != curPlayingTeams.end(); ++team)
+    {
+        numHogs += (*team).numHedgehogs();
+    }
+    return numHogs;
+}
+
 void TeamSelWidget::pre_changeTeamStatus(const HWTeam & team)
 {
     //team.setColor(framePlaying->getNextColor());