summaryrefslogtreecommitdiffstats
path: root/examples/demo/qasteroids/toplevel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/demo/qasteroids/toplevel.cpp')
-rw-r--r--examples/demo/qasteroids/toplevel.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/examples/demo/qasteroids/toplevel.cpp b/examples/demo/qasteroids/toplevel.cpp
index ca6db89ef..0822191f5 100644
--- a/examples/demo/qasteroids/toplevel.cpp
+++ b/examples/demo/qasteroids/toplevel.cpp
@@ -234,7 +234,7 @@ KAstTopLevel::KAstTopLevel( TQWidget *parent, const char *name )
hbd->addWidget( powerMeter );
shipsRemain = 3;
- showHiscores = FALSE;
+ showHiscores = false;
actions.insert( TQt::Key_Up, Thrust );
actions.insert( TQt::Key_Left, RotateLeft );
@@ -271,31 +271,31 @@ void KAstTopLevel::keyPressEvent( TQKeyEvent *event )
switch ( a )
{
case RotateLeft:
- view->rotateLeft( TRUE );
+ view->rotateLeft( true );
break;
case RotateRight:
- view->rotateRight( TRUE );
+ view->rotateRight( true );
break;
case Thrust:
- view->thrust( TRUE );
+ view->thrust( true );
break;
case Shoot:
- view->shoot( TRUE );
+ view->shoot( true );
break;
case Shield:
- view->setShield( TRUE );
+ view->setShield( true );
break;
case Teleport:
- view->teleport( TRUE );
+ view->teleport( true );
break;
case Brake:
- view->brake( TRUE );
+ view->brake( true );
break;
default:
@@ -318,38 +318,38 @@ void KAstTopLevel::keyReleaseEvent( TQKeyEvent *event )
switch ( a )
{
case RotateLeft:
- view->rotateLeft( FALSE );
+ view->rotateLeft( false );
break;
case RotateRight:
- view->rotateRight( FALSE );
+ view->rotateRight( false );
break;
case Thrust:
- view->thrust( FALSE );
+ view->thrust( false );
break;
case Shoot:
- view->shoot( FALSE );
+ view->shoot( false );
break;
case Brake:
- view->brake( FALSE );
+ view->brake( false );
break;
case Shield:
- view->setShield( FALSE );
+ view->setShield( false );
break;
case Teleport:
- view->teleport( FALSE );
+ view->teleport( false );
break;
case Launch:
if ( waitShip )
{
view->newShip();
- waitShip = FALSE;
+ waitShip = false;
view->hideText();
}
else
@@ -365,11 +365,11 @@ void KAstTopLevel::keyReleaseEvent( TQKeyEvent *event )
/*
case Pause:
{
- view->pause( TRUE );
+ view->pause( true );
TQMessageBox::information( this,
tr("KAsteroids is paused"),
tr("Paused") );
- view->pause( FALSE );
+ view->pause( false );
}
break;
*/
@@ -384,14 +384,14 @@ void KAstTopLevel::keyReleaseEvent( TQKeyEvent *event )
void KAstTopLevel::showEvent( TQShowEvent *e )
{
TQMainWindow::showEvent( e );
- view->pause( FALSE );
+ view->pause( false );
view->setFocus();
}
void KAstTopLevel::hideEvent( TQHideEvent *e )
{
TQMainWindow::hideEvent( e );
- view->pause( TRUE );
+ view->pause( true );
}
void KAstTopLevel::slotNewGame()
@@ -407,9 +407,9 @@ void KAstTopLevel::slotNewGame()
view->addRocks( levels[0].nrocks );
// view->showText( tr( "Press L to launch." ), yellow );
view->newShip();
- waitShip = FALSE;
+ waitShip = false;
view->hideText();
- isPaused = FALSE;
+ isPaused = false;
}
void KAstTopLevel::slotShipKilled()
@@ -421,7 +421,7 @@ void KAstTopLevel::slotShipKilled()
if ( shipsRemain )
{
- waitShip = TRUE;
+ waitShip = true;
view->showText( tr( "Ship Destroyed. Press L to launch."), yellow );
}
else
@@ -481,7 +481,7 @@ void KAstTopLevel::doStats()
.arg(r);
*/
- view->showText( "Game Over. Press N for a new game.", yellow, FALSE );
+ view->showText( "Game Over. Press N for a new game.", yellow, false );
}
void KAstTopLevel::slotUpdateVitals()