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

Menu Scene. More...

#include <MenuScene.h>

Inheritance diagram for bomberman::MenuScene:
[legend]

Public Member Functions

 MenuScene (Game *game)
 Construct a new Menu Scene.
 
virtual void onEnter () override
 Called when scene was activated.
 
virtual void onExit () override
 Called when scene was deactivated.
 
virtual void onEvent (const SDL_Event &event) override
 Trigger on SDL2 event 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 update (const unsigned int delta)
 Trigger on update 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

Menu Scene.

Constructor & Destructor Documentation

◆ MenuScene()

bomberman::MenuScene::MenuScene ( Game game)

Construct a new Menu Scene.

Parameters
game

Member Function Documentation

◆ onEnter()

void bomberman::MenuScene::onEnter ( )
overridevirtual

Called when scene was activated.

Reimplemented from bomberman::Scene.

◆ onEvent()

void bomberman::MenuScene::onEvent ( const SDL_Event &  event)
overridevirtual

Trigger on SDL2 event if scene is active.

Parameters
event- SDL2 event

Reimplemented from bomberman::Scene.

◆ onExit()

void bomberman::MenuScene::onExit ( )
overridevirtual

Called when scene was deactivated.

Reimplemented from bomberman::Scene.


The documentation for this class was generated from the following files: