--- 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());