Crossfire Client, Trunk
client.h
Go to the documentation of this file.
1 
7 #ifndef _CLIENT_H
8 #define _CLIENT_H
9 
10 #include "config.h"
11 
12 // This is required for 'newclient.h' to expose client variables.
13 #define CLIENT_TYPES_H
14 
15 #include <fcntl.h>
16 #include <glib.h>
17 #include <stdbool.h>
18 #include <stdio.h>
19 #include <stdlib.h>
20 #include <string.h>
21 #include <sys/time.h>
22 #include <sys/types.h>
23 #include <time.h>
24 #include <unistd.h>
25 
26 #include <gio/gio.h>
27 
28 #ifdef WIN32
29 # include <winsock2.h>
30 #endif
31 
32 #include "item.h"
33 #include "shared/newclient.h"
34 #include "version.h"
35 
36 #ifndef SOL_TCP
37 #define SOL_TCP IPPROTO_TCP
38 #endif
39 
40 #define MAX_BUF 256
41 #define BIG_BUF 1024
42 
43 /* used to register gui callbacks to extended texts
44  * (which are supposed to be handled more friendly than raw text)*/
45 typedef void (*ExtTextManager)(int flag, int type, int subtype, char* message);
46 
47 typedef struct TextManager{
48  int type;
50  struct TextManager* next;
51 } TextManager;
52 
53 /* This is how often the client checks for X events, as well as how often
54  * it performs animations (or will). This value can be most anything.
55  * IT is only configurable because the exact value it needs to be set to
56  * has to be figured out. This value is in microseconds (100,000 microseconds=
57  * 0.1 seconds
58  */
59 #define MAX_TIME 100000
60 
61 /* This is the default port to connect to the server with. */
62 #define EPORT 13327
63 
64 /* This is the default port to connect to the server with in string form. */
65 #define DEFPORT "13327"
66 
67 #define VERSION_CS 1023
68 #define VERSION_SC 1029
69 
70 extern char VERSION_INFO[256];
71 
76 #define COMMAND_WINDOW 10
77 
78 #define STRINGCOMMAND 0
79 
84 #define MAX_SKILL CS_NUM_SKILLS
85 
86 #define MAXANIM 2000
87 
93 #define SC_NORMAL 0
94 #define SC_FIRERUN 1
95 #define SC_ALWAYS 2
96 #define SC_MOVETO 3
97 
99 typedef struct Animations {
100  guint16 flags;
101  guint8 num_animations;
105  guint8 speed;
106  guint8 speed_left;
107  guint8 phase;
108  guint16 *faces;
109 
110 } Animations;
111 
113 
115 #define COMMAND_MAX 255
116 
123 typedef struct {
124  GSocketConnection* fd;
125  int cs_version, sc_version;
127  guint16 command_sent, command_received;
135  char* servername;
136  gint8 dir[COMMAND_MAX]; //< Direction of sent movement command (or -1) for local prediction
137 } ClientSocket;
138 
139 extern ClientSocket csocket;
140 
141 extern char *sound_server;
142 extern const char *cache_dir, *config_dir;
143 
144 typedef enum {
145  Playing, //< including account login, character selection
147  Metaserver_Select //< only when metaserver window is up
148 } Input_State;
149 
150 typedef enum {
155 } rangetype;
156 
183 #define CONFIG_DOWNLOAD 1
184 #define CONFIG_ECHO 2
185 #define CONFIG_FASTTCP 3
186 #define CONFIG_CWINDOW 4
187 #define CONFIG_CACHE 5
188 #define CONFIG_FOGWAR 6
189 #define CONFIG_ICONSCALE 7
190 #define CONFIG_MAPSCALE 8
191 #define CONFIG_POPUPS 9
192 #define CONFIG_DISPLAYMODE 10
193 #define CONFIG_SHOWICON 11
194 #define CONFIG_TOOLTIPS 12
195 #define CONFIG_SOUND 13
196 #define CONFIG_SPLITINFO 14
197 #define CONFIG_SPLITWIN 15
198 #define CONFIG_SHOWGRID 16
199 #define CONFIG_LIGHTING 17
200 #define CONFIG_TRIMINFO 18
201 #define CONFIG_MAPWIDTH 19
202 #define CONFIG_MAPHEIGHT 20
203 #define CONFIG_FOODBEEP 21
204 #define CONFIG_DARKNESS 22
205 #define CONFIG_PORT 23
206 #define CONFIG_GRAD_COLOR 24
207 #define CONFIG_RESISTS 25
208 #define CONFIG_SMOOTH 26
209 #define CONFIG_SPLASH 27
210 #define CONFIG_APPLY_CONTAINER 28
211 #define CONFIG_MAPSCROLL 29
213 #define CONFIG_SIGNPOPUP 30
214 #define CONFIG_TIMESTAMP 31
215 #define CONFIG_AUTO_AFK 32
216 #define CONFIG_INV_MENU 33
217 #define CONFIG_NUMS 34
220 
221 
226 #define CFG_LT_NONE 0
227 #define CFG_LT_TILE 1
228 #define CFG_LT_PIXEL 2
229 #define CFG_LT_PIXEL_BEST 3
230 
237 #define CFG_DM_PIXMAP 0
238 #define CFG_DM_SDL 1
239 #define CFG_DM_OPENGL 2
240 
243 
244 extern const char *const config_names[CONFIG_NUMS];
249 typedef struct Stat_struct {
250  gint8 Str;
251  gint8 Dex;
252  gint8 Con;
253  gint8 Wis;
254  gint8 Cha;
255  gint8 Int;
256  gint8 Pow;
257  gint8 wc;
258  gint8 ac;
259  gint8 level;
260  gint16 hp;
261  gint16 maxhp;
262  gint16 sp;
263  gint16 maxsp;
264  gint16 grace;
265  gint16 maxgrace;
266  gint64 exp;
267  gint16 food;
270  gint16 dam;
273  gint32 speed;
274  gint32 weapon_sp;
277  guint32 attuned;
280  guint32 repelled;
283  guint32 denied;
284  guint16 flags;
285  gint16 resists[30];
286  guint32 resist_change:1;
289  guint32 weight_limit;
290 } Stats;
291 
292 typedef struct Spell_struct {
294  char name[256];
295  char message[10000];
297  guint32 tag;
299  guint16 level;
300  guint16 time;
301  guint16 sp;
302  guint16 grace;
303  guint16 dam;
307  guint8 skill_number;
311  char *skill;
313  guint32 path;
317  gint32 face;
320  guint8 usage;
325  char requirements[256];
331 } Spell;
332 
333 typedef struct Player_Struct {
334  item *ob;
338  guint16 count_left;
344  guint8 ready_spell;
345  char spells[255][40];
349  char title[MAX_BUF];
350  char range[MAX_BUF];
351  guint32 spells_updated;
352  guint32 fire_on:1;
353  guint32 run_on:1;
354  guint32 meta_on:1;
355  guint32 alt_on:1;
356  guint32 no_echo:1;
357  guint32 count;
358  guint16 mmapx, mmapy;
359  guint16 pmapx, pmapy;
361  guint8 *magicmap;
362  guint8 showmagic;
364  guint16 mapxres,mapyres;
367  char *name;
374 } Client_Player;
375 
381 #define MAX_FACE_SETS 20
382 #define MAX_IMAGE_SIZE 320
390 
391 typedef struct FaceSets_struct {
392  guint8 setnum;
393  guint8 fallback;
394  char *prefix;
395  char *fullname;
396  char *size;
397  char *extension;
398  char *comment;
399 } FaceSets;
400 
405 typedef struct Face_Information_struct {
406  guint8 faceset;
408  gint16 num_images;
422 
424 
425 extern Client_Player cpl;
426 extern char *skill_names[MAX_SKILL];
427 
428 extern int last_used_skills[MAX_SKILL+1];
432 typedef enum {
433  LOG_DEBUG = 0,
434  LOG_INFO = 1,
436  LOG_ERROR = 3,
438 } LogLevel;
439 
443 #define NUM_RESISTS 18
444 
445 extern const char *const resists_name[NUM_RESISTS];
446 extern char *meta_server;
448 
452 typedef struct {
453  const char *name;
454  int value;
455 } NameMapping;
456 
458 
459 extern guint64 *exp_table;
460 extern guint16 exp_table_max;
461 
466 #define MAP_MAX_SIZE 25
467 
475 #define MIN_ALLOCATED_MAP_SIZE MAP_MAX_SIZE * 2
476 
482 #define MAX_MAP_OFFSET 8
483 
484 /* Start of map handling code.
485  *
486  * For the most part, this actually is not window system specific, but
487  * certainly how the client wants to store this may vary.
488  */
489 
490 #define MAXPIXMAPNUM 10000
491 
499 typedef struct Cache_Entry {
500  char *filename;
501  guint32 checksum;
502  guint32 ispublic:1;
503  void *image_data;
504  struct Cache_Entry *next;
505 } Cache_Entry;
506 
518 #define RI_IMAGE_INFO 0x1
519 #define RI_IMAGE_SUMS 0x2
520 
523 
524 typedef struct PlayerPosition {
525  int x;
526  int y;
528 
529 extern PlayerPosition pl_pos;
530 
531 typedef struct Msg_Type_Names {
532  int type;
533  int subtype;
534  const char *style_name;
538 
540 
541 /* declared/handled in commands.c . These variables are documented
542  * in that file - the data they present is created by the command
543  * code, but consumed by the GUI code.
544  */
545 extern char *motd, *news, *rules;
546 extern char *motd, *news, *rules; /* Declared/handled in commands.c */
549 
550 
551 
552 /*
553  * This structure is used to hold race/class adjustment info, as
554  * received by the requestinfo command. We get the same info
555  * for both races and class, so it simplifies code to share a structure.
556  */
557 /* This is how many stats (str, dex, con, etc) that are present
558  * in the create character window.
559  */
560 #define NUM_NEW_CHAR_STATS 7
561 
568 struct Stat_Mapping {
569  const char *widget_suffix; /* within the glade file, suffix used on widget */
570  guint8 cs_value; /* within the protocol, the CS_STAT value */
571  guint8 rc_offset; /* Offset into the stat_adj array */
572 };
573 
575 
585 struct RC_Choice {
586  char *choice_name; /* name to respond, eg, race_choice_1 */
587  char *choice_desc; /* Longer description of choice */
588  int num_values; /* How many values we have */
589  char **value_arch; /* Array arch names */
590  char **value_desc; /* Array of description */
591 };
592 
593 typedef struct Race_Class_Info {
594  char *arch_name; /* Name of the archetype this correponds to */
595  char *public_name; /* Public (human readadable) name */
596  char *description; /* Description of the race/class */
597  gint8 stat_adj[NUM_NEW_CHAR_STATS]; /* Adjustment values */
598  int num_rc_choice; /* Size of following array */
599  struct RC_Choice *rc_choice; /* array of choices */
601 
602 typedef struct Starting_Map_Info {
603  char *arch_name; /* Name of archetype for this map */
604  char *public_name; /* Name of the human readable name */
605  char *description; /* Description of this map */
607 
610 extern int starting_map_number;
611 extern int maxfd;
612 
613 /* End of commands.c data, start of other declarations */
614 #ifndef MIN
615 #define MIN(X__,Y__) ( (X__)<(Y__)?(X__):(Y__) )
616 #endif
617 
624 #define INFO_NEWS 1
625 #define INFO_MOTD 2
626 #define INFO_RULES 3
627 
629 #define CLIENT_ERROR client_error_quark()
630 
631 inline GQuark client_error_quark() {
632  return g_quark_from_static_string("client-error-quark");
633 }
634 
637 };
638 
639 /* We need to declare most of the structs before we can include this */
640 #include "proto.h"
641 
647 extern void client_connect(const char *hostname);
648 
655 extern void client_disconnect(void);
656 
665 extern void client_negotiate(int sound);
666 
670 extern void client_mapsize(int width, int height);
671 
676 extern void client_run(void);
677 
681 extern bool client_write(const void *buf, int len);
682 
683 extern bool client_is_connected(void);
684 
688 extern GSource *client_get_source(void);
689 
690 extern GTimer* global_time;
691 
692 extern bool debug_protocol;
693 char *printable(void *data, int len);
694 
695 #endif
range_wand
@ range_wand
Definition: client.h:152
Player_Struct::stats
Stats stats
Definition: client.h:347
Stat_struct::skill_level
gint16 skill_level[MAX_SKILL]
Definition: client.h:287
LOG_INFO
@ LOG_INFO
Minor, non-harmful issues.
Definition: client.h:434
Race_Class_Info::public_name
char * public_name
Definition: client.h:595
TextManager::type
int type
Definition: client.h:48
Stat_struct::Str
gint8 Str
Definition: client.h:250
FaceSets_struct::comment
char * comment
Definition: client.h:398
NUM_RESISTS
#define NUM_RESISTS
Definition: client.h:443
Spell_struct::message
char message[10000]
Definition: client.h:295
news
char * news
Definition: client.h:545
Msg_Type_Names
Definition: client.h:531
rangetype
rangetype
Definition: client.h:150
num_classes
int num_classes
Definition: client.h:547
LOG_WARNING
@ LOG_WARNING
Warning that something might not work.
Definition: client.h:435
Playing
@ Playing
Definition: client.h:145
Stat_Mapping::widget_suffix
const char * widget_suffix
Definition: client.h:569
ExtTextManager
void(* ExtTextManager)(int flag, int type, int subtype, char *message)
Definition: client.h:45
csocket
ClientSocket csocket
Definition: client.c:70
Animations
struct Animations Animations
Stat_Mapping
Definition: client.h:568
Spell_struct::tag
guint32 tag
Definition: client.h:297
NameMapping
Definition: client.h:452
Stat_struct::skill_exp
gint64 skill_exp[MAX_SKILL]
Definition: client.h:288
Player_Struct::title
char title[MAX_BUF]
Definition: client.h:349
replyinfo_last_face
int replyinfo_last_face
Definition: client.h:522
Msg_Type_Names::style_name
const char * style_name
Definition: client.h:534
Player_Struct::fire_on
guint32 fire_on
Definition: client.h:352
Msg_Type_Names::type
int type
Definition: client.h:532
client_mapsize
void client_mapsize(int width, int height)
Definition: client.c:171
RC_Choice
Definition: client.h:585
ClientError
ClientError
Definition: client.h:635
PlayerPosition::x
int x
Definition: client.h:525
races
Race_Class_Info * races
Definition: commands.c:98
Msg_Type_Names::subtype
int subtype
Definition: client.h:533
Player_Struct::input_state
Input_State input_state
Definition: client.h:339
used_classes
int used_classes
Definition: client.h:547
ClientSocket::fd
GSocketConnection * fd
Definition: client.h:124
Face_Information_struct::num_images
gint16 num_images
Definition: client.h:408
Cache_Entry
Definition: client.h:499
range_magic
@ range_magic
Definition: client.h:151
Player_Struct::run_on
guint32 run_on
Definition: client.h:353
Configure_Keys
@ Configure_Keys
Definition: client.h:146
Stat_struct::Con
gint8 Con
Definition: client.h:252
Starting_Map_Info::public_name
char * public_name
Definition: client.h:604
used_races
int used_races
Definition: client.h:547
config_dir
const char * config_dir
Definition: client.h:142
RC_Choice::value_desc
char ** value_desc
Definition: client.h:590
COMMAND_MAX
#define COMMAND_MAX
Definition: client.h:115
Animations::phase
guint8 phase
Definition: client.h:107
resists_name
const char *const resists_name[NUM_RESISTS]
Definition: client.c:73
Stat_struct::food
gint16 food
Definition: client.h:267
FaceSets_struct
Definition: client.h:391
Player_Struct::mapyres
guint16 mapyres
Definition: client.h:364
RC_Choice::value_arch
char ** value_arch
Definition: client.h:589
Player_Struct::spells
char spells[255][40]
Definition: client.h:345
Player_Struct::meta_on
guint32 meta_on
Definition: client.h:354
RC_Choice::choice_desc
char * choice_desc
Definition: client.h:587
Stat_struct::ac
gint8 ac
Definition: client.h:258
requestinfo_sent
int requestinfo_sent
Definition: client.h:522
range_bottom
@ range_bottom
Definition: client.h:151
Reply_One
@ Reply_One
Definition: client.h:146
Face_Information
struct Face_Information_struct Face_Information
resist_mapping
NameMapping resist_mapping[NUM_RESISTS]
Definition: client.h:457
Stat_Mapping::rc_offset
guint8 rc_offset
Definition: client.h:571
Stat_struct::weapon_sp
gint32 weapon_sp
Definition: client.h:274
Animations::num_animations
guint8 num_animations
Definition: client.h:101
ClientSocket::command_time
int command_time
Definition: client.h:132
Stat_struct::hp
gint16 hp
Definition: client.h:260
face_info
Face_Information face_info
Definition: image.c:169
FaceSets_struct::size
char * size
Definition: client.h:396
Stat_struct::maxgrace
gint16 maxgrace
Definition: client.h:265
range_rod
@ range_rod
Definition: client.h:152
RC_Choice::num_values
int num_values
Definition: client.h:588
height
static int height
Definition: mapdata.c:99
NameMapping::name
const char * name
Definition: client.h:453
Stat_struct::exp
gint64 exp
Definition: client.h:266
range_bow
@ range_bow
Definition: client.h:151
serverloginmethod
int serverloginmethod
Definition: client.c:62
range_scroll
@ range_scroll
Definition: client.h:152
client_disconnect
void client_disconnect(void)
Definition: client.c:175
client_run
void client_run(void)
Definition: client.c:202
Spell_struct::skill_number
guint8 skill_number
Definition: client.h:307
Face_Information_struct
Definition: client.h:405
LogLevel
LogLevel
Definition: client.h:432
Spell_struct::requirements
char requirements[256]
Definition: client.h:325
Player_Struct::count_left
guint16 count_left
Definition: client.h:338
client_is_connected
bool client_is_connected(void)
Definition: client.c:320
Player_Struct::input_text
char input_text[MAX_BUF]
Definition: client.h:341
Animations::speed
guint8 speed
Definition: client.h:105
Stat_Mapping::cs_value
guint8 cs_value
Definition: client.h:570
ClientSocket::sc_version
int sc_version
Definition: client.h:125
Face_Information_struct::bmaps_checksum
guint32 bmaps_checksum
Definition: client.h:409
config_names
const char *const config_names[CONFIG_NUMS]
Definition: init.c:30
Stat_struct::resists
gint16 resists[30]
Definition: client.h:285
version.h
TextManager::next
struct TextManager * next
Definition: client.h:50
CLIENT_ERROR_TOOBIG
@ CLIENT_ERROR_TOOBIG
Definition: client.h:636
Stat_struct::flags
guint16 flags
Definition: client.h:284
TextManager::callback
ExtTextManager callback
Definition: client.h:49
PlayerPosition::y
int y
Definition: client.h:526
Cache_Entry
struct Cache_Entry Cache_Entry
FaceSets_struct::prefix
char * prefix
Definition: client.h:394
Player_Struct::mmapx
guint16 mmapx
Definition: client.h:358
Reply_Many
@ Reply_Many
Definition: client.h:146
Stat_struct::grace
gint16 grace
Definition: client.h:264
TextManager
Definition: client.h:47
range_size
@ range_size
Definition: client.h:154
Stat_struct::resist_change
guint32 resist_change
Definition: client.h:286
LOG_CRITICAL
@ LOG_CRITICAL
Fatal crash-worthy error.
Definition: client.h:437
Spell_struct
Definition: client.h:292
printable
char * printable(void *data, int len)
Definition: client.c:186
Starting_Map_Info::arch_name
char * arch_name
Definition: client.h:603
Stat_struct::Int
gint8 Int
Definition: client.h:255
Spell_struct::next
struct Spell_struct * next
Definition: client.h:293
starting_map_info
Starting_Map_Info * starting_map_info
Definition: commands.c:99
Face_Information_struct::cache_misses
gint16 cache_misses
Definition: client.h:416
NUM_NEW_CHAR_STATS
#define NUM_NEW_CHAR_STATS
Definition: client.h:560
skill_mapping
NameMapping skill_mapping[MAX_SKILL]
Definition: client.c:67
stat_min
int stat_min
Definition: client.h:548
Stat_struct::sp
gint16 sp
Definition: client.h:262
Spell_struct::face
gint32 face
Definition: client.h:317
CONFIG_NUMS
#define CONFIG_NUMS
Definition: client.h:217
Player_Struct::container
item * container
Definition: client.h:337
client_connect
void client_connect(const char *hostname)
Face_Information_struct::facesets
FaceSets facesets[MAX_FACE_SETS]
Definition: client.h:420
Stat_struct::speed
gint32 speed
Definition: client.h:273
FaceSets
struct FaceSets_struct FaceSets
proto.h
maxfd
int maxfd
Definition: client.c:58
MAX_BUF
#define MAX_BUF
Definition: client.h:40
Stat_struct::level
gint8 level
Definition: client.h:259
Stat_struct::maxhp
gint16 maxhp
Definition: client.h:261
Player_Struct::last_command
char last_command[MAX_BUF]
Definition: client.h:340
Race_Class_Info::rc_choice
struct RC_Choice * rc_choice
Definition: client.h:599
Player_Struct::ranges
item * ranges[range_size]
Definition: client.h:342
Spell_struct::name
char name[256]
Definition: client.h:294
debug_protocol
bool debug_protocol
Definition: main.c:61
replyinfo_status
int replyinfo_status
Definition: client.c:57
Race_Class_Info::description
char * description
Definition: client.h:596
client_get_source
GSource * client_get_source(void)
Definition: client.c:324
ClientSocket::servername
char * servername
Definition: client.h:135
Player_Struct::ob
item * ob
Definition: client.h:334
Player_Struct::pmapx
guint16 pmapx
Definition: client.h:359
Cache_Entry::checksum
guint32 checksum
Definition: client.h:501
Player_Struct::range
char range[MAX_BUF]
Definition: client.h:350
Stat_struct::maxsp
gint16 maxsp
Definition: client.h:263
Spell_struct::skill
char * skill
Definition: client.h:311
meta_server
char * meta_server
stat_maximum
int stat_maximum
Definition: client.h:548
MAX_SKILL
#define MAX_SKILL
Definition: client.h:84
Spell
struct Spell_struct Spell
NameMapping::value
int value
Definition: client.h:454
Face_Information_struct::want_faceset
char * want_faceset
Definition: client.h:407
Command_Mode
@ Command_Mode
Definition: client.h:146
width
static int width
Definition: mapdata.c:98
Player_Struct::alt_on
guint32 alt_on
Definition: client.h:355
Race_Class_Info::num_rc_choice
int num_rc_choice
Definition: client.h:598
starting_map_number
int starting_map_number
Definition: commands.c:96
want_config
gint16 want_config[CONFIG_NUMS]
Definition: init.c:41
Race_Class_Info::stat_adj
gint8 stat_adj[NUM_NEW_CHAR_STATS]
Definition: client.h:597
Race_Class_Info
struct Race_Class_Info Race_Class_Info
RC_Choice::choice_name
char * choice_name
Definition: client.h:586
MAX_FACE_SETS
#define MAX_FACE_SETS
Definition: client.h:381
Race_Class_Info
Definition: client.h:593
FaceSets_struct::extension
char * extension
Definition: client.h:397
Player_Struct::magicmap
guint8 * magicmap
Definition: client.h:361
Player_Struct::no_echo
guint32 no_echo
Definition: client.h:356
Stat_struct::wc
gint8 wc
Definition: client.h:257
Spell_struct::path
guint32 path
Definition: client.h:313
range_none
@ range_none
Definition: client.h:151
FaceSets_struct::setnum
guint8 setnum
Definition: client.h:392
cache_dir
const char * cache_dir
Definition: client.c:53
skill_names
char * skill_names[MAX_SKILL]
Definition: client.c:50
Animations::speed_left
guint8 speed_left
Definition: client.h:106
Player_Struct::name
char * name
Definition: client.h:367
stat_mapping
struct Stat_Mapping stat_mapping[NUM_NEW_CHAR_STATS]
Definition: commands.c:118
Stats
struct Stat_struct Stats
Stat_struct::dam
gint16 dam
Definition: client.h:270
firstTextManager
TextManager * firstTextManager
Definition: commands.c:1244
Cache_Entry::image_data
void * image_data
Definition: client.h:503
Input_State
Input_State
Definition: client.h:144
Spell_struct::usage
guint8 usage
Definition: client.h:320
client_error_quark
GQuark client_error_quark()
Definition: client.h:631
item_struct
Definition: item.h:50
ClientSocket
Definition: client.h:123
Player_Struct::showmagic
guint8 showmagic
Definition: client.h:362
Player_Struct::mapxres
guint16 mapxres
Definition: client.h:364
last_used_skills
int last_used_skills[MAX_SKILL+1]
Definition: client.c:55
cpl
Client_Player cpl
Definition: client.c:69
Player_Struct::pmapy
guint16 pmapy
Definition: client.h:359
Face_Information_struct::old_bmaps_checksum
guint32 old_bmaps_checksum
Definition: client.h:409
LOG_ERROR
@ LOG_ERROR
Warning that something definitely didn't work.
Definition: client.h:436
range_steal
@ range_steal
Definition: client.h:153
Animations::faces
guint16 * faces
Definition: client.h:108
Animations
Definition: client.h:99
Cache_Entry::ispublic
guint32 ispublic
Definition: client.h:502
sound_server
char * sound_server
Definition: client.c:51
FaceSets_struct::fullname
char * fullname
Definition: client.h:395
Player_Struct
Definition: client.h:333
Stat_struct::Pow
gint8 Pow
Definition: client.h:256
Starting_Map_Info::description
char * description
Definition: client.h:605
Player_Struct::below
item * below
Definition: client.h:335
Animations::flags
guint16 flags
Definition: client.h:100
Spell_struct::sp
guint16 sp
Definition: client.h:301
Starting_Map_Info
struct Starting_Map_Info Starting_Map_Info
Stat_struct::repelled
guint32 repelled
Definition: client.h:280
global_time
GTimer * global_time
Definition: misc.c:31
Stat_struct
Definition: client.h:249
VERSION_INFO
char VERSION_INFO[256]
Definition: client.c:48
Face_Information_struct::faceset
guint8 faceset
Definition: client.h:406
rules
char * rules
Definition: client.h:545
Spell_struct::dam
guint16 dam
Definition: client.h:303
motd
char * motd
Definition: client.h:546
PlayerPosition
Definition: client.h:524
TextManager
struct TextManager TextManager
exp_table_max
guint16 exp_table_max
Definition: client.c:64
range_horn
@ range_horn
Definition: client.h:152
Spell_struct::level
guint16 level
Definition: client.h:299
newclient.h
Stat_struct::weight_limit
guint32 weight_limit
Definition: client.h:289
Metaserver_Select
@ Metaserver_Select
Definition: client.h:147
Player_Struct::count
guint32 count
Definition: client.h:357
num_races
int num_races
Definition: commands.c:87
pl_pos
PlayerPosition pl_pos
Definition: mapdata.c:30
Msg_Type_Names
struct Msg_Type_Names Msg_Type_Names
stat_points
int stat_points
Definition: commands.c:93
use_config
gint16 use_config[CONFIG_NUMS]
Definition: client.h:242
Face_Information_struct::have_faceset_info
guint8 have_faceset_info
Definition: client.h:417
Player_Struct::ready_spell
guint8 ready_spell
Definition: client.h:344
Stat_struct::denied
guint32 denied
Definition: client.h:283
wantloginmethod
int wantloginmethod
Definition: client.h:447
Stat_struct::Cha
gint8 Cha
Definition: client.h:254
exp_table
guint64 * exp_table
Definition: client.c:65
Face_Information_struct::cache_hits
gint16 cache_hits
Definition: client.h:416
Stat_struct::Wis
gint8 Wis
Definition: client.h:253
Player_Struct::mmapy
guint16 mmapy
Definition: client.h:358
ClientSocket::command_sent
guint16 command_sent
Definition: client.h:127
Spell_struct::time
guint16 time
Definition: client.h:300
MAXANIM
#define MAXANIM
Definition: client.h:86
Spell_struct::grace
guint16 grace
Definition: client.h:302
animations
Animations animations[MAXANIM]
Definition: commands.c:1155
Cache_Entry::filename
char * filename
Definition: client.h:500
Stat_struct::attuned
guint32 attuned
Definition: client.h:277
Player_Struct::spelldata
Spell * spelldata
Definition: client.h:348
Player_Struct::spells_updated
guint32 spells_updated
Definition: client.h:351
LOG_DEBUG
@ LOG_DEBUG
Useful debugging information.
Definition: client.h:433
PlayerPosition
struct PlayerPosition PlayerPosition
client_negotiate
void client_negotiate(int sound)
Definition: client.c:329
client_write
bool client_write(const void *buf, int len)
Client_Player
struct Player_Struct Client_Player
Stat_struct::Dex
gint8 Dex
Definition: client.h:251
Cache_Entry::next
struct Cache_Entry * next
Definition: client.h:504
Starting_Map_Info
Definition: client.h:602
FaceSets_struct::fallback
guint8 fallback
Definition: client.h:393
Race_Class_Info::arch_name
char * arch_name
Definition: client.h:594
classes
Race_Class_Info * classes
Definition: client.h:608
item.h