ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/sockproto.h
(Generate patch)

Comparing deliantra/server/include/sockproto.h (file contents):
Revision 1.12 by root, Thu Dec 14 01:21:58 2006 UTC vs.
Revision 1.32 by root, Sun Jul 1 05:00:18 2007 UTC

1/*
2 * This file is part of Crossfire TRT, the Roguelike Realtime MORPG.
3 *
4 * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team
5 *
6 * Crossfire TRT is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 *
19 * The authors can be reached via e-mail to <crossfire@schmorp.de>
20 */
21
1/* image.c */ 22/* image.c */
2int is_valid_faceset(int fsn); 23int is_valid_faceset(int fsn);
3void free_socket_images(void); 24void free_socket_images(void);
4void read_client_images(void); 25void read_client_images(void);
5void SetFaceMode(char *buf, int len, NewSocket *ns); 26void SetFaceMode(char *buf, int len, client *ns);
6void SendFaceCmd(char *buff, int len, NewSocket *ns); 27void AskFaceCmd(char *buf, int len, client *ns);
7void esrv_send_face(NewSocket *ns, short face_num, int nocache);
8void send_image_info(NewSocket *ns, char *params); 28void send_image_info(client *ns, char *params);
9void send_image_sums(NewSocket *ns, char *params); 29void send_image_sums(client *ns, char *params);
10/* info.c */ 30/* info.c */
11void flush_output_element(const object *pl, Output_Buf *outputs);
12void new_draw_info(int flags, int pri, const object *pl, const char *buf); 31void new_draw_info(int flags, int pri, const object *pl, const char *buf);
13void new_draw_info_format(int flags, int pri, const object *pl, const char *format, ...); 32void new_draw_info_format(int flags, int pri, const object *pl, const char *format, ...);
14void draw_ext_info(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char* message,const char* oldmessage); 33void draw_ext_info(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char* message,const char* oldmessage);
15void draw_ext_info_format(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char* old_format, char* new_format, ...); 34void draw_ext_info_format(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char* old_format, char* new_format, ...);
16void new_info_map_except(int color, maptile *map, object *op, const char *str); 35void new_info_map_except(int color, maptile *map, object *op, const char *str);
17void new_info_map_except2(int color, maptile *map, object *op1, object *op2, const char *str); 36void new_info_map_except2(int color, maptile *map, object *op1, object *op2, const char *str);
18void new_info_map(int color, maptile *map, const char *str); 37void new_info_map(int color, maptile *map, const char *str);
19void clear_win_info(object *op);
20void rangetostring(object *pl, char *obuf);
21void set_title(object *pl, char *buf); 38void set_title(object *pl, char *buf);
22void magic_mapping_mark(object *pl, char *map_mark, int strength); 39void magic_mapping_mark(object *pl, char *map_mark, int strength);
23void draw_magic_map(object *pl); 40void draw_magic_map(object *pl);
24void Log_Kill(const char *Who, const char *What, int WhatType, const char *With, int WithType); 41void Log_Kill(const char *Who, const char *What, int WhatType, const char *With, int WithType);
25/* init.c */ 42/* init.c */
26void InitConnection(NewSocket *ns, const char *from_ip);
27void init_ericserver(void); 43void init_ericserver(void);
28void free_all_newserver(void); 44void free_all_newserver(void);
29void free_newsocket(NewSocket *ns);
30void final_free_player(player *pl); 45void final_free_player(player *pl);
31/* item.c */ 46/* item.c */
32unsigned int query_flags(object *op); 47unsigned int query_flags(object *op);
33void esrv_draw_look(object *pl); 48void esrv_draw_look(player *pl);
34void esrv_send_inventory(object *pl, object *op); 49void esrv_send_inventory(object *pl, object *op);
35void esrv_update_item(int flags, object *pl, object *op); 50void esrv_update_item(int flags, object *pl, object *op);
36void esrv_send_item(object *pl, object *op); 51void esrv_send_item(object *pl, object *op);
37void esrv_del_item(player *pl, int tag); 52void esrv_del_item(player *pl, int tag);
38object *esrv_get_ob_from_count(object *pl, tag_t count); 53object *esrv_get_ob_from_count(object *pl, tag_t count);
39void ExamineCmd(char *buf, int len, player *pl); 54void ExamineCmd(char *buf, int len, player *pl);
55void ExCmd(char *buf, int len, player *pl);
40void ApplyCmd(char *buf, int len, player *pl); 56void ApplyCmd(char *buf, int len, player *pl);
41void LockItem(uint8 *data, int len, player *pl); 57void LockItem(char *data, int len, player *pl);
42void MarkItem(uint8 *data, int len, player *pl); 58void MarkItem(char *data, int len, player *pl);
43void look_at(object *op, int dx, int dy);
44void LookAt(char *buf, int len, player *pl); 59void LookAt(char *buf, int len, player *pl);
45void esrv_move_object(object *pl, tag_t to, tag_t tag, long nrof); 60void esrv_move_object(object *pl, tag_t to, tag_t tag, long nrof);
46/* loop.c */ 61/* loop.c */
47void RequestInfo(char *buf, int len, NewSocket *ns); 62void RequestInfo(char *buf, int len, client *ns);
48void Handle_Oldsocket(NewSocket *ns);
49void HandleClient(NewSocket *ns, player *pl);
50void watchdog(void); 63void watchdog(void);
51void flush_sockets(void); 64void flush_sockets(void);
52void doeric_server(void); 65void doeric_server(void);
53/* lowlevel.c */ 66/* lowlevel.c */
54void Socket_Flush (NewSocket *ns);
55void write_socket_buffer(NewSocket *ns);
56void Write_To_Socket(NewSocket *ns, char *buf, int len);
57void Send_With_Handling(NewSocket *ns, packet *msg);
58void write_cs_stats(void); 67void write_cs_stats(void);
59/* request.c */ 68/* request.c */
60void SetUp(char *buf, int len, NewSocket *ns); 69void SetUp(char *buf, int len, client *ns);
61void AddMeCmd(char *buf, int len, NewSocket *ns); 70void AddMeCmd(char *buf, int len, client *ns);
62void ToggleExtendedInfos(char *buf, int len, NewSocket *ns); 71void ToggleExtendedInfos(char *buf, int len, client *ns);
63void ToggleExtendedText (char *buf, int len, NewSocket *ns); 72void ToggleExtendedText (char *buf, int len, client *ns);
64void AskSmooth(char *buf, int len, NewSocket *ns); 73void AskSmooth(char *buf, int len, client *ns);
65void PlayerCmd(char *buf, int len, player *pl); 74void PlayerCmd(char *buf, int len, player *pl);
66void NewPlayerCmd(uint8 *buf, int len, player *pl);
67void ReplyCmd(char *buf, int len, player *pl); 75void NewPlayerCmd(char *buf, int len, player *pl);
76void ReplyCmd(char *buf, int len, client *ns);
68void VersionCmd(char *buf, int len, NewSocket *ns); 77void VersionCmd(char *buf, int len, client *ns);
69void SetSound(char *buf, int len, NewSocket *ns); 78void SetSound(char *buf, int len, client *ns);
70void MapRedrawCmd(char *buff, int len, player *pl); 79void MapRedrawCmd(char *buff, int len, player *pl);
71void ExtCmd(char *buff, int len, player *pl); 80void ExtCmd(char *buff, int len, player *pl);
81void ExtiCmd(char *buff, int len, client *ns);
72void MapInfoCmd(char *buff, int len, player *pl); 82void MapInfoCmd(char *buff, int len, player *pl);
73void MoveCmd(char *buf, int len, player *pl); 83void MoveCmd(char *buf, int len, player *pl);
74void send_query(NewSocket *ns, uint8 flags, char *text); 84void send_query(client *ns, uint8 flags, const char *text);
75void esrv_update_stats(player *pl); 85void esrv_update_stats(player *pl);
76void esrv_new_player(player *pl, uint32 weight); 86void esrv_new_player(player *pl, uint32 weight);
77void esrv_send_animation(NewSocket *ns, short anim_num);
78int getExtendedMapInfoSize(NewSocket *ns); 87int getExtendedMapInfoSize(client *ns);
79void draw_client_map1(object *pl);
80void draw_client_map(object *pl); 88void draw_client_map(player *pl);
81void send_plugin_custom_message(object *pl, char *buf); 89void send_plugin_custom_message(object *pl, char *buf);
82void send_skill_info(NewSocket *ns, char *params); 90void send_skill_info(client *ns, char *params);
83void send_spell_paths (NewSocket *ns, char *params); 91void send_spell_paths (client *ns, char *params);
84void esrv_update_spells(player *pl); 92void esrv_update_spells(player *pl);
85void esrv_remove_spell(player *pl, object *spell); 93void esrv_remove_spell(player *pl, object *spell);
86void esrv_add_spells(player *pl, object *spell); 94void esrv_add_spells(player *pl, object *spell);
87/* sounds.c */ 95/* sounds.c */
88void play_sound_player_only(player *pl, short soundnum, sint8 x, sint8 y); 96void play_sound_player_only(player *pl, short soundnum, sint8 x, sint8 y);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines