QTfrontend/gamecfgwidget.cpp
changeset 312 c36d0b34ac3d
parent 311 b8905423f19f
child 318 46a43b02bbb3
--- a/QTfrontend/gamecfgwidget.cpp	Mon Jan 08 18:21:40 2007 +0000
+++ b/QTfrontend/gamecfgwidget.cpp	Mon Jan 08 20:51:22 2007 +0000
@@ -61,7 +61,7 @@
 	SB_TurnTime->setSingleStep(15);
 	SB_InitHealth = new QSpinBox(GBoxOptions);
 	SB_InitHealth->setRange(50, 200);
-	SB_TurnTime->setValue(100);
+	SB_InitHealth->setValue(100);
 	SB_InitHealth->setSingleStep(25);
 	GBoxOptionsLayout->addWidget(SB_TurnTime, 1, 1);
 	GBoxOptionsLayout->addWidget(SB_InitHealth, 2, 1);
@@ -91,3 +91,13 @@
 {
   return pMapContainer->getCurrentTheme();
 }
+
+quint32 GameCFGWidget::getInitHealth() const
+{
+	return SB_InitHealth->value();
+}
+
+quint32 GameCFGWidget::getTurnTime() const
+{
+	return SB_TurnTime->value();
+}