summaryrefslogtreecommitdiffstats
path: root/kgoldrunner/src/kgrobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kgoldrunner/src/kgrobject.cpp')
-rw-r--r--kgoldrunner/src/kgrobject.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kgoldrunner/src/kgrobject.cpp b/kgoldrunner/src/kgrobject.cpp
index 277dbc6a..8b4e7229 100644
--- a/kgoldrunner/src/kgrobject.cpp
+++ b/kgoldrunner/src/kgrobject.cpp
@@ -26,18 +26,18 @@ KGrObject::KGrObject (char objType)
{
iamA = objType;
searchValue = 0;
- blocker = FALSE;
+ blocker = false;
if ((objType == BRICK) || (objType == BETON) || (objType == FBRICK)) {
- blocker = TRUE;
+ blocker = true;
}
xpos = 0;
ypos = 0;
objectView = NULL;
}
-bool KGrObject::frozen = FALSE; // Initialise game as running, not halted.
-bool KGrObject::bugFixed = FALSE;// Initialise game with dynamic bug-fix OFF.
-bool KGrObject::logging = FALSE;// Initialise game with log printing OFF.
+bool KGrObject::frozen = false; // Initialise game as running, not halted.
+bool KGrObject::bugFixed = false;// Initialise game with dynamic bug-fix OFF.
+bool KGrObject::logging = false;// Initialise game with log printing OFF.
char KGrObject::whatIam ()
{
@@ -103,10 +103,10 @@ KGrBrick::KGrBrick (char objType, int i, int j, KGrCanvas * view)
ypos = j;
objectView = view;
dig_counter = 0;
- holeFrozen = FALSE;
+ holeFrozen = false;
iamA = BRICK;
timer = new TQTimer (this);
- connect (timer, TQT_SIGNAL (timeout ()), TQT_SLOT (timeDone ()));
+ connect (timer, TQ_SIGNAL (timeout ()), TQ_SLOT (timeDone ()));
}
void KGrBrick::dig (void)
@@ -116,12 +116,12 @@ void KGrBrick::dig (void)
iamA = HOLE;
objectView->paintCell (xpos, ypos, BRICK, dig_counter);
objectView->updateCanvas();
- timer->start ((DIGDELAY * NSPEED) / speed, TRUE);
+ timer->start ((DIGDELAY * NSPEED) / speed, true);
}
void KGrBrick::doStep() {
if (holeFrozen) {
- holeFrozen = FALSE;
+ holeFrozen = false;
timeDone();
}
}
@@ -137,19 +137,19 @@ void KGrBrick::showState (int i, int j)
void KGrBrick::timeDone ()
{
- if (KGrObject::frozen) {holeFrozen = TRUE; return;}
+ if (KGrObject::frozen) {holeFrozen = true; return;}
// When the hole is complete, we need a longer delay.
if (dig_counter == 5) {
hole_counter--;
if (hole_counter > 0) {
- timer->start ((DIGDELAY * NSPEED) / speed, TRUE);
+ timer->start ((DIGDELAY * NSPEED) / speed, true);
return;
}
}
if (dig_counter < 9) {
dig_counter++;
- timer->start ((DIGDELAY * NSPEED) / speed, TRUE);
+ timer->start ((DIGDELAY * NSPEED) / speed, true);
if (dig_counter >= 8)
iamA = BRICK;
}