QTfrontend/teamselect.cpp
changeset 140 50ccde437ea1
parent 132 2d0f404cdf05
child 147 52a3c431db8a
--- a/QTfrontend/teamselect.cpp	Sun Sep 03 18:01:34 2006 +0000
+++ b/QTfrontend/teamselect.cpp	Sat Sep 09 16:59:10 2006 +0000
@@ -77,3 +77,19 @@
   addScrArea(framePlaying, QColor("DarkTurquoise"));
   addScrArea(frameDontPlaying, QColor("LightGoldenrodYellow"));
 }
+
+void TeamSelWidget::resetPlayingTeams()
+{
+}
+
+bool TeamSelWidget::isPlaying(HWTeam team)
+{
+  return std::find(curPlayingTeams.begin(), curPlayingTeams.end(), team)!=curPlayingTeams.end();
+}
+
+unsigned char TeamSelWidget::numHedgedogs(HWTeam team)
+{
+  TeamShowWidget* tsw=dynamic_cast<TeamShowWidget*>(framePlaying->getTeamWidget(team));
+  if(!tsw) return 0;
+  return tsw->getHedgehogsNum();
+}