summaryrefslogtreecommitdiffstats
path: root/doc/html/t14-cannon-cpp.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/t14-cannon-cpp.html')
-rw-r--r--doc/html/t14-cannon-cpp.html24
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/html/t14-cannon-cpp.html b/doc/html/t14-cannon-cpp.html
index 625040533..e51955539 100644
--- a/doc/html/t14-cannon-cpp.html
+++ b/doc/html/t14-cannon-cpp.html
@@ -39,10 +39,10 @@ body { background: #ffffff; color: black; }
****************************************************************/
#include "cannon.h"
-#include &lt;<a href="qtimer-h.html">ntqtimer.h</a>&gt;
+#include &lt;<a href="tqtimer-h.html">tqtimer.h</a>&gt;
#include &lt;<a href="qpainter-h.html">ntqpainter.h</a>&gt;
#include &lt;<a href="qpixmap-h.html">ntqpixmap.h</a>&gt;
-#include &lt;<a href="qdatetime-h.html">ntqdatetime.h</a>&gt;
+#include &lt;<a href="tqdatetime-h.html">tqdatetime.h</a>&gt;
#include &lt;math.h&gt;
#include &lt;stdlib.h&gt;
@@ -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;
@@ -99,7 +99,7 @@ void <a name="f124"></a>CannonField::shoot()
timerCount = 0;
shoot_ang = ang;
shoot_f = f;
- autoShootTimer-&gt;<a href="ntqtimer.html#start">start</a>( 50 );
+ autoShootTimer-&gt;<a href="tqtimer.html#start">start</a>( 50 );
emit canShoot( FALSE );
}
@@ -109,8 +109,8 @@ void <a name="f125"></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,
@@ -123,7 +123,7 @@ void <a name="f126"></a>CannonField::setGameOver()
if ( gameEnded )
return;
if ( isShooting() )
- autoShootTimer-&gt;<a href="ntqtimer.html#stop">stop</a>();
+ autoShootTimer-&gt;<a href="tqtimer.html#stop">stop</a>();
gameEnded = TRUE;
<a href="tqwidget.html#repaint">repaint</a>();
}
@@ -131,7 +131,7 @@ void <a name="f126"></a>CannonField::setGameOver()
void <a name="f127"></a>CannonField::restartGame()
{
if ( isShooting() )
- autoShootTimer-&gt;<a href="ntqtimer.html#stop">stop</a>();
+ autoShootTimer-&gt;<a href="tqtimer.html#stop">stop</a>();
gameEnded = FALSE;
<a href="tqwidget.html#repaint">repaint</a>();
emit canShoot( TRUE );
@@ -145,12 +145,12 @@ void <a name="f128"></a>CannonField::moveShot()
<a href="ntqrect.html">TQRect</a> shotR = shotRect();
if ( shotR.<a href="ntqrect.html#intersects">intersects</a>( targetRect() ) ) {
- autoShootTimer-&gt;<a href="ntqtimer.html#stop">stop</a>();
+ autoShootTimer-&gt;<a href="tqtimer.html#stop">stop</a>();
emit hit();
emit canShoot( TRUE );
} else if ( shotR.<a href="ntqrect.html#x">x</a>() &gt; width() || shotR.<a href="ntqrect.html#y">y</a>() &gt; height() ||
shotR.<a href="ntqrect.html#intersects">intersects</a>(barrierRect()) ) {
- autoShootTimer-&gt;<a href="ntqtimer.html#stop">stop</a>();
+ autoShootTimer-&gt;<a href="tqtimer.html#stop">stop</a>();
emit missed();
emit canShoot( TRUE );
} else {
@@ -310,7 +310,7 @@ bool <a name="f137"></a>CannonField::barrelHit( const <a href="ntqpoint.html">TQ
bool <a name="f138"></a>CannonField::isShooting() const
{
- return autoShootTimer-&gt;<a href="ntqtimer.html#isActive">isActive</a>();
+ return autoShootTimer-&gt;<a href="tqtimer.html#isActive">isActive</a>();
}