Server room list.
More...
#include <RoomList.h>
Server room list.
- Author
- Michael Imamura
const banners_t& HoverRace::Client::RoomList::GetBanners |
( |
| ) |
const |
|
inline |
Banner* HoverRace::Client::RoomList::GetCurrentBanner |
( |
| ) |
const |
|
inline |
const rooms_t& HoverRace::Client::RoomList::GetRooms |
( |
| ) |
const |
|
inline |
const Server& HoverRace::Client::RoomList::GetScoreServer |
( |
| ) |
const |
|
inline |
const Server* HoverRace::Client::RoomList::GetSelectedRoom |
( |
| ) |
const |
|
inline |
bool HoverRace::Client::RoomList::HasBanners |
( |
| ) |
const |
|
inline |
void RoomList::LoadFromStream |
( |
std::istream & |
in | ) |
|
void RoomList::LoadFromUrl |
( |
const std::string & |
url, |
|
|
std::shared_ptr< Net::CancelFlag > |
cancelFlag = {} |
|
) |
| |
Load the roomlist from a URL.
- Parameters
-
url | The URL. |
cancelFlag | Optional callback to cancel the transfer. |
- Exceptions
-
NetExn | An error occurred during the transfer. |
CanceledExn | The transfer was canceled. |
Rotate to the next banner in the banner list.
Will have no effect if there are no banners.
- Returns
- The next banner in the list (
NULL
if banner list is empty).
void RoomList::SetSelectedRoom |
( |
size_t |
index | ) |
|
Set the currently-selected room index.
If an invalid index
is provided, then the currently-selected room is set to NULL
.
- Parameters
-
banners_t HoverRace::Client::RoomList::banners |
|
private |
Banner* HoverRace::Client::RoomList::curBanner |
|
private |
size_t HoverRace::Client::RoomList::curBannerIdx |
|
private |
rooms_t HoverRace::Client::RoomList::rooms |
|
private |
Server HoverRace::Client::RoomList::scoreServer |
|
private |
Server* HoverRace::Client::RoomList::selectedRoom |
|
private |
The documentation for this class was generated from the following files: