15 #ifndef INC_LOBBY_DATA
16 #define INC_LOBBY_DATA
51 const std::deque<chat_message>&
history()
const
74 const std::set<std::string>&
members()
const
107 const room_info* current_room =
nullptr);
211 return !
t.match(game);
244 template <
class T, T game_info::*member,
class OP = std::equal_to<T> >
game_filter_general_string_part(const std::string &value)
const char * display_status_string() const
std::vector< game_filter_base * > filters_
This class represents the information a client has about a room.
This class represents a single stored chat message.
this class memorizes a chat session.
const chat_log & log() const
std::deque< chat_message > history_
const std::string & name() const
game_filter_value(const T &value)
game_display_status display_status
GLint GLenum GLsizei GLint GLsizei const GLvoid * data
This class represents the information a client has about another player.
GLdouble GLdouble GLdouble b
game_info(const config &c, const config &game_config)
bool match(const game_info &game) const
std::string map_size_info
room_info(const std::string &name)
const std::deque< chat_message > & history() const
GLsizei const GLfloat * value
chat_message(const time_t ×tamp, const std::string &user, const std::string &message)
Create a chat message.
bool match(const game_info &game) const
const std::set< std::string > & members() const
bool is_member(const std::string &user) const
virtual ~game_filter_base()
void add_member(const std::string &user)
void add_message(const time_t ×tamp, const std::string &user, const std::string &message)
Game configuration data as global variables.
void append(game_filter_base *f)
Takes ownership.
bool match(const game_info &game) const
virtual bool match(const game_info &game) const =0
void process_room_members(const config &data)
GLuint const GLchar * name
bool operator>(const user_info &b) const
void remove_member(const std::string &user)
std::set< std::string > members_
This class represents the info a client has about a game on the server.
void update_state(int selected_game_id, const room_info *current_room=nullptr)
virtual ~game_filter_stack()
game_filter_not(const T &t)
GLsizei GLenum GLuint GLuint GLsizei char * message
unsigned int current_turn
bool operator()(const game_info &game) const
user_info(const config &c)
A config object defines a single node in a WML file, with access to child nodes.
bool match(const game_info &game) const
GLsizei const GLcharARB ** string