Crossfire Client, Trunk  R18666
Defines | Functions | Variables
/home/leaf/crossfire/client/trunk/common/init.c File Reference
#include <client.h>
#include "p_cmd.h"
Include dependency graph for init.c:

Go to the source code of this file.

Defines

#define FREE_AND_CLEAR(xyz)   { free(xyz); xyz=NULL; }

Functions

void VersionCmd (char *data, int len)
void SendVersion (ClientSocket csock)
void SendAddMe (ClientSocket csock)
void init_client_vars (void)
void reset_player_data (void)
void reset_client_vars (void)

Variables

const char *const rcsid_common_init_c = "$Id: init.c 14014 2010-10-21 06:18:46Z mwedel $"
const char *const config_names [CONFIG_NUMS]
sint16 want_config [CONFIG_NUMS]
sint16 use_config [CONFIG_NUMS]

Detailed Description

Handles the initialization of the client. This includes making the I_IMAGE and I_ARCH commands.

Definition in file init.c.


Define Documentation

#define FREE_AND_CLEAR (   xyz)    { free(xyz); xyz=NULL; }

Definition at line 54 of file init.c.


Function Documentation

void init_client_vars ( void  )

Definition at line 93 of file init.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void reset_client_vars ( void  )

This is used to clear values between connections to different servers. This needs to be called after init_client_vars has been called because it does not re-allocated some values.

Definition at line 246 of file init.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void reset_player_data ( void  )

Definition at line 230 of file init.c.

Here is the caller graph for this function:

void SendAddMe ( ClientSocket  csock)

Definition at line 87 of file init.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void SendVersion ( ClientSocket  csock)

Definition at line 80 of file init.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void VersionCmd ( char *  data,
int  len 
)

Definition at line 56 of file init.c.

Here is the call graph for this function:


Variable Documentation

const char* const config_names[CONFIG_NUMS]
Initial value:
 {
NULL, "download_all_images", "echo_bindings",
"fasttcpsend", "command_window", "cacheimages", "fog_of_war", "iconscale",
"mapscale", "popups", "displaymode", "showicon", "tooltips", "sound", "splitinfo",
"split", "show_grid", "lighting", "trim_info_window",
"map_width", "map_height", "foodbeep", "darkness", "port",
"grad_color_bars", "resistances", "smoothing", "nosplash",
"auto_apply_container", "mapscroll", "sign_popups", "message_timestamping"
}

See common/init.c - number mapping used when loading/saving the values.

Definition at line 42 of file init.c.

const char* const rcsid_common_init_c = "$Id: init.c 14014 2010-10-21 06:18:46Z mwedel $"

Definition at line 1 of file init.c.

Definition at line 52 of file init.c.

Definition at line 52 of file init.c.