summaryrefslogtreecommitdiffstats
path: root/klickety/field.h
diff options
context:
space:
mode:
Diffstat (limited to 'klickety/field.h')
-rw-r--r--klickety/field.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/klickety/field.h b/klickety/field.h
new file mode 100644
index 00000000..67e6529b
--- /dev/null
+++ b/klickety/field.h
@@ -0,0 +1,33 @@
+#ifndef KL_FIELD_H
+#define KL_FIELD_H
+
+#include <qwidget.h>
+
+#include "base/field.h"
+#include "base/inter.h"
+
+class KGameLCDClock;
+
+class Field : public QWidget, public BaseField, public BaseInterface
+{
+ Q_OBJECT
+ public:
+ Field(QWidget *parent);
+
+ private slots:
+ void scoreUpdatedSlot() { scoreUpdated(); }
+ void start();
+ void gameOver();
+ void settingsChanged() { BaseField::settingsChanged(); }
+
+ private:
+ KGameLCDClock *elapsedTime;
+
+ void pause();
+ KExtHighscore::Score currentScore() const;
+ void _start() { start(); }
+ void _pause() { pause(); }
+ bool _isPaused() const;
+};
+
+#endif