QTfrontend/frameTeam.cpp
changeset 207 287077789132
parent 184 f97a7a3dc8f6
child 341 184230eb4151
--- a/QTfrontend/frameTeam.cpp	Fri Oct 27 14:30:36 2006 +0000
+++ b/QTfrontend/frameTeam.cpp	Fri Oct 27 19:37:59 2006 +0000
@@ -28,6 +28,20 @@
   QWidget(parent), maxHedgehogsPerGame(18), overallHedgehogs(0), mainLayout(this)
 {
   mainLayout.setSpacing(1);
+
+  availableColors.push_back(QColor(0, 0, 255));
+  availableColors.push_back(QColor(0, 255, 0));
+  availableColors.push_back(QColor(0, 255, 255));
+  availableColors.push_back(QColor(255, 0, 0));
+  availableColors.push_back(QColor(255, 0, 255));
+  availableColors.push_back(QColor(255, 255, 0));
+
+  resetColors();
+}
+
+void FrameTeams::resetColors()
+{
+  currentColor=availableColors.begin();
 }
 
 void FrameTeams::addTeam(HWTeam team, bool willPlay)