summaryrefslogtreecommitdiff
path: root/noncore/games/kbill
Side-by-side diff
Diffstat (limited to 'noncore/games/kbill') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/kbill/Game.cc14
-rw-r--r--noncore/games/kbill/Game.h2
-rw-r--r--noncore/games/kbill/field.cpp2
-rw-r--r--noncore/games/kbill/inputbox.cpp10
-rw-r--r--noncore/games/kbill/kbill.h42
5 files changed, 36 insertions, 34 deletions
diff --git a/noncore/games/kbill/Game.cc b/noncore/games/kbill/Game.cc
index 624b50b..4cd5322 100644
--- a/noncore/games/kbill/Game.cc
+++ b/noncore/games/kbill/Game.cc
@@ -60,3 +60,3 @@ void Game::update_info() {
}
-
+
void Game::update_score (int action) {
@@ -74,3 +74,3 @@ void Game::warp_to_level (unsigned int lev) {
else {
- if (lev<=0) return;
+ if (lev <=0) return;
start(lev);
@@ -101,3 +101,3 @@ void Game::button_press(int x, int y) {
{
- if (bill.list[i].state == bill.list[i].AT)
+ if (bill.list[i].state == bill.list[i].AT)
net.computers[bill.list[i].target_c].busy=0;
@@ -133,6 +133,6 @@ void Game::button_release(int x, int y) {
&&
- (net.computers[i].os == OS.WINGDOWS ||
+ (net.computers[i].os == OS.WINGDOWS ||
net.computers[i].os == OS.OFF))
{
- net.base++;
+ net.base++;
if (net.computers[i].os == OS.WINGDOWS)
@@ -147,3 +147,3 @@ void Game::button_release(int x, int y) {
grabbed = EMPTY;
-}
+}
@@ -152,3 +152,3 @@ void Game::update() {
case PLAYING:
- ui.clear();
+ ui.clear();
bucket.draw();
diff --git a/noncore/games/kbill/Game.h b/noncore/games/kbill/Game.h
index 4473936..5c9c497 100644
--- a/noncore/games/kbill/Game.h
+++ b/noncore/games/kbill/Game.h
@@ -6,3 +6,3 @@
class Game {
- unsigned state;
+ int state;
int efficiency;
diff --git a/noncore/games/kbill/field.cpp b/noncore/games/kbill/field.cpp
index a974ab2..0dd8d72 100644
--- a/noncore/games/kbill/field.cpp
+++ b/noncore/games/kbill/field.cpp
@@ -82,2 +82,2 @@ void Field::paintEvent(QPaintEvent *) {
bitBlt(this, 0, 0, pix);
-} \ No newline at end of file
+}
diff --git a/noncore/games/kbill/inputbox.cpp b/noncore/games/kbill/inputbox.cpp
index 5087fbb..7aaebe7 100644
--- a/noncore/games/kbill/inputbox.cpp
+++ b/noncore/games/kbill/inputbox.cpp
@@ -18,5 +18,5 @@
#include "inputbox.h"
-InputBox::InputBox(QWidget *parent, const char *name, const char *caption, const char *text) : QDialog(parent, name, TRUE) {
+InputBox::InputBox(QWidget *parent, const char *name, const char *, const char *) : QDialog(parent, name, TRUE) {
// setCaption(caption);
-//
+//
// question = new QLabel(this);
@@ -24,3 +24,3 @@ InputBox::InputBox(QWidget *parent, const char *name, const char *caption, const
// question->setGeometry(10, 10, 240, 50);
-//
+//
// input = new QLineEdit(this);
@@ -29,3 +29,3 @@ InputBox::InputBox(QWidget *parent, const char *name, const char *caption, const
// input->setMaxLength(19);
-//
+//
// ok = new QPushButton( "Ok", this );
@@ -34,3 +34,3 @@ InputBox::InputBox(QWidget *parent, const char *name, const char *caption, const
// connect( ok, SIGNAL(clicked()), SLOT(accept()) );
-//
+//
// cancel = new QPushButton( "Cancel", this );
diff --git a/noncore/games/kbill/kbill.h b/noncore/games/kbill/kbill.h
index fbc0c6c..da1a111 100644
--- a/noncore/games/kbill/kbill.h
+++ b/noncore/games/kbill/kbill.h
@@ -30,23 +30,25 @@ class KBill : public QMainWindow
{
- Q_OBJECT
- public:
+ Q_OBJECT
+public:
KBill();
- ~KBill();
- Field* getField();
- private:
- QMenuBar *menu;
- QPopupMenu *file, *help;
- Field *field;
- int pauseid;
- protected slots:
- void Quit();
- void About();
- void NewGame();
- void Pause();
- void WarpTo();
- void Story();
- void Rules();
- void ViewHighScores();
-
- friend class UI;
+ ~KBill();
+ Field* getField();
+private:
+ QMenuBar *menu;
+ QPopupMenu *file, *help;
+ Field *field;
+ int pauseid;
+
+protected slots:
+ void Quit();
+ void About();
+ void NewGame();
+ void Pause();
+ void WarpTo();
+ void Story();
+ void Rules();
+ void ViewHighScores();
+
+protected:
+ friend class UI;
};