diff options
Diffstat (limited to 'doc/html/t14-gamebrd-cpp.html')
-rw-r--r-- | doc/html/t14-gamebrd-cpp.html | 26 |
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 <<a href="qapplication-h.html">ntqapplication.h</a>> #include <<a href="tqlabel-h.html">tqlabel.h</a>> #include <<a href="qaccel-h.html">ntqaccel.h</a>> -#include <<a href="qpushbutton-h.html">ntqpushbutton.h</a>> -#include <<a href="qlcdnumber-h.html">ntqlcdnumber.h</a>> +#include <<a href="tqpushbutton-h.html">tqpushbutton.h</a>> +#include <<a href="tqlcdnumber-h.html">tqlcdnumber.h</a>> #include <<a href="qlayout-h.html">ntqlayout.h</a>> #include <<a href="qvbox-h.html">ntqvbox.h</a>> @@ -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>( "&Quit", this, "quit" ); + <a href="tqpushbutton.html">TQPushButton</a> *quit = new <a href="tqpushbutton.html">TQPushButton</a>( "&Quit", this, "quit" ); quit-><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>( "&Shoot", this, "shoot" ); + <a href="tqpushbutton.html">TQPushButton</a> *shoot = new <a href="tqpushbutton.html">TQPushButton</a>( "&Shoot", this, "shoot" ); shoot-><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>( "&New Game", this, "newgame" ); + = new <a href="tqpushbutton.html">TQPushButton</a>( "&New Game", this, "newgame" ); restart->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->gameOver() || cannonField->isShooting() ) return; - shotsLeft-><a href="ntqlcdnumber.html#display">display</a>( shotsLeft-><a href="ntqlcdnumber.html#intValue">intValue</a>() - 1 ); + shotsLeft-><a href="tqlcdnumber.html#display">display</a>( shotsLeft-><a href="tqlcdnumber.html#intValue">intValue</a>() - 1 ); cannonField->shoot(); } void <a name="f141"></a>GameBoard::hit() { - hits-><a href="ntqlcdnumber.html#display">display</a>( hits-><a href="ntqlcdnumber.html#intValue">intValue</a>() + 1 ); - if ( shotsLeft-><a href="ntqlcdnumber.html#intValue">intValue</a>() == 0 ) + hits-><a href="tqlcdnumber.html#display">display</a>( hits-><a href="tqlcdnumber.html#intValue">intValue</a>() + 1 ); + if ( shotsLeft-><a href="tqlcdnumber.html#intValue">intValue</a>() == 0 ) cannonField->setGameOver(); else cannonField->newTarget(); @@ -163,15 +163,15 @@ void <a name="f141"></a>GameBoard::hit() void <a name="f142"></a>GameBoard::missed() { - if ( shotsLeft-><a href="ntqlcdnumber.html#intValue">intValue</a>() == 0 ) + if ( shotsLeft-><a href="tqlcdnumber.html#intValue">intValue</a>() == 0 ) cannonField->setGameOver(); } void <a name="f143"></a>GameBoard::newGame() { - shotsLeft-><a href="ntqlcdnumber.html#display">display</a>( 15 ); - hits-><a href="ntqlcdnumber.html#display">display</a>( 0 ); + shotsLeft-><a href="tqlcdnumber.html#display">display</a>( 15 ); + hits-><a href="tqlcdnumber.html#display">display</a>( 0 ); cannonField->restartGame(); cannonField->newTarget(); } |