diff options
Diffstat (limited to 'doc/html/t13-gamebrd-cpp.html')
-rw-r--r-- | doc/html/t13-gamebrd-cpp.html | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/html/t13-gamebrd-cpp.html b/doc/html/t13-gamebrd-cpp.html index d1140eb88..34186e59b 100644 --- a/doc/html/t13-gamebrd-cpp.html +++ b/doc/html/t13-gamebrd-cpp.html @@ -43,8 +43,8 @@ body { background: #ffffff; color: black; } #include <<a href="tqfont-h.html">tqfont.h</a>> #include <<a href="qapplication-h.html">ntqapplication.h</a>> #include <<a href="tqlabel-h.html">tqlabel.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 "lcdrange.h" @@ -53,7 +53,7 @@ body { background: #ffffff; color: black; } <a name="f109"></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>()) ); @@ -81,7 +81,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()) ); @@ -89,13 +89,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" ); @@ -132,15 +132,15 @@ void <a name="f110"></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="f111"></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(); @@ -149,15 +149,15 @@ void <a name="f111"></a>GameBoard::hit() void <a name="f112"></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="f113"></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(); } |