44 lines
1.0 KiB
C++
44 lines
1.0 KiB
C++
#ifndef LOBBY_HPP_
|
|
#define LOBBY_HPP_
|
|
|
|
#include "base_scene.hpp"
|
|
#include "service_locator.hpp"
|
|
|
|
#include "config_utility.hpp"
|
|
#include "surface_manager.hpp"
|
|
#include "udp_network_utility.hpp"
|
|
#include "button.hpp"
|
|
|
|
class Lobby : public BaseScene {
|
|
public:
|
|
/* Public access members */
|
|
Lobby();
|
|
~Lobby();
|
|
|
|
protected:
|
|
/* Frame loop */
|
|
void FrameStart();
|
|
void Update(double delta);
|
|
void FrameEnd();
|
|
void Render(SDL_Surface* const);
|
|
|
|
/* Event handlers */
|
|
void QuitEvent() { SetNextScene(SceneList::MAINMENU); }
|
|
void MouseMotion(SDL_MouseMotionEvent const&);
|
|
void MouseButtonDown(SDL_MouseButtonEvent const&);
|
|
void MouseButtonUp(SDL_MouseButtonEvent const&);
|
|
void KeyDown(SDL_KeyboardEvent const&);
|
|
void KeyUp(SDL_KeyboardEvent const&);
|
|
|
|
//services
|
|
ConfigUtility* configUtil = ServiceLocator<ConfigUtility>::Get();
|
|
SurfaceManager* surfaceMgr = ServiceLocator<SurfaceManager>::Get();
|
|
UDPNetworkUtility* netUtil = ServiceLocator<UDPNetworkUtility>::Get();
|
|
|
|
Button refreshButton;
|
|
Button joinButton;
|
|
Button backButton;
|
|
};
|
|
|
|
#endif
|