1 | /* image.c */ |
1 | /* image.c */ |
2 | int is_valid_faceset(int fsn); |
2 | int is_valid_faceset(int fsn); |
3 | void free_socket_images(void); |
3 | void free_socket_images(void); |
4 | void read_client_images(void); |
4 | void read_client_images(void); |
5 | void SetFaceMode(char *buf, int len, NewSocket *ns); |
5 | void SetFaceMode(char *buf, int len, client *ns); |
6 | void SendFaceCmd(char *buff, int len, NewSocket *ns); |
6 | void SendFaceCmd(char *buff, int len, client *ns); |
7 | void esrv_send_face(NewSocket *ns, short face_num, int nocache); |
7 | void esrv_send_face(client *ns, short face_num, int nocache); |
8 | void send_image_info(NewSocket *ns, char *params); |
8 | void send_image_info(client *ns, char *params); |
9 | void send_image_sums(NewSocket *ns, char *params); |
9 | void send_image_sums(client *ns, char *params); |
10 | /* info.c */ |
10 | /* info.c */ |
11 | void flush_output_element(const object *pl, Output_Buf *outputs); |
11 | void flush_output_element(const object *pl, Output_Buf *outputs); |
12 | void new_draw_info(int flags, int pri, const object *pl, const char *buf); |
12 | void new_draw_info(int flags, int pri, const object *pl, const char *buf); |
13 | void new_draw_info_format(int flags, int pri, const object *pl, const char *format, ...); |
13 | void new_draw_info_format(int flags, int pri, const object *pl, const char *format, ...); |
14 | void draw_ext_info(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char* message,const char* oldmessage); |
14 | void draw_ext_info(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char* message,const char* oldmessage); |
… | |
… | |
21 | void set_title(object *pl, char *buf); |
21 | void set_title(object *pl, char *buf); |
22 | void magic_mapping_mark(object *pl, char *map_mark, int strength); |
22 | void magic_mapping_mark(object *pl, char *map_mark, int strength); |
23 | void draw_magic_map(object *pl); |
23 | void draw_magic_map(object *pl); |
24 | void Log_Kill(const char *Who, const char *What, int WhatType, const char *With, int WithType); |
24 | void Log_Kill(const char *Who, const char *What, int WhatType, const char *With, int WithType); |
25 | /* init.c */ |
25 | /* init.c */ |
26 | void InitConnection(NewSocket *ns, const char *from_ip); |
26 | bool add_client (int fd, const char *peername); |
27 | void init_ericserver(void); |
27 | void init_ericserver(void); |
28 | void free_all_newserver(void); |
28 | void free_all_newserver(void); |
29 | void free_newsocket(NewSocket *ns); |
29 | void free_newsocket(client *ns); |
30 | void final_free_player(player *pl); |
30 | void final_free_player(player *pl); |
31 | /* item.c */ |
31 | /* item.c */ |
32 | unsigned int query_flags(object *op); |
32 | unsigned int query_flags(object *op); |
33 | void esrv_draw_look(object *pl); |
33 | void esrv_draw_look(object *pl); |
34 | void esrv_send_inventory(object *pl, object *op); |
34 | void esrv_send_inventory(object *pl, object *op); |
… | |
… | |
36 | void esrv_send_item(object *pl, object *op); |
36 | void esrv_send_item(object *pl, object *op); |
37 | void esrv_del_item(player *pl, int tag); |
37 | void esrv_del_item(player *pl, int tag); |
38 | object *esrv_get_ob_from_count(object *pl, tag_t count); |
38 | object *esrv_get_ob_from_count(object *pl, tag_t count); |
39 | void ExamineCmd(char *buf, int len, player *pl); |
39 | void ExamineCmd(char *buf, int len, player *pl); |
40 | void ApplyCmd(char *buf, int len, player *pl); |
40 | void ApplyCmd(char *buf, int len, player *pl); |
41 | void LockItem(uint8 *data, int len, player *pl); |
41 | void LockItem(char *data, int len, player *pl); |
42 | void MarkItem(uint8 *data, int len, player *pl); |
42 | void MarkItem(char *data, int len, player *pl); |
43 | void look_at(object *op, int dx, int dy); |
43 | void look_at(object *op, int dx, int dy); |
44 | void LookAt(char *buf, int len, player *pl); |
44 | void LookAt(char *buf, int len, player *pl); |
45 | void esrv_move_object(object *pl, tag_t to, tag_t tag, long nrof); |
45 | void esrv_move_object(object *pl, tag_t to, tag_t tag, long nrof); |
46 | /* loop.c */ |
46 | /* loop.c */ |
47 | void RequestInfo(char *buf, int len, NewSocket *ns); |
47 | void RequestInfo(char *buf, int len, client *ns); |
48 | void Handle_Oldsocket(NewSocket *ns); |
48 | void Handle_Oldsocket(client *ns); |
49 | void HandleClient(NewSocket *ns, player *pl); |
49 | void HandleClient(client *ns, player *pl); |
50 | void watchdog(void); |
50 | void watchdog(void); |
51 | void flush_sockets(void); |
51 | void flush_sockets(void); |
52 | void doeric_server(void); |
52 | void doeric_server(void); |
53 | /* lowlevel.c */ |
53 | /* lowlevel.c */ |
54 | void Socket_Flush (NewSocket *ns); |
|
|
55 | int GetInt_String(unsigned char *data); |
|
|
56 | short GetShort_String(unsigned char *data); |
|
|
57 | int SockList_ReadPacket(int fd, SockList *sl, int len); |
|
|
58 | void write_socket_buffer(NewSocket *ns); |
|
|
59 | void Write_To_Socket(NewSocket *ns, char *buf, int len); |
|
|
60 | void cs_write_string(NewSocket *ns, const char *buf, int len); |
|
|
61 | void Send_With_Handling(NewSocket *ns, SockList *msg); |
|
|
62 | void Write_String_To_Socket(NewSocket *ns, char *buf, int len); |
|
|
63 | void write_cs_stats(void); |
54 | void write_cs_stats(void); |
64 | /* request.c */ |
55 | /* request.c */ |
65 | void SetUp(char *buf, int len, NewSocket *ns); |
56 | void SetUp(char *buf, int len, client *ns); |
66 | void AddMeCmd(char *buf, int len, NewSocket *ns); |
57 | void AddMeCmd(char *buf, int len, client *ns); |
67 | void ToggleExtendedInfos(char *buf, int len, NewSocket *ns); |
58 | void ToggleExtendedInfos(char *buf, int len, client *ns); |
68 | void ToggleExtendedText (char *buf, int len, NewSocket *ns); |
59 | void ToggleExtendedText (char *buf, int len, client *ns); |
69 | void AskSmooth(char *buf, int len, NewSocket *ns); |
60 | void AskSmooth(char *buf, int len, client *ns); |
70 | void PlayerCmd(char *buf, int len, player *pl); |
61 | void PlayerCmd(char *buf, int len, player *pl); |
71 | void NewPlayerCmd(uint8 *buf, int len, player *pl); |
62 | void NewPlayerCmd(char *buf, int len, player *pl); |
72 | void ReplyCmd(char *buf, int len, player *pl); |
63 | void ReplyCmd(char *buf, int len, player *pl); |
73 | void VersionCmd(char *buf, int len, NewSocket *ns); |
64 | void VersionCmd(char *buf, int len, client *ns); |
74 | void SetSound(char *buf, int len, NewSocket *ns); |
65 | void SetSound(char *buf, int len, client *ns); |
75 | void MapRedrawCmd(char *buff, int len, player *pl); |
66 | void MapRedrawCmd(char *buff, int len, player *pl); |
76 | void ExtCmd(char *buff, int len, player *pl); |
67 | void ExtCmd(char *buff, int len, player *pl); |
77 | void MapInfoCmd(char *buff, int len, player *pl); |
68 | void MapInfoCmd(char *buff, int len, player *pl); |
78 | void MoveCmd(char *buf, int len, player *pl); |
69 | void MoveCmd(char *buf, int len, player *pl); |
79 | void send_query(NewSocket *ns, uint8 flags, char *text); |
70 | void send_query(client *ns, uint8 flags, char *text); |
80 | void esrv_update_stats(player *pl); |
71 | void esrv_update_stats(player *pl); |
81 | void esrv_new_player(player *pl, uint32 weight); |
72 | void esrv_new_player(player *pl, uint32 weight); |
82 | void esrv_send_animation(NewSocket *ns, short anim_num); |
73 | void esrv_send_animation(client *ns, short anim_num); |
83 | int getExtendedMapInfoSize(NewSocket *ns); |
74 | int getExtendedMapInfoSize(client *ns); |
|
|
75 | void draw_client_map(object *pl); |
84 | void draw_client_map1(object *pl); |
76 | void draw_client_map1(object *pl); |
85 | void draw_client_map(object *pl); |
|
|
86 | void send_plugin_custom_message(object *pl, char *buf); |
77 | void send_plugin_custom_message(object *pl, char *buf); |
87 | void send_skill_info(NewSocket *ns, char *params); |
78 | void send_skill_info(client *ns, char *params); |
88 | void send_spell_paths (NewSocket *ns, char *params); |
79 | void send_spell_paths (client *ns, char *params); |
89 | void esrv_update_spells(player *pl); |
80 | void esrv_update_spells(player *pl); |
90 | void esrv_remove_spell(player *pl, object *spell); |
81 | void esrv_remove_spell(player *pl, object *spell); |
91 | void esrv_add_spells(player *pl, object *spell); |
82 | void esrv_add_spells(player *pl, object *spell); |
92 | /* sounds.c */ |
83 | /* sounds.c */ |
93 | void play_sound_player_only(player *pl, short soundnum, sint8 x, sint8 y); |
84 | void play_sound_player_only(player *pl, short soundnum, sint8 x, sint8 y); |