group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
PostMatchScoreboard Class Reference

#include <PostMatchScoreboard.hpp>

Inheritance diagram for PostMatchScoreboard:
[legend]
Collaboration diagram for PostMatchScoreboard:
[legend]

Public Member Functions

bool init (AppContext &ctx, PostMatchResult result)
SDL_AppResult event (SDL_Event *event) override
 Handle an incoming SDL event.
SDL_AppResult iterate () override
 Update the screen state and render the next frame.
void quit () override
 Perform any necessary cleanup before the screen is destroyed.
bool consumeReturnToLobby ()
bool consumeReturnToMenu ()
bool consumeServerShutdownNotice ()
bool consumeExitRequest ()
Public Member Functions inherited from IScreen
virtual ~IScreen ()=default
virtual void shutdownAfterRenderer ()
 Perform cleanup that must happen after the App-owned renderer shuts down.

Private Attributes

NewRendererrenderer = nullptr
SDL_Window * window = nullptr
Clientclient = nullptr
UserSettingssettings = nullptr
std::string_view settingsPath
SystemMenuOverlay systemMenu_
PostMatchResult result_
bool returnToLobby_ = false
bool returnToMenu_ = false
bool serverShutdownNotice_ = false
bool exitRequested_ = false

Additional Inherited Members

Static Protected Member Functions inherited from IScreen
static SDL_AppResult processCommonImguiEvent (SDL_Event *event)
 Forward event to ImGui and detect SDL_EVENT_QUIT.
static bool handleSystemMenuEvent (SDL_Event *event, SystemMenuOverlay &menu, UserSettings *settings)
 Handle Escape-toggle of a SystemMenuOverlay and forward consumed events.
static void beginMenuFrame (NewRenderer *renderer)
 Start a new ImGui frame and paint the shared menu background.
static void presentMenuFrame (NewRenderer &renderer)
 Render the ImGui draw data and present a default-camera frame.

Member Function Documentation

◆ consumeExitRequest()

bool PostMatchScoreboard::consumeExitRequest ( )

◆ consumeReturnToLobby()

bool PostMatchScoreboard::consumeReturnToLobby ( )

◆ consumeReturnToMenu()

bool PostMatchScoreboard::consumeReturnToMenu ( )

◆ consumeServerShutdownNotice()

bool PostMatchScoreboard::consumeServerShutdownNotice ( )

◆ event()

SDL_AppResult PostMatchScoreboard::event ( SDL_Event * event)
overridevirtual

Handle an incoming SDL event.

Parameters
eventThe SDL event to process.
Returns
SDL_APP_CONTINUE to keep running, SDL_APP_FAILURE to exit.

Implements IScreen.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init()

bool PostMatchScoreboard::init ( AppContext & ctx,
PostMatchResult result )
Here is the call graph for this function:

◆ iterate()

SDL_AppResult PostMatchScoreboard::iterate ( )
overridevirtual

Update the screen state and render the next frame.

Returns
SDL_APP_CONTINUE to keep running, SDL_APP_FAILURE to exit.

Implements IScreen.

Here is the call graph for this function:

◆ quit()

void PostMatchScoreboard::quit ( )
overridevirtual

Perform any necessary cleanup before the screen is destroyed.

Implements IScreen.

Member Data Documentation

◆ client

Client* PostMatchScoreboard::client = nullptr
private

◆ exitRequested_

bool PostMatchScoreboard::exitRequested_ = false
private

◆ renderer

NewRenderer* PostMatchScoreboard::renderer = nullptr
private

◆ result_

PostMatchResult PostMatchScoreboard::result_
private

◆ returnToLobby_

bool PostMatchScoreboard::returnToLobby_ = false
private

◆ returnToMenu_

bool PostMatchScoreboard::returnToMenu_ = false
private

◆ serverShutdownNotice_

bool PostMatchScoreboard::serverShutdownNotice_ = false
private

◆ settings

UserSettings* PostMatchScoreboard::settings = nullptr
private

◆ settingsPath

std::string_view PostMatchScoreboard::settingsPath
private

◆ systemMenu_

SystemMenuOverlay PostMatchScoreboard::systemMenu_
private

◆ window

SDL_Window* PostMatchScoreboard::window = nullptr
private

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