Gem Illuminator
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
gamelostray.h
Go to the documentation of this file.
1 #ifndef GAMELOSTRAY_H
2 #define GAMELOSTRAY_H
3 
4 #include "lightray.h"
5 
9 class GameLostRay : public LightRay
10 {
11  Q_OBJECT
12 public:
13  explicit GameLostRay(QObject *parent = 0);
18  void update(int timeDifference) override;
19 
20 signals:
24  void gameLost();
25 
26 protected:
28 };
29 
30 #endif // GAMELOSTRAY_H
The LightRay class describes the lightrays sent into Scene. Because LightRays are sent into Scene ri...
Definition: lightray.h:24
bool m_alreadyLost
Definition: gamelostray.h:27
The GameLostRay class is a specialized LightRay, that is created if the player should lose as soon as...
Definition: gamelostray.h:9
void gameLost()
The gameLost() signal is emitted at that moment the ray detects the player leaving the scene...
GameLostRay(QObject *parent=0)
Definition: gamelostray.cpp:6
void update(int timeDifference) override
This method is like LightRay::update() with the addition, that the game end is detected a soon as the...
Definition: gamelostray.cpp:12