Freeciv21
Develop your civilization from humble roots to a global empire
packhand.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void packhand_free ()
 Called below, and by client/client_main.c client_game_free() More...
 
void notify_about_incoming_packet (struct connection *pc, int packet_type, int size)
 Notify interested parties about incoming packet. More...
 
void notify_about_outgoing_packet (struct connection *pc, int packet_type, int size, int request_id)
 Notify interested parties about outgoing packet. More...
 
void set_reports_thaw_request (int request_id)
 
void play_sound_for_event (enum event_type type)
 Plays sound associated with event. More...
 
void target_government_init ()
 
void set_government_choice (struct government *government)
 Sets the target government. More...
 
void start_revolution ()
 Begin a revolution by telling the server to start it. More...
 

Function Documentation

◆ notify_about_incoming_packet()

void notify_about_incoming_packet ( struct connection pc,
int  packet_type,
int  size 
)

Notify interested parties about incoming packet.

Definition at line 5187 of file packhand.cpp.

Referenced by make_connection().

◆ notify_about_outgoing_packet()

void notify_about_outgoing_packet ( struct connection pc,
int  packet_type,
int  size,
int  request_id 
)

Notify interested parties about outgoing packet.

Definition at line 5197 of file packhand.cpp.

Referenced by make_connection().

◆ packhand_free()

void packhand_free ( )

Called below, and by client/client_main.c client_game_free()

Definition at line 142 of file packhand.cpp.

Referenced by client_game_free(), client_game_reset(), and packhand_init().

◆ play_sound_for_event()

void play_sound_for_event ( enum event_type  type)

Plays sound associated with event.

Definition at line 1486 of file packhand.cpp.

Referenced by handle_event(), and handle_page_msg_part().

◆ set_government_choice()

void set_government_choice ( struct government government)

Sets the target government.

This will automatically start a revolution if the target government differs from the current one.

Definition at line 2252 of file packhand.cpp.

Referenced by revolution_response().

◆ set_reports_thaw_request()

void set_reports_thaw_request ( int  request_id)

◆ start_revolution()

void start_revolution ( )

Begin a revolution by telling the server to start it.

This also clears the current government choice.

Definition at line 2265 of file packhand.cpp.

Referenced by revolution_response().

◆ target_government_init()

void target_government_init ( )