Bomberman Multiplayer
Authoritative multiplayer networking layer for Bomberman.
Loading...
Searching...
No Matches
bomberman::StageScene Class Reference

Stage Scene. More...

#include <StageScene.h>

Inheritance diagram for bomberman::StageScene:
[legend]

Public Member Functions

 StageScene (Game *game, const unsigned int level, const unsigned int score, LevelMode mode)
 Construct a new Stage Scene.
 
virtual void update (const unsigned int delta) override
 Trigger on update if scene is active.
 
- Public Member Functions inherited from bomberman::Scene
 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.
 

Additional Inherited Members

- Protected Attributes inherited from bomberman::Scene
Gamegame = nullptr
 

Detailed Description

Stage Scene.

Constructor & Destructor Documentation

◆ StageScene()

bomberman::StageScene::StageScene ( Game game,
const unsigned int  level,
const unsigned int  score,
LevelMode  mode 
)

Construct a new Stage Scene.

Parameters
game

Member Function Documentation

◆ update()

void bomberman::StageScene::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: