--- a/QTfrontend/teamselect.cpp Mon Sep 18 17:37:22 2006 +0000
+++ b/QTfrontend/teamselect.cpp Mon Sep 18 17:56:27 2006 +0000
@@ -97,14 +97,19 @@
}
}
-bool TeamSelWidget::isPlaying(HWTeam team)
+bool TeamSelWidget::isPlaying(HWTeam team) const
{
return std::find(curPlayingTeams.begin(), curPlayingTeams.end(), team)!=curPlayingTeams.end();
}
-unsigned char TeamSelWidget::numHedgedogs(HWTeam team)
+list<HWTeam> TeamSelWidget::getPlayingTeams() const
{
- TeamShowWidget* tsw=dynamic_cast<TeamShowWidget*>(framePlaying->getTeamWidget(team));
+ return curPlayingTeams;
+}
+
+unsigned char TeamSelWidget::numHedgedogs(HWTeam team) const
+{
+ const TeamShowWidget* tsw=dynamic_cast<TeamShowWidget*>(framePlaying->getTeamWidget(team));
if(!tsw) return 0;
return tsw->getHedgehogsNum();
}