QTfrontend/frameTeam.cpp
changeset 150 d9e8a336195c
parent 140 50ccde437ea1
child 153 dc10da2a73f9
--- a/QTfrontend/frameTeam.cpp	Sat Sep 16 15:15:30 2006 +0000
+++ b/QTfrontend/frameTeam.cpp	Sat Sep 16 17:24:41 2006 +0000
@@ -7,7 +7,7 @@
 using namespace std;
 
 FrameTeams::FrameTeams(QWidget* parent) :
-  QWidget(parent), mainLayout(this)
+  QWidget(parent), maxHedgehogsPerGame(18), mainLayout(this)
 {
   mainLayout.setSpacing(1);
 }
@@ -36,3 +36,8 @@
   QWidget* ret = it!=teamToWidget.end() ? it->second : 0;
   return ret;
 }
+
+bool FrameTeams::isFullTeams() const
+{
+  return overallHedgehogs==maxHedgehogsPerGame;
+}