33 const std::string&
user,
47 void add_message(
const std::time_t&
timestamp,
48 const std::string&
user,
51 void add_message(
const std::string& user,
const std::string& message);
53 const std::deque<chat_message>&
history()
const 72 const std::string&
name()
const 76 const std::set<std::string>&
members()
const 80 bool is_member(
const std::string&
user)
const;
81 void add_member(
const std::string& user);
82 void remove_member(
const std::string& user);
83 void process_room_members(
const config& data);
108 void update_state(
int selected_game_id,
109 const room_info* current_room =
nullptr);
110 void update_relation();
142 bool can_join()
const;
143 bool can_observe()
const;
156 std::vector<std::pair<std::string, bool>>
mod_info;
204 const char* display_status_string()
const;
206 bool match_string_filter(
const std::string& filter)
const;
std::string map_size_info
std::vector< std::pair< std::string, bool > > mod_info
List of modification names and whether they're installed or not.
unsigned int current_turn
std::deque< chat_message > history_
This class represents the info a client has about a game on the server.
std::set< std::string > members_
void clear(const std::string &key)
const std::deque< chat_message > & history() const
const chat_session & log() const
this class memorizes a chat session.
Pubic entry points for the MP workflow.
static const char * name(const std::vector< SDL_Joystick *> &joysticks, const std::size_t index)
chat_message(const std::time_t ×tamp, const std::string &user, const std::string &message)
Create a chat message.
std::vector< std::string > installed_addons()
Retrieves the names of all installed add-ons.
bool registered_users_only
static bool operator<(const placing_info &a, const placing_info &b)
This class represents the information a client has about a room.
This class represents the information a client has about another player.
game_display_status display_status
std::vector< required_addon > required_addons
A config object defines a single node in a WML file, with access to child nodes.
const std::set< std::string > & members() const
This class represents a single stored chat message.
const std::string & name() const