diff options
Diffstat (limited to 'doc/html/t12-cannon-cpp.html')
-rw-r--r-- | doc/html/t12-cannon-cpp.html | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/html/t12-cannon-cpp.html b/doc/html/t12-cannon-cpp.html index ec0e6e0f1..704d75fd8 100644 --- a/doc/html/t12-cannon-cpp.html +++ b/doc/html/t12-cannon-cpp.html @@ -39,10 +39,10 @@ body { background: #ffffff; color: black; } ****************************************************************/ #include "cannon.h" -#include <<a href="qtimer-h.html">ntqtimer.h</a>> +#include <<a href="tqtimer-h.html">tqtimer.h</a>> #include <<a href="qpainter-h.html">ntqpainter.h</a>> #include <<a href="qpixmap-h.html">ntqpixmap.h</a>> -#include <<a href="qdatetime-h.html">ntqdatetime.h</a>> +#include <<a href="tqdatetime-h.html">tqdatetime.h</a>> #include <math.h> #include <stdlib.h> @@ -54,8 +54,8 @@ body { background: #ffffff; color: black; } ang = 45; f = 0; timerCount = 0; - autoShootTimer = new <a href="ntqtimer.html">TQTimer</a>( this, "movement handler" ); - <a href="tqobject.html#connect">connect</a>( autoShootTimer, TQ_SIGNAL(<a href="ntqtimer.html#timeout">timeout</a>()), + autoShootTimer = new <a href="tqtimer.html">TQTimer</a>( this, "movement handler" ); + <a href="tqobject.html#connect">connect</a>( autoShootTimer, TQ_SIGNAL(<a href="tqtimer.html#timeout">timeout</a>()), this, TQ_SLOT(moveShot()) ); shoot_ang = 0; shoot_f = 0; @@ -92,12 +92,12 @@ void <a name="f76"></a>CannonField::setForce( int newton ) void <a name="f77"></a>CannonField::shoot() { - if ( autoShootTimer-><a href="ntqtimer.html#isActive">isActive</a>() ) + if ( autoShootTimer-><a href="tqtimer.html#isActive">isActive</a>() ) return; timerCount = 0; shoot_ang = ang; shoot_f = f; - autoShootTimer-><a href="ntqtimer.html#start">start</a>( 50 ); + autoShootTimer-><a href="tqtimer.html#start">start</a>( 50 ); } @@ -106,8 +106,8 @@ void <a name="f78"></a>CannonField::newTarget() static bool first_time = TRUE; if ( first_time ) { first_time = FALSE; - <a href="qtime.html">TQTime</a> midnight( 0, 0, 0 ); - srand( midnight.<a href="qtime.html#secsTo">secsTo</a>(TQTime::<a href="qtime.html#currentTime">currentTime</a>()) ); + <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>()) ); } <a href="ntqregion.html">TQRegion</a> r( targetRect() ); target = TQPoint( 200 + rand() % 190, @@ -124,10 +124,10 @@ void <a name="f79"></a>CannonField::moveShot() <a href="ntqrect.html">TQRect</a> shotR = shotRect(); if ( shotR.<a href="ntqrect.html#intersects">intersects</a>( targetRect() ) ) { - autoShootTimer-><a href="ntqtimer.html#stop">stop</a>(); + autoShootTimer-><a href="tqtimer.html#stop">stop</a>(); emit hit(); } else if ( shotR.<a href="ntqrect.html#x">x</a>() > width() || shotR.<a href="ntqrect.html#y">y</a>() > height() ) { - autoShootTimer-><a href="ntqtimer.html#stop">stop</a>(); + autoShootTimer-><a href="tqtimer.html#stop">stop</a>(); emit missed(); } else { r = r.<a href="ntqrect.html#unite">unite</a>( TQRegion( shotR ) ); @@ -144,7 +144,7 @@ void CannonField::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="qp if ( updateR.<a href="ntqrect.html#intersects">intersects</a>( cannonRect() ) ) paintCannon( &p ); - if ( autoShootTimer-><a href="ntqtimer.html#isActive">isActive</a>() && + if ( autoShootTimer-><a href="tqtimer.html#isActive">isActive</a>() && updateR.<a href="ntqrect.html#intersects">intersects</a>( shotRect() ) ) paintShot( &p ); if ( updateR.<a href="ntqrect.html#intersects">intersects</a>( targetRect() ) ) |