18#ifndef NETWORK_KART_SELECTION_HPP
19#define NETWORK_KART_SELECTION_HPP
21#include "states_screens/kart_selection.hpp"
22#include "guiengine/screen.hpp"
26 class ProgressBarWidget;
43 bool m_all_players_done;
45 uint64_t m_exit_timeout;
52 m_all_players_done =
false;
60 std::set<std::
string> m_available_karts;
63 virtual
bool isIgnored(const std::
string& ident) const OVERRIDE;
65 void updateProgressBarText();
71 virtual
void onUpdate(
float dt) OVERRIDE;
74 void setAvailableKartsFromServer(const std::set<std::
string>& k)
75 { m_available_karts = k; }
77 virtual void init() OVERRIDE;
84 void setLiveJoin(
bool val) { m_live_join = val; }
Declares a class to be a singleton.
Definition: screen.hpp:59
screen where players can choose their kart
Definition: kart_selection.hpp:51
Definition: network_kart_selection.hpp:33
virtual void init() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: network_kart_selection.cpp:46
virtual bool onEscapePressed() OVERRIDE
implement optional callback from parent class GUIEngine::Screen
Definition: network_kart_selection.cpp:173
GUIEngine::ProgressBarWidget * m_timer
Pointer to progress bar widget which is used as a timer (going backwards).
Definition: network_kart_selection.hpp:37
virtual void beforeAddingWidget() OVERRIDE
Optional callback invoked very early, before widgets have been added (contrast with init(),...
Definition: network_kart_selection.cpp:39
virtual void allPlayersDone() OVERRIDE
Called when all players selected their kart.
Definition: network_kart_selection.cpp:103
virtual void onUpdate(float dt) OVERRIDE
Implement per-frame callback.
Definition: network_kart_selection.cpp:86
virtual bool playerQuit(StateManager::ActivePlayer *player) OVERRIDE
Called when a player hits 'rescue'/'cancel' on his device to leave the game.
Definition: network_kart_selection.hpp:81
A concrete scene manager, derived from GUIEngine's AbastractSceneManager.
Definition: state_manager.hpp:60
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:33