26 #define TIMER_INTERVAL (int) (real_timer_callback() * 1000)
82 struct global_worklist_list;
99 const struct player *pplayer,
100 enum vision_layer vlayer);
int get_seconds_to_new_turn()
Return the number of seconds until turn-done.
enum client_states client_state()
Return current client state.
void start_turn_change_wait()
Start waiting of the server turn change activities.
void client_remove_cli_conn(struct connection *pconn)
Remove pconn from all connection lists in client, then free it.
QUrl & client_url()
Returns the URL that this client connects to.
bool can_meet_with_player(const struct player *pplayer)
Returns TRUE iff the client can do diplomatic meetings with another given player.
void client_packet_input(void *packet, int type)
Handle packet received from server.
int client_player_number()
Returns number of player attached to client.
bool client_map_is_known_and_seen(const struct tile *ptile, const struct player *pplayer, enum vision_layer vlayer)
Return the vision of the player on a tile.
bool waiting_for_end_turn
bool is_server_busy()
Returns if server is considered busy at the moment.
int client_main(int argc, char *argv[])
Entry point for common client code.
QString sound_plugin_name
bool client_has_player()
Either controlling or observing.
void set_miliseconds_to_turndone(int miliseconds)
Reset the number of seconds to turndone from an "authentic" source.
void client_remove_all_cli_conn()
Remove (and free) all connections from all connection lists in client.
bool client_is_global_observer()
Returns whether client is global observer.
double real_timer_callback()
This function should be called at least once per second.
void start_quitting()
Mark client as one going to quit as soon as possible,.
void set_server_busy(bool busy)
Sets if server is considered busy.
struct player * client_player()
Either controlling or observing.
int get_seconds_to_turndone()
Return the number of seconds until turn-done.
bool can_client_issue_orders()
Returns TRUE iff the client can issue orders (such as giving unit commands).
void user_ended_turn()
Handle user ending his/her turn.
bool client_is_observer()
Returns whether client is observer.
void send_attribute_block_request()
Send attribute block.
void send_report_request(enum report_type type)
Send request for some report to server.
bool is_client_quitting()
Is the client marked as one going down?
const char *const gui_character_encoding
void send_turn_done()
Send information about player having finished his/her turn to server.
bool can_client_control()
Returns TRUE iff the client can control player.
bool is_waiting_turn_change()
Are we in turn-change wait state?
bool can_client_change_view()
Return TRUE if the client can change the view; i.e.
void stop_turn_change_wait()
Server is responsive again.
void client_exit()
Main client execution stop function.
const bool gui_use_transliteration
void set_client_state(enum client_states newstate)
Change client state.
struct global_worklist_list * worklists