[go: up one dir, main page]

File: field.h

package info (click to toggle)
kdegames 4%3A3.3.2-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 36,868 kB
  • ctags: 16,457
  • sloc: cpp: 113,894; ansic: 13,709; sh: 9,240; perl: 2,753; makefile: 1,376; xml: 697
file content (33 lines) | stat: -rw-r--r-- 627 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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