You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
627 B
34 lines
627 B
#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
|