diff options
Diffstat (limited to 'doc/html/t14-cannon-cpp.html')
-rw-r--r-- | doc/html/t14-cannon-cpp.html | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/html/t14-cannon-cpp.html b/doc/html/t14-cannon-cpp.html index 2561f23e9..519fcef41 100644 --- a/doc/html/t14-cannon-cpp.html +++ b/doc/html/t14-cannon-cpp.html @@ -59,8 +59,8 @@ body { background: #ffffff; color: black; } shoot_ang = 0; shoot_f = 0; target = TQPoint( 0, 0 ); - gameEnded = FALSE; - barrelPressed = FALSE; + gameEnded = false; + barrelPressed = false; <a href="tqwidget.html#setPalette">setPalette</a>( TQPalette( TQColor( 250, 250, 200) ) ); newTarget(); } @@ -75,7 +75,7 @@ void <a name="f122"></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 ); } @@ -99,15 +99,15 @@ void <a name="f124"></a>CannonField::shoot() shoot_ang = ang; shoot_f = f; autoShootTimer-><a href="tqtimer.html#start">start</a>( 50 ); - emit canShoot( FALSE ); + emit canShoot( false ); } void <a name="f125"></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>()) ); } @@ -123,7 +123,7 @@ void <a name="f126"></a>CannonField::setGameOver() return; if ( isShooting() ) autoShootTimer-><a href="tqtimer.html#stop">stop</a>(); - gameEnded = TRUE; + gameEnded = true; <a href="tqwidget.html#repaint">repaint</a>(); } @@ -131,9 +131,9 @@ void <a name="f127"></a>CannonField::restartGame() { if ( isShooting() ) autoShootTimer-><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="f128"></a>CannonField::moveShot() @@ -146,12 +146,12 @@ void <a name="f128"></a>CannonField::moveShot() if ( shotR.<a href="tqrect.html#intersects">intersects</a>( targetRect() ) ) { autoShootTimer-><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>() > width() || shotR.<a href="tqrect.html#y">y</a>() > height() || shotR.<a href="tqrect.html#intersects">intersects</a>(barrierRect()) ) { autoShootTimer-><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 ) ); } @@ -165,7 +165,7 @@ void CannonField::<a href="tqwidget.html#mousePressEvent">mousePressEvent</a>( < if ( e-><a href="tqmouseevent.html#button">button</a>() != LeftButton ) return; if ( barrelHit( e-><a href="tqmouseevent.html#pos">pos</a>() ) ) - barrelPressed = TRUE; + barrelPressed = true; } @@ -186,7 +186,7 @@ void CannonField::<a href="tqwidget.html#mouseMoveEvent">mouseMoveEvent</a>( <a void CannonField::<a href="tqwidget.html#mouseReleaseEvent">mouseReleaseEvent</a>( <a href="tqmouseevent.html">TQMouseEvent</a> *e ) { if ( e-><a href="tqmouseevent.html#button">button</a>() == LeftButton ) - barrelPressed = FALSE; + barrelPressed = false; } |