QTfrontend/teamselect.cpp
changeset 152 c558957ef644
parent 151 9eb5a4cee35e
child 153 dc10da2a73f9
--- 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();
 }