 |
Crossfire Client, Trunk
|
Go to the documentation of this file.
36 extern void SoundCmd(
unsigned char *data,
int len);
37 extern void Sound2Cmd(
unsigned char *data,
int len);
38 extern void MusicCmd(
const char *data,
int len);
49 extern void draw_ext_info(
int orig_color,
int type,
int subtype,
const char *message);
70 extern void addsmooth(guint16 face, guint16 smooth_face);
77 extern void bind_key(
const char *params);
99 const char *race,
const char *face,
100 const char *party,
const char *
map,
101 int level,
int faceno);
static gboolean redraw(gpointer data)
Redraw the map.
void client_tick(guint32 tick)
Called whenever the server sends a tick command.
void keybindings_init(const char *character_name)
Reads in the keybindings, and initializes special values.
Used mostly in the cache.c file, however, it can be returned to the graphic side of things so that th...
int display_willcache(void)
guint8 * png_to_data(guint8 *data, int len, guint32 *width, guint32 *height)
void draw_stats(int redraw)
Draws the stats window.
void starting_map_update_info()
We have gotten starting map information from the server - now update the combo boxes.
void hide_all_login_windows(void)
Hides all the login related windows.
void save_defaults(void)
This function saves user settings chosen using the configuration popup dialog.
void display_map_doneupdate(int redraw, int notice)
This is called after the map has been all digested.
void client_pickup(guint32 pickup)
We get pickup information from server, update our status.
void new_char_window_update_info()
We have gotten some new information from the server, so we need to update the information - race/clas...
void start_login(int method)
Starts the login process.
void menu_clear(void)
Clears all the message panels.
int associate_cache_entry(Cache_Entry *ce, int pixnum)
This functions associates image_data in the cache entry with the specific pixmap number.
int display_mapscroll(int dx, int dy)
void account_change_password_failure(char *message)
void open_container(item *op)
void draw_magic_map(void)
void close_container(item *op)
Open and close_container are now no-ops - since these are now drawn inline as treestores,...
void MusicCmd(const char *data, int len)
Parse the data contained by a music command coming from the server and pass the name along to cfsndse...
void image_update_download_status(int start, int end, int total)
Draws a status bar showing where we our in terms of downloading all the image data.
void account_login_failure(char *message)
Handles a failure from the server - pretty basic - just throw up the message and let the user try aga...
void bind_key(const char *params)
void create_new_character_failure(char *message)
Pop up a dialog window with the error from the server.
void addsmooth(guint16 face, guint16 smooth_face)
Referenced from common/commands.c.
void draw_ext_info(int orig_color, int type, int subtype, const char *message)
A message processor that accepts messages along with meta information color and type.
void update_character_choose(const char *name, const char *class, const char *race, const char *face, const char *party, const char *map, int level, int faceno)
This gets data and adds it to the list store.
void save_winpos(void)
Save client window positions to a file unique to each layout.
void account_add_character_failure(char *message)
Handles a failure from the server - pretty basic - just throw up the message and let the user try aga...
void draw_prompt(const char *str)
Draws a prompt.
void get_map_image_size(int face, guint8 *w, guint8 *h)
void choose_character_init(void)
Called when we get the accountplayers command from the server (indirectly via AccountPlayersCmd).
void SoundCmd(unsigned char *data, int len)
void resize_map_window(int x, int y)
Resize_map_window is a NOOP for the time being - not sure if it will in fact need to do something,...
void unbind_key(const char *params)
void account_creation_failure(char *message)
Handles a failure from the server - pretty basic - just throw up the message and let the user try aga...
void show_main_client(void)
Show main client window.
void display_map_addbelow(long x, long y, long face)
void draw_message_window(int redraw)
Updates the stats pane - hp, sp, etc labels.
void update_login_info(int type)
This is called from ReplyInfoCmd when it gets a response from news/motd/rules.
void Sound2Cmd(unsigned char *data, int len)
Parse the data contained by a sound2 command coming from the server and handle playing the specified ...
int create_and_rescale_image_from_data(Cache_Entry *ce, int pixmap_num, guint8 *rgba_data, int width, int height)
Takes the pixmap to put the data into, as well as the rgba data (ie, already loaded with png_to_data)...
void set_weight_limit(guint32 wlim)
No reason to divide by 1000 everytime we do the display, so do it once and store it here.
void command_show(const char *params)