46 #define VERSION_CS 1023
47 #define VERSION_SC 1029
54 #define COMMAND_WINDOW 10
56 #define STRINGCOMMAND 0
61 #define MAX_SKILL CS_NUM_SKILLS
85 #define CAN_SMOOTH(__SQUARE,__LEVEL) ( ( \
86 (__SQUARE.heads[__LEVEL].face==0) \
89 || (__SQUARE.smooth[layer]) \
152 #define CONFIG_DOWNLOAD 1
153 #define CONFIG_ECHO 2
154 #define CONFIG_FASTTCP 3
155 #define CONFIG_CWINDOW 4
156 #define CONFIG_CACHE 5
157 #define CONFIG_FOGWAR 6
158 #define CONFIG_ICONSCALE 7
159 #define CONFIG_MAPSCALE 8
160 #define CONFIG_POPUPS 9
161 #define CONFIG_DISPLAYMODE 10
162 #define CONFIG_SHOWICON 11
163 #define CONFIG_TOOLTIPS 12
164 #define CONFIG_SOUND 13
165 #define CONFIG_SPLITINFO 14
166 #define CONFIG_SPLITWIN 15
167 #define CONFIG_SHOWGRID 16
168 #define CONFIG_LIGHTING 17
169 #define CONFIG_TRIMINFO 18
170 #define CONFIG_MAPWIDTH 19
171 #define CONFIG_MAPHEIGHT 20
172 #define CONFIG_FOODBEEP 21
173 #define CONFIG_DARKNESS 22
174 #define CONFIG_PORT 23
175 #define CONFIG_GRAD_COLOR 24
176 #define CONFIG_RESISTS 25
177 #define CONFIG_SMOOTH 26
178 #define CONFIG_SPLASH 27
179 #define CONFIG_APPLY_CONTAINER 28
180 #define CONFIG_MAPSCROLL 29
181 #define CONFIG_SIGNPOPUP 30
182 #define CONFIG_TIMESTAMP 31
183 #define CONFIG_NUMS 32
186 #define CFG_LT_NONE 0
187 #define CFG_LT_TILE 1
188 #define CFG_LT_PIXEL 2
189 #define CFG_LT_PIXEL_BEST 3
194 #define CFG_DM_PIXMAP 0
196 #define CFG_DM_OPENGL 2
315 #define MAX_FACE_SETS 20
316 #define MAX_IMAGE_SIZE 320
323 typedef struct FaceSets_struct {
376 #define LOG_APPEND(_Entry) if (LogLast) {\
377 LogLast->next=_Entry;\
381 LogLast=_Entry;_Entry->next=NULL;\
382 if (++logcount > MAX_LOGS)\
384 LogEntry* old = LogFirst;\
385 LogFirst = LogFirst -> next;\
386 if (old->message) free (old->message);\
387 if (old->origin) free (old->origin);\
389 #define LOG_NEW_ENTRY (LogEntry*)calloc(1,sizeof(LogEntry))
390 #define LOG_SETMESSAGE(_Entry,_msg) free(_Entry->message);_Entry->message=strdup(_msg)
391 #define LOG_SETORIGIN(_Entry,_orig) free(_Entry->origin);_Entry->origin=strdup(_orig)
399 #define CHILD_STDIN 1
400 #define CHILD_STDOUT 2
401 #define CHILD_STDERR 4
402 #define CHILD_SILENTFAIL 8
403 #define CHILD_TUBE (CHILD_STDIN|CHILD_STDOUT|CHILD_STDERR)
413 #define CHILD_PIPEIN(__child) (__child->tube[0])
414 #define CHILD_PIPEOUT(__child) (__child->tube[1])
415 #define CHILD_PIPEERR(__child) (__child->tube[2])
426 #define NUM_RESISTS 18
441 #define MAP_MAX_SIZE 31
450 #define MIN_ALLOCATED_MAP_SIZE MAP_MAX_SIZE * 2
457 #define MAX_MAP_OFFSET 8
464 #define MAXPIXMAPNUM 10000
493 #define RI_IMAGE_INFO 0x1
494 #define RI_IMAGE_SUMS 0x2
514 #define MIN(X__,Y__) ( (X__)<(Y__)?(X__):(Y__) )
Animations animations[MAXANIM]
struct Spell_struct Spell
const char *const resists_name[NUM_RESISTS]
struct Animations Animations
Face_Information face_info
sint16 want_config[CONFIG_NUMS]
struct Cache_Entry Cache_Entry
sint64 skill_exp[MAX_SKILL]
struct ChildProcess ChildProcess
sint16 use_config[CONFIG_NUMS]
struct Face_Information_struct Face_Information
struct Cache_Entry * next
struct ClientSocket ClientSocket
struct ChildProcess * next
char last_command[MAX_BUF]
struct Spell_struct * next
struct Player_Struct Client_Player
void(* LogListener)(LogEntry *)
struct Msg_Type_Names Msg_Type_Names
item * ranges[range_size]
struct PlayerPosition PlayerPosition
sint16 skill_level[MAX_SKILL]
const char *const config_names[CONFIG_NUMS]
int last_used_skills[MAX_SKILL+1]
struct FaceSets_struct FaceSets
char * skill_names[MAX_SKILL]
TextManager * firstTextManager