diff options
author | Eskil Abrahamsen Blomfeldt <eblomfel@trolltech.com> | 2009-05-14 11:12:12 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eblomfel@trolltech.com> | 2009-05-14 11:12:12 (GMT) |
commit | ededfad305258f9f450b314d9e2d53a6905bc6d0 (patch) | |
tree | 6a3b6e4d7ec09e596c0ba2b9f81b816614089962 /examples/statemachine/tankgame/tankitem.cpp | |
parent | fa99a2ab12f646d73498b69fae0020da1abf9685 (diff) | |
download | Qt-ededfad305258f9f450b314d9e2d53a6905bc6d0.zip Qt-ededfad305258f9f450b314d9e2d53a6905bc6d0.tar.gz Qt-ededfad305258f9f450b314d9e2d53a6905bc6d0.tar.bz2 |
Pop up message when a tank wins the game
Also fixed: Added some docs and moved the tanks a little so they don't start
partly outside the scene rect.
Diffstat (limited to 'examples/statemachine/tankgame/tankitem.cpp')
-rw-r--r-- | examples/statemachine/tankgame/tankitem.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/statemachine/tankgame/tankitem.cpp b/examples/statemachine/tankgame/tankitem.cpp index 5506a7e..c322d21 100644 --- a/examples/statemachine/tankgame/tankitem.cpp +++ b/examples/statemachine/tankgame/tankitem.cpp @@ -113,6 +113,7 @@ void TankItem::idle(qreal elapsed) void TankItem::hitByRocket() { + emit aboutToBeDestroyed(); deleteLater(); } |