-rw-r--r-- | noncore/games/kbill/Strings.h | 42 | ||||
-rw-r--r-- | noncore/games/kbill/kbill.cpp | 28 | ||||
-rw-r--r-- | noncore/games/kbill/kbill.pro | 3 |
3 files changed, 23 insertions, 50 deletions
diff --git a/noncore/games/kbill/Strings.h b/noncore/games/kbill/Strings.h index 45509d1..ffd830e 100644 --- a/noncore/games/kbill/Strings.h +++ b/noncore/games/kbill/Strings.h | |||
@@ -3,44 +3,2 @@ | |||
3 | 3 | ||
4 | #define storystr \ | ||
5 | " The Story:\n\ | ||
6 | \n\ | ||
7 | Yet again, the fate of the world rests\n\ | ||
8 | in your hands! An evil computer hacker,\n\ | ||
9 | known only by his handle 'Bill', has\n\ | ||
10 | created the ultimate computer virus. A\n\ | ||
11 | virus so powerful that it has the power\n\ | ||
12 | to transmute an ordinary computer into\n\ | ||
13 | a toaster oven. (oooh!) 'Bill' has\n\ | ||
14 | cloned himself into a billion-jillion\n\ | ||
15 | micro-Bills. Their sole purpose is to\n\ | ||
16 | deliver the nefarious virus, which has\n\ | ||
17 | been cleverly diguised as a popular\n\ | ||
18 | operating system.\n\ | ||
19 | \n\ | ||
20 | As System Administrator/Exterminator,\n\ | ||
21 | your job is to keep Bill from succeeding\n\ | ||
22 | at his task." | ||
23 | |||
24 | #define rulesstr \ | ||
25 | " The Rules:\n\ | ||
26 | \n\ | ||
27 | kBill has been painstakingly designed and\n\ | ||
28 | researched in order to make it as easy to use\n\ | ||
29 | for the whole family as it is for little Sally.\n\ | ||
30 | Years - nay - days of beta testing and \n\ | ||
31 | consulting with the cheapest of human interface\n\ | ||
32 | designers have resulted in a game that is easy\n\ | ||
33 | to use, yet nothing at all like a Macintosh.\n\ | ||
34 | \n\ | ||
35 | I. Whack the Bills (click)\n\ | ||
36 | II. Restart the computer (click)\n\ | ||
37 | III. Pick up stolen OSes & return(drag)\n\ | ||
38 | them to their respective computers\n\ | ||
39 | IV. Drag the bucket to extinguish sparks\n\ | ||
40 | V. Scoring is based on total uptime,\n\ | ||
41 | with bonuses for killing Bills.\n\ | ||
42 | \n\ | ||
43 | As for the rest, you can probably figure\n\ | ||
44 | it out. We did, so it can't be too hard." | ||
45 | |||
46 | #define endgamestr \ | 4 | #define endgamestr \ |
diff --git a/noncore/games/kbill/kbill.cpp b/noncore/games/kbill/kbill.cpp index 568df95..9fcfd5d 100644 --- a/noncore/games/kbill/kbill.cpp +++ b/noncore/games/kbill/kbill.cpp | |||
@@ -18,6 +18,10 @@ | |||
18 | #include <qmessagebox.h> | 18 | #include <qmessagebox.h> |
19 | #include <qmultilinedit.h> | ||
19 | #include <qmenubar.h> | 20 | #include <qmenubar.h> |
21 | #include <qtextbrowser.h> | ||
22 | #include <qfont.h> | ||
23 | #include <qwidget.h> | ||
20 | #include "kbill.h" | 24 | #include "kbill.h" |
21 | #include "inputbox.h" | 25 | #include "inputbox.h" |
22 | 26 | #include "helpdialog.h" | |
23 | #include "objects.h" | 27 | #include "objects.h" |
@@ -33,3 +37,3 @@ KBill::KBill() : QMainWindow() { | |||
33 | //file->insertItem(("View high scores"), this, SLOT(ViewHighScores())); | 37 | //file->insertItem(("View high scores"), this, SLOT(ViewHighScores())); |
34 | file->insertItem(("Quit game"), this, SLOT(Quit())); | 38 | |
35 | 39 | ||
@@ -108,5 +112,10 @@ void KBill::ViewHighScores() { | |||
108 | void KBill::Story() { | 112 | void KBill::Story() { |
109 | field->stopTimer(); | 113 | field->stopTimer(); |
110 | QMessageBox::message( ("Story"), (storystr), 0); | 114 | HelpDialog *stryDialog = new HelpDialog(this,"helpdialog",1); |
111 | field->startTimer(); | 115 | QString stryString = "<b>The Story</b><p>Yet again, the fate of the world rests in your hands! An evil computer hacker, known only by his handle 'Bill', has created the ultimate computer virus. A virus so powerful that it has the power to transmute an ordinary computer into a toaster oven. (oooh!) 'Bill' has cloned himself into a billion-jillion micro-Bills. Their sole purpose is to deliver the nefarious virus, which has been cleverly diguised as a popular operating system. As System Administrator and Exterminator, your job is to keep Bill from succeeding at his task."; |
116 | stryDialog->setCaption("The story of KBill"); | ||
117 | stryDialog->TextBrowser1->setText(stryString); | ||
118 | stryDialog->resize(200,200); | ||
119 | stryDialog->show(); | ||
120 | field->startTimer(); | ||
112 | } | 121 | } |
@@ -115,4 +124,9 @@ void KBill::Rules() { | |||
115 | field->stopTimer(); | 124 | field->stopTimer(); |
116 | QMessageBox::message(("Rules"), (rulesstr), 0); | 125 | HelpDialog *rulesDialog = new HelpDialog(this,"helpdialog",1); |
117 | field->startTimer(); | 126 | rulesDialog->setCaption("The rules of KBill"); |
127 | QString rulesStr = "<b>The Rules</b><p>kBill has been painstakingly designed and researched in order to make it as easy to use for the whole family as it is for little Sally. Years - nay - days of beta testing and consulting with the cheapest of human interface designers have resulted in a game that is easy to use, yet nothing at all like a Macintosh.<p><UL><LI>Whack the Bills (click)</LI><LI>Restart the computer (click)</LI><LI>Pick up stolen OSes & return (drag) them to their respective computers</LI><LI>Drag the bucket to extinguish sparks</LI><LI>Scoring is based on total uptime, with bonuses for killing Bills.</LI></UL><P>As for the rest, you can probably work it out for yourself. We did, so it can't be too hard"; | ||
128 | rulesDialog->TextBrowser1->setText(rulesStr); | ||
129 | rulesDialog->resize(200,200); | ||
130 | rulesDialog->show(); | ||
131 | field->startTimer(); | ||
118 | } | 132 | } |
diff --git a/noncore/games/kbill/kbill.pro b/noncore/games/kbill/kbill.pro index a0eddf2..22aa98c 100644 --- a/noncore/games/kbill/kbill.pro +++ b/noncore/games/kbill/kbill.pro | |||
@@ -8,2 +8,3 @@ Library.cc MCursor.cc Monster.cc Network.cc Picture.cc \ | |||
8 | Spark.cc UI.cpp inputbox.cpp kbill.cpp | 8 | Spark.cc UI.cpp inputbox.cpp kbill.cpp |
9 | INTERFACES = helpdialog.ui | ||
9 | TARGET = kbill | 10 | TARGET = kbill |
@@ -12,2 +13,2 @@ DEPENDPATH += $(OPIEDIR)/include | |||
12 | LIBS += -lqpe | 13 | LIBS += -lqpe |
13 | DESTDIR = $(OPIEDIR)/bin \ No newline at end of file | 14 | DESTDIR = $(OPIEDIR)/bin |