Bomberman
Static Public Member Functions | Static Public Attributes | List of all members
BBM::Runner Class Reference

#include <Runner.hpp>

Collaboration diagram for BBM::Runner:

Static Public Member Functions

static int run ()
 Start the game and run a Bomberman. More...
 
static void updateState (WAL::Wal &engine, GameState &state)
 Update current scene (loading related data) according to state. More...
 
static void addSystems (WAL::Wal &wal)
 Add required systems to wal. More...
 
static void enableRaylib (WAL::Wal &wal)
 init all raylib-related data & context More...
 
static void addMenuControl (WAL::Scene &scene, const std::map< SoundComponent::SoundIndex, std::string > &sounds={})
 
static std::shared_ptr< WAL::SceneloadTitleScreenScene ()
 load all data related to title screen More...
 
static std::shared_ptr< WAL::SceneloadMainMenuScene ()
 load all data related to main menu screen More...
 
static std::shared_ptr< WAL::SceneloadPauseMenuScene ()
 load all data related to pause menu screen More...
 
static std::shared_ptr< WAL::SceneloadSettingsMenuScene ()
 load all data related to settings screen More...
 
static std::shared_ptr< WAL::SceneloadGameScene ()
 load all data related to game screen More...
 
static std::shared_ptr< WAL::SceneloadCreditScene ()
 load all data related to credit screen More...
 
static std::shared_ptr< WAL::SceneloadLobbyScene ()
 load all data related to lobby screen More...
 
static std::shared_ptr< WAL::SceneloadResumeLobbyScene ()
 load all data related to resume lobby screen More...
 
static WAL::EntitycreatePlayer (WAL::Scene &scene)
 Create a player (without any controllable) and add it to the scene. More...
 
static std::shared_ptr< WAL::SceneloadSplashScreenScene ()
 load all data related to splash screen More...
 
static std::shared_ptr< WAL::SceneloadHowToPlayScene ()
 load how to play screen More...
 
static std::shared_ptr< WAL::SceneloadScoreScene (WAL::Scene &gameScene)
 load all data related to score scene screen More...
 
static void loadScenes ()
 loads all scenes in the game state More...
 

Static Public Attributes

static bool hasHeights = false
 Has the map heights or is it disabled? More...
 
static int mapWidth = 16
 the width of the map More...
 
static int mapHeight = 16
 the height of the map More...
 
static std::chrono::nanoseconds timerDelay = std::chrono::minutes(3)
 timer duration More...
 
static GameState gameState
 store current scenes informations More...
 

Member Function Documentation

◆ addMenuControl()

void BBM::Runner::addMenuControl ( WAL::Scene scene,
const std::map< SoundComponent::SoundIndex, std::string > &  sounds = {} 
)
static

◆ addSystems()

void BBM::Runner::addSystems ( WAL::Wal wal)
static

Add required systems to wal.

◆ createPlayer()

WAL::Entity & BBM::Runner::createPlayer ( WAL::Scene scene)
static

Create a player (without any controllable) and add it to the scene.

Parameters
sceneThe scene where to player should reside.
Returns
A reference to the created player.

◆ enableRaylib()

void BBM::Runner::enableRaylib ( WAL::Wal wal)
static

init all raylib-related data & context

◆ loadCreditScene()

std::shared_ptr< WAL::Scene > BBM::Runner::loadCreditScene ( )
static

load all data related to credit screen

◆ loadGameScene()

std::shared_ptr< WAL::Scene > BBM::Runner::loadGameScene ( )
static

load all data related to game screen

◆ loadHowToPlayScene()

std::shared_ptr< WAL::Scene > BBM::Runner::loadHowToPlayScene ( )
static

load how to play screen

◆ loadLobbyScene()

std::shared_ptr< WAL::Scene > BBM::Runner::loadLobbyScene ( )
static

load all data related to lobby screen

◆ loadMainMenuScene()

std::shared_ptr< WAL::Scene > BBM::Runner::loadMainMenuScene ( )
static

load all data related to main menu screen

◆ loadPauseMenuScene()

std::shared_ptr< WAL::Scene > BBM::Runner::loadPauseMenuScene ( )
static

load all data related to pause menu screen

◆ loadResumeLobbyScene()

std::shared_ptr< WAL::Scene > BBM::Runner::loadResumeLobbyScene ( )
static

load all data related to resume lobby screen

◆ loadScenes()

void BBM::Runner::loadScenes ( )
static

loads all scenes in the game state

◆ loadScoreScene()

std::shared_ptr< WAL::Scene > BBM::Runner::loadScoreScene ( WAL::Scene gameScene)
static

load all data related to score scene screen

Parameters
gameScenescene containing players (to know the scores)

◆ loadSettingsMenuScene()

std::shared_ptr< WAL::Scene > BBM::Runner::loadSettingsMenuScene ( )
static

load all data related to settings screen

◆ loadSplashScreenScene()

std::shared_ptr< WAL::Scene > BBM::Runner::loadSplashScreenScene ( )
static

load all data related to splash screen

◆ loadTitleScreenScene()

std::shared_ptr< WAL::Scene > BBM::Runner::loadTitleScreenScene ( )
static

load all data related to title screen

◆ run()

int BBM::Runner::run ( )
static

Start the game and run a Bomberman.

Returns
0 on success, another value on error.

◆ updateState()

void BBM::Runner::updateState ( WAL::Wal engine,
GameState state 
)
static

Update current scene (loading related data) according to state.

Parameters
engineWal ECS
statecurrent game state

Member Data Documentation

◆ gameState

GameState BBM::Runner::gameState
static

store current scenes informations

◆ hasHeights

bool BBM::Runner::hasHeights = false
static

Has the map heights or is it disabled?

◆ mapHeight

int BBM::Runner::mapHeight = 16
static

the height of the map

◆ mapWidth

int BBM::Runner::mapWidth = 16
static

the width of the map

◆ timerDelay

std::chrono::nanoseconds BBM::Runner::timerDelay = std::chrono::minutes(3)
static

timer duration


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