summaryrefslogtreecommitdiffstats
path: root/doc/html/t13-cannon-cpp.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-08-06 11:29:57 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-08-06 11:29:57 +0900
commitdcce5b1f2c449ed9a02b1752e0d74f147a83d07d (patch)
treed57fe27457a96451f1a67e2a2db268a441d917fc /doc/html/t13-cannon-cpp.html
parent649c4c61a1f1f479f4532b196f68df476cef2680 (diff)
downloadtqt-rename/true-false-4.tar.gz
tqt-rename/true-false-4.zip
Replace TRUE/FALSE with boolean values true/false - part 4rename/true-false-4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/t13-cannon-cpp.html')
-rw-r--r--doc/html/t13-cannon-cpp.html20
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/html/t13-cannon-cpp.html b/doc/html/t13-cannon-cpp.html
index b44fa4245..96b09ca09 100644
--- a/doc/html/t13-cannon-cpp.html
+++ b/doc/html/t13-cannon-cpp.html
@@ -59,7 +59,7 @@ body { background: #ffffff; color: black; }
shoot_ang = 0;
shoot_f = 0;
target = TQPoint( 0, 0 );
- gameEnded = FALSE;
+ gameEnded = false;
<a href="tqwidget.html#setPalette">setPalette</a>( TQPalette( TQColor( 250, 250, 200) ) );
newTarget();
}
@@ -74,7 +74,7 @@ void <a name="f95"></a>CannonField::setAngle( int degrees )
if ( ang == degrees )
return;
ang = degrees;
- <a href="tqwidget.html#repaint">repaint</a>( cannonRect(), FALSE );
+ <a href="tqwidget.html#repaint">repaint</a>( cannonRect(), false );
emit angleChanged( ang );
}
@@ -98,15 +98,15 @@ void <a name="f97"></a>CannonField::shoot()
shoot_ang = ang;
shoot_f = f;
autoShootTimer-&gt;<a href="tqtimer.html#start">start</a>( 50 );
- emit canShoot( FALSE );
+ emit canShoot( false );
}
void <a name="f98"></a>CannonField::newTarget()
{
- static bool first_time = TRUE;
+ static bool first_time = true;
if ( first_time ) {
- first_time = FALSE;
+ first_time = false;
<a href="tqtime.html">TQTime</a> midnight( 0, 0, 0 );
srand( midnight.<a href="tqtime.html#secsTo">secsTo</a>(TQTime::<a href="tqtime.html#currentTime">currentTime</a>()) );
}
@@ -122,7 +122,7 @@ void <a name="f99"></a>CannonField::setGameOver()
return;
if ( isShooting() )
autoShootTimer-&gt;<a href="tqtimer.html#stop">stop</a>();
- gameEnded = TRUE;
+ gameEnded = true;
<a href="tqwidget.html#repaint">repaint</a>();
}
@@ -130,9 +130,9 @@ void <a name="f100"></a>CannonField::restartGame()
{
if ( isShooting() )
autoShootTimer-&gt;<a href="tqtimer.html#stop">stop</a>();
- gameEnded = FALSE;
+ gameEnded = false;
<a href="tqwidget.html#repaint">repaint</a>();
- emit canShoot( TRUE );
+ emit canShoot( true );
}
void <a name="f101"></a>CannonField::moveShot()
@@ -145,11 +145,11 @@ void <a name="f101"></a>CannonField::moveShot()
if ( shotR.<a href="tqrect.html#intersects">intersects</a>( targetRect() ) ) {
autoShootTimer-&gt;<a href="tqtimer.html#stop">stop</a>();
emit hit();
- emit canShoot( TRUE );
+ emit canShoot( true );
} else if ( shotR.<a href="tqrect.html#x">x</a>() &gt; width() || shotR.<a href="tqrect.html#y">y</a>() &gt; height() ) {
autoShootTimer-&gt;<a href="tqtimer.html#stop">stop</a>();
emit missed();
- emit canShoot( TRUE );
+ emit canShoot( true );
} else {
r = r.<a href="tqrect.html#unite">unite</a>( TQRegion( shotR ) );
}