Game Over Scene.
More...
#include <GameOverScene.h>
|
| | GameOverScene (Game *game) |
| | Construct a new Game Over Scene.
|
| |
| virtual void | update (const unsigned int delta) override |
| | Trigger on update if scene is active.
|
| |
| | Scene (Game *game) |
| | Construct a new Scene object.
|
| |
|
virtual | ~Scene () |
| | Destroy the Scene object.
|
| |
| void | addObject (std::shared_ptr< Object > object) |
| | Add object to scene for drawing.
|
| |
| void | insertObject (std::shared_ptr< Object > object, int position) |
| | Add object to scene for drawing to specific position.
|
| |
| void | removeObject (std::shared_ptr< Object > object) |
| | Remove object from scene.
|
| |
| void | setCamera (const int x, const int y) |
| | Set the Camera object to specific position.
|
| |
| virtual void | onEnter () |
| | Called when scene become activated.
|
| |
| virtual void | onExit () |
| | CAlled when scene become deactivated.
|
| |
| virtual void | onEvent (const SDL_Event &event) |
| | Trigger on SDL2 event if scene is active.
|
| |
|
void | draw () const |
| | Draw objects on the screen.
|
| |
|
SDL_Rect | getCamera () const |
| | Returns the current camera position.
|
| |
| virtual bool | wantsNetworkInputPolling () const |
| | Returns true when this scene wants Game to poll and send multiplayer input every sim tick.
|
| |
| virtual void | onNetInputQueued (uint32_t inputSeq, uint8_t buttons) |
| | Called after Game samples and queues a local input for multiplayer scenes.
|
| |
◆ GameOverScene()
| bomberman::GameOverScene::GameOverScene |
( |
Game * |
game | ) |
|
◆ update()
| void bomberman::GameOverScene::update |
( |
const unsigned int |
delta | ) |
|
|
overridevirtual |
Trigger on update if scene is active.
- Parameters
-
| delta | - time in milliseconds |
Reimplemented from bomberman::Scene.
The documentation for this class was generated from the following files: