Crossfire Client, Trunk
client.h File Reference
#include "config.h"
#include <fcntl.h>
#include <glib.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
#include <gio/gio.h>
#include "item.h"
#include "shared/newclient.h"
#include "version.h"
#include "proto.h"
+ Include dependency graph for client.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Animations
 
struct  Cache_Entry
 
struct  ClientSocket
 
struct  Face_Information_struct
 
struct  FaceSets_struct
 
struct  Msg_Type_Names
 
struct  NameMapping
 
struct  Player_Struct
 
struct  PlayerPosition
 
struct  Race_Class_Info
 
struct  RC_Choice
 
struct  Spell_struct
 
struct  Starting_Map_Info
 
struct  Stat_Mapping
 
struct  Stat_struct
 
struct  TextManager
 

Macros

#define BIG_BUF   1024
 
#define CFG_DM_OPENGL   2
 
#define CFG_DM_PIXMAP   0
 
#define CFG_DM_SDL   1
 
#define CFG_LT_NONE   0
 
#define CFG_LT_PIXEL   2
 
#define CFG_LT_PIXEL_BEST   3
 
#define CFG_LT_TILE   1
 
#define CLIENT_ERROR   client_error_quark()
 
#define CLIENT_TYPES_H
 
#define COMMAND_MAX   255
 
#define COMMAND_WINDOW   10
 
#define CONFIG_APPLY_CONTAINER   28
 
#define CONFIG_AUTO_AFK   32
 
#define CONFIG_CACHE   5
 
#define CONFIG_CWINDOW   4
 
#define CONFIG_DARKNESS   22
 
#define CONFIG_DISPLAYMODE   10
 
#define CONFIG_DOWNLOAD   1
 
#define CONFIG_ECHO   2
 
#define CONFIG_FASTTCP   3
 
#define CONFIG_FOGWAR   6
 
#define CONFIG_FOODBEEP   21
 
#define CONFIG_GRAD_COLOR   24
 
#define CONFIG_ICONSCALE   7
 
#define CONFIG_INV_MENU   33
 
#define CONFIG_LIGHTING   17
 
#define CONFIG_MAPHEIGHT   20
 
#define CONFIG_MAPSCALE   8
 
#define CONFIG_MAPSCROLL   29
 
#define CONFIG_MAPWIDTH   19
 
#define CONFIG_NUMS   34
 
#define CONFIG_POPUPS   9
 
#define CONFIG_PORT   23
 
#define CONFIG_RESISTS   25
 
#define CONFIG_SHOWGRID   16
 
#define CONFIG_SHOWICON   11
 
#define CONFIG_SIGNPOPUP   30
 
#define CONFIG_SMOOTH   26
 
#define CONFIG_SOUND   13
 
#define CONFIG_SPLASH   27
 
#define CONFIG_SPLITINFO   14
 
#define CONFIG_SPLITWIN   15
 
#define CONFIG_TIMESTAMP   31
 
#define CONFIG_TOOLTIPS   12
 
#define CONFIG_TRIMINFO   18
 
#define DEFPORT   "13327"
 
#define EPORT   13327
 
#define INFO_MOTD   2
 
#define INFO_NEWS   1
 
#define INFO_RULES   3
 
#define MAP_MAX_SIZE   25
 
#define MAX_BUF   256
 
#define MAX_FACE_SETS   20
 
#define MAX_IMAGE_SIZE   320
 
#define MAX_MAP_OFFSET   8
 
#define MAX_SKILL   CS_NUM_SKILLS
 
#define MAX_TIME   100000
 
#define MAXANIM   2000
 
#define MAXPIXMAPNUM   10000
 
#define MIN(X__, Y__)   ( (X__)<(Y__)?(X__):(Y__) )
 
#define MIN_ALLOCATED_MAP_SIZE   MAP_MAX_SIZE * 2
 
#define NUM_NEW_CHAR_STATS   7
 
#define NUM_RESISTS   18
 
#define RI_IMAGE_INFO   0x1
 
#define RI_IMAGE_SUMS   0x2
 
#define SC_ALWAYS   2
 
#define SC_FIRERUN   1
 
#define SC_MOVETO   3
 
#define SC_NORMAL   0
 
#define SOL_TCP   IPPROTO_TCP
 
#define STRINGCOMMAND   0
 
#define VERSION_CS   1023
 
#define VERSION_SC   1029
 

Typedefs

typedef struct Animations Animations
 
typedef struct Cache_Entry Cache_Entry
 
typedef struct Player_Struct Client_Player
 
typedef void(* ExtTextManager) (int flag, int type, int subtype, char *message)
 
typedef struct Face_Information_struct Face_Information
 
typedef struct FaceSets_struct FaceSets
 
typedef struct Msg_Type_Names Msg_Type_Names
 
typedef struct PlayerPosition PlayerPosition
 
typedef struct Race_Class_Info Race_Class_Info
 
typedef struct Spell_struct Spell
 
typedef struct Starting_Map_Info Starting_Map_Info
 
typedef struct Stat_struct Stats
 
typedef struct TextManager TextManager
 

Enumerations

enum  ClientError { CLIENT_ERROR_TOOBIG }
 
enum  Input_State {
  Playing, Reply_One, Reply_Many, Configure_Keys,
  Command_Mode, Metaserver_Select
}
 
enum  LogLevel {
  LOG_DEBUG = 0, LOG_INFO = 1, LOG_WARNING = 2, LOG_ERROR = 3,
  LOG_CRITICAL = 4
}
 
enum  rangetype {
  range_bottom = -1, range_none = 0, range_bow = 1, range_magic = 2,
  range_wand = 3, range_rod = 4, range_scroll = 5, range_horn = 6,
  range_steal = 7, range_size = 8
}
 

Functions

void client_connect (const char *hostname)
 
void client_disconnect (void)
 
GQuark client_error_quark ()
 
GSource * client_get_source (void)
 
bool client_is_connected (void)
 
void client_mapsize (int width, int height)
 
void client_negotiate (int sound)
 
void client_run (void)
 
bool client_write (const void *buf, int len)
 
char * printable (void *data, int len)
 

Variables

Animations animations [MAXANIM]
 
const char * cache_dir
 
Race_Class_Infoclasses
 
const char * config_dir
 
const char *const config_names [CONFIG_NUMS]
 
Client_Player cpl
 
ClientSocket csocket
 
bool debug_protocol
 
guint64 * exp_table
 
guint16 exp_table_max
 
Face_Information face_info
 
TextManagerfirstTextManager
 
GTimer * global_time
 
int last_used_skills [MAX_SKILL+1]
 
int maxfd
 
char * meta_server
 
char * motd
 
char * news
 
int num_classes
 
int num_races
 
PlayerPosition pl_pos
 
Race_Class_Inforaces
 
int replyinfo_last_face
 
int replyinfo_status
 
int requestinfo_sent
 
NameMapping resist_mapping [NUM_RESISTS]
 
const char *const resists_name [NUM_RESISTS]
 
char * rules
 
int serverloginmethod
 
NameMapping skill_mapping [MAX_SKILL]
 
char * skill_names [MAX_SKILL]
 
char * sound_server
 
Starting_Map_Infostarting_map_info
 
int starting_map_number
 
struct Stat_Mapping stat_mapping [NUM_NEW_CHAR_STATS]
 
int stat_maximum
 
int stat_min
 
int stat_points
 
gint16 use_config [CONFIG_NUMS]
 
int used_classes
 
int used_races
 
char VERSION_INFO [256]
 
gint16 want_config [CONFIG_NUMS]
 
int wantloginmethod
 

Detailed Description

Includes various dependencies header files needed by most everything. It also declares structures and other variables that the GUI portion needs.

Definition in file client.h.

Macro Definition Documentation

◆ BIG_BUF

#define BIG_BUF   1024

Definition at line 41 of file client.h.

◆ CFG_DM_OPENGL

#define CFG_DM_OPENGL   2

Definition at line 239 of file client.h.

◆ CFG_DM_PIXMAP

#define CFG_DM_PIXMAP   0

Definition at line 237 of file client.h.

◆ CFG_DM_SDL

#define CFG_DM_SDL   1

Definition at line 238 of file client.h.

◆ CFG_LT_NONE

#define CFG_LT_NONE   0

Definition at line 226 of file client.h.

◆ CFG_LT_PIXEL

#define CFG_LT_PIXEL   2

Definition at line 228 of file client.h.

◆ CFG_LT_PIXEL_BEST

#define CFG_LT_PIXEL_BEST   3

Definition at line 229 of file client.h.

◆ CFG_LT_TILE

#define CFG_LT_TILE   1

Definition at line 227 of file client.h.

◆ CLIENT_ERROR

#define CLIENT_ERROR   client_error_quark()

Definition at line 629 of file client.h.

◆ CLIENT_TYPES_H

#define CLIENT_TYPES_H

Definition at line 13 of file client.h.

◆ COMMAND_MAX

#define COMMAND_MAX   255

Largest ncom command number to send before wrapping.

Definition at line 115 of file client.h.

◆ COMMAND_WINDOW

#define COMMAND_WINDOW   10

Do not send more than this many outstanding commands to the server this is only a default value.

Definition at line 76 of file client.h.

◆ CONFIG_APPLY_CONTAINER

#define CONFIG_APPLY_CONTAINER   28

Reapply container

Definition at line 210 of file client.h.

◆ CONFIG_AUTO_AFK

#define CONFIG_AUTO_AFK   32

Definition at line 215 of file client.h.

◆ CONFIG_CACHE

#define CONFIG_CACHE   5

Definition at line 187 of file client.h.

◆ CONFIG_CWINDOW

#define CONFIG_CWINDOW   4

Definition at line 186 of file client.h.

◆ CONFIG_DARKNESS

#define CONFIG_DARKNESS   22

Definition at line 204 of file client.h.

◆ CONFIG_DISPLAYMODE

#define CONFIG_DISPLAYMODE   10
See also
CONFIG_DISPLAYMODE values.

Definition at line 192 of file client.h.

◆ CONFIG_DOWNLOAD

#define CONFIG_DOWNLOAD   1

Definition at line 183 of file client.h.

◆ CONFIG_ECHO

#define CONFIG_ECHO   2

Definition at line 184 of file client.h.

◆ CONFIG_FASTTCP

#define CONFIG_FASTTCP   3

Definition at line 185 of file client.h.

◆ CONFIG_FOGWAR

#define CONFIG_FOGWAR   6

Definition at line 188 of file client.h.

◆ CONFIG_FOODBEEP

#define CONFIG_FOODBEEP   21

Definition at line 203 of file client.h.

◆ CONFIG_GRAD_COLOR

#define CONFIG_GRAD_COLOR   24

Definition at line 206 of file client.h.

◆ CONFIG_ICONSCALE

#define CONFIG_ICONSCALE   7

Definition at line 189 of file client.h.

◆ CONFIG_INV_MENU

#define CONFIG_INV_MENU   33

Definition at line 216 of file client.h.

◆ CONFIG_LIGHTING

#define CONFIG_LIGHTING   17
See also
CONFIG_LIGHTING values.

Definition at line 199 of file client.h.

◆ CONFIG_MAPHEIGHT

#define CONFIG_MAPHEIGHT   20

Definition at line 202 of file client.h.

◆ CONFIG_MAPSCALE

#define CONFIG_MAPSCALE   8

Definition at line 190 of file client.h.

◆ CONFIG_MAPSCROLL

#define CONFIG_MAPSCROLL   29

Use bitmap operations for map scrolling

Definition at line 211 of file client.h.

◆ CONFIG_MAPWIDTH

#define CONFIG_MAPWIDTH   19

Definition at line 201 of file client.h.

◆ CONFIG_NUMS

#define CONFIG_NUMS   34

This should always be the last value in the CONFIG_xxx list.

Definition at line 217 of file client.h.

◆ CONFIG_POPUPS

#define CONFIG_POPUPS   9

Definition at line 191 of file client.h.

◆ CONFIG_PORT

#define CONFIG_PORT   23

Is this useful any more?

Definition at line 205 of file client.h.

◆ CONFIG_RESISTS

#define CONFIG_RESISTS   25

Definition at line 207 of file client.h.

◆ CONFIG_SHOWGRID

#define CONFIG_SHOWGRID   16

Definition at line 198 of file client.h.

◆ CONFIG_SHOWICON

#define CONFIG_SHOWICON   11

Definition at line 193 of file client.h.

◆ CONFIG_SIGNPOPUP

#define CONFIG_SIGNPOPUP   30

Definition at line 213 of file client.h.

◆ CONFIG_SMOOTH

#define CONFIG_SMOOTH   26

Definition at line 208 of file client.h.

◆ CONFIG_SOUND

#define CONFIG_SOUND   13

Definition at line 195 of file client.h.

◆ CONFIG_SPLASH

#define CONFIG_SPLASH   27

Definition at line 209 of file client.h.

◆ CONFIG_SPLITINFO

#define CONFIG_SPLITINFO   14

Definition at line 196 of file client.h.

◆ CONFIG_SPLITWIN

#define CONFIG_SPLITWIN   15

Definition at line 197 of file client.h.

◆ CONFIG_TIMESTAMP

#define CONFIG_TIMESTAMP   31

Definition at line 214 of file client.h.

◆ CONFIG_TOOLTIPS

#define CONFIG_TOOLTIPS   12

Definition at line 194 of file client.h.

◆ CONFIG_TRIMINFO

#define CONFIG_TRIMINFO   18

Definition at line 200 of file client.h.

◆ DEFPORT

#define DEFPORT   "13327"

Definition at line 65 of file client.h.

◆ EPORT

#define EPORT   13327

Definition at line 62 of file client.h.

◆ INFO_MOTD

#define INFO_MOTD   2

Definition at line 625 of file client.h.

◆ INFO_NEWS

#define INFO_NEWS   1

Definition at line 624 of file client.h.

◆ INFO_RULES

#define INFO_RULES   3

Definition at line 626 of file client.h.

◆ MAP_MAX_SIZE

#define MAP_MAX_SIZE   25

Map size the client will request the map to be. The bigger it is, more memory it will use.

Definition at line 466 of file client.h.

◆ MAX_BUF

#define MAX_BUF   256

Definition at line 40 of file client.h.

◆ MAX_FACE_SETS

#define MAX_FACE_SETS   20

Definition at line 381 of file client.h.

◆ MAX_IMAGE_SIZE

#define MAX_IMAGE_SIZE   320

Maximum size of image in each direction. Needed for the X11 client, which wants to initialize some data once. Increasing this would likely only need a bigger footprint.

Definition at line 382 of file client.h.

◆ MAX_MAP_OFFSET

#define MAX_MAP_OFFSET   8

How many spaces an object might extend off the map. E.g. For bigimage stuff, the head of the image may be off the the map edge. This is the most it may be off. This is needed To cover case of need_recenter_map routines.

Definition at line 482 of file client.h.

◆ MAX_SKILL

#define MAX_SKILL   CS_NUM_SKILLS

How many skill types server supports/client will get sent to it. If more skills are added to server, this needs to get increased.

Definition at line 84 of file client.h.

◆ MAX_TIME

#define MAX_TIME   100000

Definition at line 59 of file client.h.

◆ MAXANIM

#define MAXANIM   2000

Definition at line 86 of file client.h.

◆ MAXPIXMAPNUM

#define MAXPIXMAPNUM   10000

Definition at line 490 of file client.h.

◆ MIN

#define MIN (   X__,
  Y__ 
)    ( (X__)<(Y__)?(X__):(Y__) )

Definition at line 615 of file client.h.

◆ MIN_ALLOCATED_MAP_SIZE

#define MIN_ALLOCATED_MAP_SIZE   MAP_MAX_SIZE * 2

This is the smallest the map structure used for the client can be. It needs to be bigger than the MAP_MAX_SIZE simply because we have to deal with off map big images, Also, the center point is moved around within this map, so that if the player moves one space, we don't have to move around all the data.

Definition at line 475 of file client.h.

◆ NUM_NEW_CHAR_STATS

#define NUM_NEW_CHAR_STATS   7

Definition at line 560 of file client.h.

◆ NUM_RESISTS

#define NUM_RESISTS   18

Translation of the STAT_RES names into printable names, in matching order.

Definition at line 443 of file client.h.

◆ RI_IMAGE_INFO

#define RI_IMAGE_INFO   0x1

Definition at line 518 of file client.h.

◆ RI_IMAGE_SUMS

#define RI_IMAGE_SUMS   0x2

Definition at line 519 of file client.h.

◆ SC_ALWAYS

#define SC_ALWAYS   2

Definition at line 95 of file client.h.

◆ SC_FIRERUN

#define SC_FIRERUN   1

Definition at line 94 of file client.h.

◆ SC_MOVETO

#define SC_MOVETO   3

Definition at line 96 of file client.h.

◆ SC_NORMAL

#define SC_NORMAL   0

Definition at line 93 of file client.h.

◆ SOL_TCP

#define SOL_TCP   IPPROTO_TCP

Definition at line 37 of file client.h.

◆ STRINGCOMMAND

#define STRINGCOMMAND   0

Definition at line 78 of file client.h.

◆ VERSION_CS

#define VERSION_CS   1023

Definition at line 67 of file client.h.

◆ VERSION_SC

#define VERSION_SC   1029

Definition at line 68 of file client.h.

Typedef Documentation

◆ Animations

typedef struct Animations Animations

◆ Cache_Entry

typedef struct Cache_Entry Cache_Entry

Used mostly in the cache.c file, however, it can be returned to the graphic side of things so that they can update the image_data field. Since the common side has no idea what data the graphic side will point to, we use a void pointer for that - it is completely up to the graphic side to allocate/deallocate and cast that pointer as needed.

◆ Client_Player

typedef struct Player_Struct Client_Player

◆ ExtTextManager

typedef void(* ExtTextManager) (int flag, int type, int subtype, char *message)

Definition at line 45 of file client.h.

◆ Face_Information

One struct that holds most of the image related data to reduce danger of namespace collision.

◆ FaceSets

typedef struct FaceSets_struct FaceSets

◆ Msg_Type_Names

◆ PlayerPosition

◆ Race_Class_Info

◆ Spell

typedef struct Spell_struct Spell

◆ Starting_Map_Info

◆ Stats

typedef struct Stat_struct Stats

◆ TextManager

typedef struct TextManager TextManager

Enumeration Type Documentation

◆ ClientError

Enumerator
CLIENT_ERROR_TOOBIG 

Definition at line 635 of file client.h.

◆ Input_State

Enumerator
Playing 
Reply_One 
Reply_Many 
Configure_Keys 
Command_Mode 
Metaserver_Select 

Definition at line 144 of file client.h.

◆ LogLevel

enum LogLevel
Enumerator
LOG_DEBUG 

Useful debugging information.

LOG_INFO 

Minor, non-harmful issues.

LOG_WARNING 

Warning that something might not work.

LOG_ERROR 

Warning that something definitely didn't work.

LOG_CRITICAL 

Fatal crash-worthy error.

Definition at line 432 of file client.h.

◆ rangetype

enum rangetype
Enumerator
range_bottom 
range_none 
range_bow 
range_magic 
range_wand 
range_rod 
range_scroll 
range_horn 
range_steal 
range_size 

Definition at line 150 of file client.h.

Function Documentation

◆ client_connect()

void client_connect ( const char *  hostname)

Open a socket to the given hostname and store connection information.

Parameters
hostnameHost name or address of the server

◆ client_disconnect()

void client_disconnect ( void  )

Closes the connection to the server. It seems better to have it one place here than the same logic sprinkled about in half a dozen locations. It is also useful in that if this logic does change, there is just one place to update it.

Definition at line 175 of file client.c.

References csocket, ClientSocket::fd, LOG(), and LOG_DEBUG.

Referenced by client_negotiate(), client_run(), do_disconnect(), event_loop(), keyfunc(), on_button_go_metaserver_clicked(), on_disconnect_activate(), and SetupCmd().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ client_error_quark()

GQuark client_error_quark ( )
inline

Definition at line 631 of file client.h.

◆ client_get_source()

GSource* client_get_source ( void  )

Return a source triggered when input from the server is available.

Definition at line 324 of file client.c.

References in.

Referenced by event_loop().

+ Here is the caller graph for this function:

◆ client_is_connected()

bool client_is_connected ( void  )

Definition at line 320 of file client.c.

References csocket, and ClientSocket::fd.

Referenced by do_network(), on_disconnect_activate(), and redraw().

+ Here is the caller graph for this function:

◆ client_mapsize()

void client_mapsize ( int  width,
int  height 
)

Ask the server for the given map size.

Definition at line 171 of file client.c.

References cs_print_string(), csocket, ClientSocket::fd, height, and width.

Referenced by client_negotiate(), map_check_resize(), and SetupCmd().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ client_negotiate()

void client_negotiate ( int  sound)

This function negotiates the characteriistics of a connection to the server. Negotiation consists of asking the server for commands it wants, and checking protocol version for compatibility. Serious incompatibilities abort the connection.

Parameters
soundNon-zero to ask for sound and music commands.

Definition at line 329 of file client.c.

References Face_Information_struct::cache_hits, Face_Information_struct::cache_misses, client_disconnect(), client_mapsize(), client_run(), CONFIG_CACHE, CONFIG_DOWNLOAD, CONFIG_LIGHTING, CONFIG_MAPHEIGHT, CONFIG_MAPWIDTH, CONFIG_SMOOTH, cs_print_string(), ClientSocket::cs_version, csocket, draw_ext_info(), face_info, Face_Information_struct::faceset, ClientSocket::fd, image_update_download_status(), LOG(), LOG_ERROR, LOG_WARNING, MAX_BUF, MSG_TYPE_CLIENT, MSG_TYPE_CLIENT_CONFIG, NDI_GOLD, Face_Information_struct::num_images, replyinfo_last_face, replyinfo_status, requestinfo_sent, RI_IMAGE_INFO, RI_IMAGE_SUMS, ClientSocket::sc_version, SendAddMe(), SendVersion(), serverloginmethod, use_config, want_config, Face_Information_struct::want_faceset, and wantloginmethod.

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ client_run()

void client_run ( void  )

Read available packets from the server and handle commands until there are no more, or if a socket error occurs.

Definition at line 202 of file client.c.

References SockList::buf, client_disconnect(), CmdMapping::cmdformat, CmdMapping::cmdname, CmdMapping::cmdproc, commands, csocket, debug_protocol, error_dialog(), ClientSocket::fd, SockList::len, LOG(), LOG_ERROR, LOG_INFO, MAXSOCKBUF, NCOMMANDS, printable(), script_watch(), and SockList_ReadPacket().

Referenced by client_negotiate(), and do_network().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ client_write()

bool client_write ( const void *  buf,
int  len 
)

Write the given data to the server.

◆ printable()

char* printable ( void *  data,
int  len 
)

Replace the non-printable characters in 'data' with a dot ('.') in a newly allocated, NUL-terminated string. Caller must free the result.

Definition at line 186 of file client.c.

Referenced by client_run(), and SockList_Send().

+ Here is the caller graph for this function:

Variable Documentation

◆ animations

◆ cache_dir

const char* cache_dir

Definition at line 53 of file client.c.

Referenced by cache_newpng(), finish_face_cmd(), init_common_cache_data(), and init_paths().

◆ classes

◆ config_dir

const char * config_dir

Definition at line 142 of file client.h.

◆ config_names

const char* const config_names[CONFIG_NUMS]

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

Definition at line 30 of file init.c.

Referenced by config_load(), config_load_legacy(), and save_defaults().

◆ cpl

◆ csocket

◆ debug_protocol

bool debug_protocol

Definition at line 61 of file main.c.

Referenced by client_run(), and SockList_Send().

◆ exp_table

guint64* exp_table

Definition at line 65 of file client.c.

Referenced by client_init(), draw_message_window(), get_exp_info(), and update_skill_information().

◆ exp_table_max

guint16 exp_table_max

Definition at line 64 of file client.c.

Referenced by client_init(), draw_message_window(), get_exp_info(), and update_skill_information().

◆ face_info

◆ firstTextManager

TextManager* firstTextManager

Definition at line 1244 of file commands.c.

Referenced by getTextManager(), and setTextManager().

◆ global_time

GTimer* global_time

Definition at line 31 of file misc.c.

Referenced by LOG(), and main().

◆ last_used_skills

int last_used_skills[MAX_SKILL+1]

maps position to skill id with trailing zero as stop mark.

Definition at line 55 of file client.c.

Referenced by client_init(), and use_skill().

◆ maxfd

int maxfd

Definition at line 58 of file client.c.

Referenced by do_network(), and script_fdset().

◆ meta_server

char* meta_server

◆ motd

char * motd

Definition at line 546 of file client.h.

Referenced by client_reset(), ReplyInfoCmd(), and update_login_info().

◆ news

char * news

Definition at line 545 of file client.h.

Referenced by client_reset(), and update_login_info().

◆ num_classes

int num_classes

Definition at line 547 of file client.h.

Referenced by client_reset(), and new_char_window_update_info().

◆ num_races

int num_races

Definition at line 87 of file commands.c.

Referenced by client_reset(), get_race_info(), new_char_window_update_info(), and ReplyInfoCmd().

◆ pl_pos

◆ races

◆ replyinfo_last_face

int replyinfo_last_face

Definition at line 522 of file client.h.

◆ replyinfo_status

int replyinfo_status

Definition at line 57 of file client.c.

Referenced by client_negotiate(), and get_image_info().

◆ requestinfo_sent

int requestinfo_sent

Definition at line 522 of file client.h.

◆ resist_mapping

NameMapping resist_mapping[NUM_RESISTS]

Definition at line 457 of file client.h.

◆ resists_name

const char* const resists_name[NUM_RESISTS]

Definition at line 73 of file client.c.

Referenced by update_stat_mapping().

◆ rules

char * rules

Definition at line 545 of file client.h.

Referenced by client_reset(), and update_login_info().

◆ serverloginmethod

int serverloginmethod

◆ skill_mapping

NameMapping skill_mapping[MAX_SKILL]

Definition at line 67 of file client.c.

Referenced by draw_stats(), update_skill_information(), and update_stat_mapping().

◆ skill_names

◆ sound_server

char* sound_server

Definition at line 51 of file client.c.

◆ starting_map_info

◆ starting_map_number

◆ stat_mapping

◆ stat_maximum

int stat_maximum

Definition at line 548 of file client.h.

Referenced by new_char_window_update_info(), and reset_vars_common().

◆ stat_min

int stat_min

Definition at line 548 of file client.h.

Referenced by new_char_window_update_info(), and reset_vars_common().

◆ stat_points

◆ use_config

◆ used_classes

int used_classes

Definition at line 547 of file client.h.

Referenced by client_reset(), and new_char_window_update_info().

◆ used_races

int used_races

Definition at line 547 of file client.h.

Referenced by client_reset(), and new_char_window_update_info().

◆ VERSION_INFO

char VERSION_INFO[256]

Definition at line 48 of file client.c.

Referenced by main(), parse_args(), and SendVersion().

◆ want_config

◆ wantloginmethod

int wantloginmethod

Definition at line 447 of file client.h.