Go to the documentation of this file.
13 #define CLIENT_TYPES_H
22 #include <sys/types.h>
29 # include <winsock2.h>
37 #define SOL_TCP IPPROTO_TCP
45 typedef void (*
ExtTextManager)(
int flag,
int type,
int subtype,
char* message);
59 #define MAX_TIME 100000
65 #define DEFPORT "13327"
67 #define VERSION_CS 1023
68 #define VERSION_SC 1029
76 #define COMMAND_WINDOW 10
78 #define STRINGCOMMAND 0
84 #define MAX_SKILL CS_NUM_SKILLS
115 #define COMMAND_MAX 255
124 GSocketConnection*
fd;
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
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
237 #define CFG_DM_PIXMAP 0
239 #define CFG_DM_OPENGL 2
381 #define MAX_FACE_SETS 20
382 #define MAX_IMAGE_SIZE 320
443 #define NUM_RESISTS 18
466 #define MAP_MAX_SIZE 25
475 #define MIN_ALLOCATED_MAP_SIZE MAP_MAX_SIZE * 2
482 #define MAX_MAP_OFFSET 8
490 #define MAXPIXMAPNUM 10000
518 #define RI_IMAGE_INFO 0x1
519 #define RI_IMAGE_SUMS 0x2
560 #define NUM_NEW_CHAR_STATS 7
615 #define MIN(X__,Y__) ( (X__)<(Y__)?(X__):(Y__) )
629 #define CLIENT_ERROR client_error_quark()
632 return g_quark_from_static_string(
"client-error-quark");
gint16 skill_level[MAX_SKILL]
@ LOG_INFO
Minor, non-harmful issues.
@ LOG_WARNING
Warning that something might not work.
const char * widget_suffix
void(* ExtTextManager)(int flag, int type, int subtype, char *message)
struct Animations Animations
gint64 skill_exp[MAX_SKILL]
void client_mapsize(int width, int height)
const char *const resists_name[NUM_RESISTS]
struct Face_Information_struct Face_Information
NameMapping resist_mapping[NUM_RESISTS]
Face_Information face_info
void client_disconnect(void)
bool client_is_connected(void)
const char *const config_names[CONFIG_NUMS]
struct TextManager * next
struct Cache_Entry Cache_Entry
@ LOG_CRITICAL
Fatal crash-worthy error.
char * printable(void *data, int len)
struct Spell_struct * next
Starting_Map_Info * starting_map_info
#define NUM_NEW_CHAR_STATS
NameMapping skill_mapping[MAX_SKILL]
void client_connect(const char *hostname)
struct FaceSets_struct FaceSets
char last_command[MAX_BUF]
struct RC_Choice * rc_choice
item * ranges[range_size]
GSource * client_get_source(void)
struct Spell_struct Spell
gint16 want_config[CONFIG_NUMS]
gint8 stat_adj[NUM_NEW_CHAR_STATS]
struct Race_Class_Info Race_Class_Info
char * skill_names[MAX_SKILL]
struct Stat_Mapping stat_mapping[NUM_NEW_CHAR_STATS]
TextManager * firstTextManager
GQuark client_error_quark()
int last_used_skills[MAX_SKILL+1]
@ LOG_ERROR
Warning that something definitely didn't work.
struct Starting_Map_Info Starting_Map_Info
struct TextManager TextManager
struct Msg_Type_Names Msg_Type_Names
gint16 use_config[CONFIG_NUMS]
Animations animations[MAXANIM]
@ LOG_DEBUG
Useful debugging information.
struct PlayerPosition PlayerPosition
void client_negotiate(int sound)
bool client_write(const void *buf, int len)
struct Player_Struct Client_Player
struct Cache_Entry * next
Race_Class_Info * classes