summaryrefslogtreecommitdiffstats
path: root/doc/html/t14-gamebrd-cpp.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/t14-gamebrd-cpp.html')
-rw-r--r--doc/html/t14-gamebrd-cpp.html26
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/html/t14-gamebrd-cpp.html b/doc/html/t14-gamebrd-cpp.html
index 9ebd6d3ae..4b42ca9ba 100644
--- a/doc/html/t14-gamebrd-cpp.html
+++ b/doc/html/t14-gamebrd-cpp.html
@@ -44,8 +44,8 @@ body { background: #ffffff; color: black; }
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="tqlabel-h.html">tqlabel.h</a>&gt;
#include &lt;<a href="qaccel-h.html">ntqaccel.h</a>&gt;
-#include &lt;<a href="qpushbutton-h.html">ntqpushbutton.h</a>&gt;
-#include &lt;<a href="qlcdnumber-h.html">ntqlcdnumber.h</a>&gt;
+#include &lt;<a href="tqpushbutton-h.html">tqpushbutton.h</a>&gt;
+#include &lt;<a href="tqlcdnumber-h.html">tqlcdnumber.h</a>&gt;
#include &lt;<a href="qlayout-h.html">ntqlayout.h</a>&gt;
#include &lt;<a href="qvbox-h.html">ntqvbox.h</a>&gt;
@@ -55,7 +55,7 @@ body { background: #ffffff; color: black; }
<a name="f139"></a>GameBoard::GameBoard( <a href="tqwidget.html">TQWidget</a> *parent, const char *name )
: <a href="tqwidget.html">TQWidget</a>( parent, name )
{
- <a href="ntqpushbutton.html">TQPushButton</a> *quit = new <a href="ntqpushbutton.html">TQPushButton</a>( "&amp;Quit", this, "quit" );
+ <a href="tqpushbutton.html">TQPushButton</a> *quit = new <a href="tqpushbutton.html">TQPushButton</a>( "&amp;Quit", this, "quit" );
quit-&gt;<a href="tqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="tqobject.html#connect">connect</a>( quit, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
@@ -86,7 +86,7 @@ body { background: #ffffff; color: black; }
<a href="tqobject.html#connect">connect</a>( cannonField, TQ_SIGNAL(missed()),
this, TQ_SLOT(missed()) );
- <a href="ntqpushbutton.html">TQPushButton</a> *shoot = new <a href="ntqpushbutton.html">TQPushButton</a>( "&amp;Shoot", this, "shoot" );
+ <a href="tqpushbutton.html">TQPushButton</a> *shoot = new <a href="tqpushbutton.html">TQPushButton</a>( "&amp;Shoot", this, "shoot" );
shoot-&gt;<a href="tqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="tqobject.html#connect">connect</a>( shoot, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), TQ_SLOT(fire()) );
@@ -95,13 +95,13 @@ body { background: #ffffff; color: black; }
shoot, TQ_SLOT(<a href="tqwidget.html#setEnabled">setEnabled</a>(bool)) );
TQPushButton *restart
- = new <a href="ntqpushbutton.html">TQPushButton</a>( "&amp;New Game", this, "newgame" );
+ = new <a href="tqpushbutton.html">TQPushButton</a>( "&amp;New Game", this, "newgame" );
restart-&gt;setFont( TQFont( "Times", 18, TQFont::Bold ) );
<a href="tqobject.html#connect">connect</a>( restart, TQ_SIGNAL(clicked()), this, TQ_SLOT(newGame()) );
- hits = new <a href="ntqlcdnumber.html">TQLCDNumber</a>( 2, this, "hits" );
- shotsLeft = new <a href="ntqlcdnumber.html">TQLCDNumber</a>( 2, this, "shotsleft" );
+ hits = new <a href="tqlcdnumber.html">TQLCDNumber</a>( 2, this, "hits" );
+ shotsLeft = new <a href="tqlcdnumber.html">TQLCDNumber</a>( 2, this, "shotsleft" );
<a href="tqlabel.html">TQLabel</a> *hitsL = new <a href="tqlabel.html">TQLabel</a>( "HITS", this, "hitsLabel" );
TQLabel *shotsLeftL
= new <a href="tqlabel.html">TQLabel</a>( "SHOTS LEFT", this, "shotsleftLabel" );
@@ -146,15 +146,15 @@ void <a name="f140"></a>GameBoard::fire()
{
if ( cannonField-&gt;gameOver() || cannonField-&gt;isShooting() )
return;
- shotsLeft-&gt;<a href="ntqlcdnumber.html#display">display</a>( shotsLeft-&gt;<a href="ntqlcdnumber.html#intValue">intValue</a>() - 1 );
+ shotsLeft-&gt;<a href="tqlcdnumber.html#display">display</a>( shotsLeft-&gt;<a href="tqlcdnumber.html#intValue">intValue</a>() - 1 );
cannonField-&gt;shoot();
}
void <a name="f141"></a>GameBoard::hit()
{
- hits-&gt;<a href="ntqlcdnumber.html#display">display</a>( hits-&gt;<a href="ntqlcdnumber.html#intValue">intValue</a>() + 1 );
- if ( shotsLeft-&gt;<a href="ntqlcdnumber.html#intValue">intValue</a>() == 0 )
+ hits-&gt;<a href="tqlcdnumber.html#display">display</a>( hits-&gt;<a href="tqlcdnumber.html#intValue">intValue</a>() + 1 );
+ if ( shotsLeft-&gt;<a href="tqlcdnumber.html#intValue">intValue</a>() == 0 )
cannonField-&gt;setGameOver();
else
cannonField-&gt;newTarget();
@@ -163,15 +163,15 @@ void <a name="f141"></a>GameBoard::hit()
void <a name="f142"></a>GameBoard::missed()
{
- if ( shotsLeft-&gt;<a href="ntqlcdnumber.html#intValue">intValue</a>() == 0 )
+ if ( shotsLeft-&gt;<a href="tqlcdnumber.html#intValue">intValue</a>() == 0 )
cannonField-&gt;setGameOver();
}
void <a name="f143"></a>GameBoard::newGame()
{
- shotsLeft-&gt;<a href="ntqlcdnumber.html#display">display</a>( 15 );
- hits-&gt;<a href="ntqlcdnumber.html#display">display</a>( 0 );
+ shotsLeft-&gt;<a href="tqlcdnumber.html#display">display</a>( 15 );
+ hits-&gt;<a href="tqlcdnumber.html#display">display</a>( 0 );
cannonField-&gt;restartGame();
cannonField-&gt;newTarget();
}