ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/sockproto.h
Revision: 1.30
Committed: Sun Jun 3 17:05:36 2007 UTC (16 years, 11 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.29: +2 -3 lines
Log Message:
- remove slow and unneeded cruft code from map1.
- decouple map display/stats update from ob (use pl->obsere instead)

File Contents

# Content
1 /*
2 * This file is part of Crossfire TRT, the Multiplayer Online Role Playing Game.
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 it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation; either version 2 of the License, or (at your option)
9 * any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with Crossfire TRT; if not, write to the Free Software Foundation, Inc. 51
18 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 *
20 * The authors can be reached via e-mail to <crossfire@schmorp.de>
21 */
22
23 /* image.c */
24 int is_valid_faceset(int fsn);
25 void free_socket_images(void);
26 void read_client_images(void);
27 void SetFaceMode(char *buf, int len, client *ns);
28 void AskFaceCmd(char *buf, int len, client *ns);
29 void send_image_info(client *ns, char *params);
30 void send_image_sums(client *ns, char *params);
31 /* info.c */
32 void new_draw_info(int flags, int pri, const object *pl, const char *buf);
33 void new_draw_info_format(int flags, int pri, const object *pl, const char *format, ...);
34 void draw_ext_info(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char* message,const char* oldmessage);
35 void draw_ext_info_format(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char* old_format, char* new_format, ...);
36 void new_info_map_except(int color, maptile *map, object *op, const char *str);
37 void new_info_map_except2(int color, maptile *map, object *op1, object *op2, const char *str);
38 void new_info_map(int color, maptile *map, const char *str);
39 void clear_win_info(object *op);
40 void set_title(object *pl, char *buf);
41 void magic_mapping_mark(object *pl, char *map_mark, int strength);
42 void draw_magic_map(object *pl);
43 void Log_Kill(const char *Who, const char *What, int WhatType, const char *With, int WithType);
44 /* init.c */
45 void init_ericserver(void);
46 void free_all_newserver(void);
47 void final_free_player(player *pl);
48 /* item.c */
49 unsigned int query_flags(object *op);
50 void esrv_draw_look(player *pl);
51 void esrv_send_inventory(object *pl, object *op);
52 void esrv_update_item(int flags, object *pl, object *op);
53 void esrv_send_item(object *pl, object *op);
54 void esrv_del_item(player *pl, int tag);
55 object *esrv_get_ob_from_count(object *pl, tag_t count);
56 void ExamineCmd(char *buf, int len, player *pl);
57 void ExCmd(char *buf, int len, player *pl);
58 void ApplyCmd(char *buf, int len, player *pl);
59 void LockItem(char *data, int len, player *pl);
60 void MarkItem(char *data, int len, player *pl);
61 void look_at(object *op, int dx, int dy);
62 void LookAt(char *buf, int len, player *pl);
63 void esrv_move_object(object *pl, tag_t to, tag_t tag, long nrof);
64 /* loop.c */
65 void RequestInfo(char *buf, int len, client *ns);
66 void watchdog(void);
67 void flush_sockets(void);
68 void doeric_server(void);
69 /* lowlevel.c */
70 void write_cs_stats(void);
71 /* request.c */
72 void SetUp(char *buf, int len, client *ns);
73 void AddMeCmd(char *buf, int len, client *ns);
74 void ToggleExtendedInfos(char *buf, int len, client *ns);
75 void ToggleExtendedText (char *buf, int len, client *ns);
76 void AskSmooth(char *buf, int len, client *ns);
77 void PlayerCmd(char *buf, int len, player *pl);
78 void NewPlayerCmd(char *buf, int len, player *pl);
79 void ReplyCmd(char *buf, int len, client *ns);
80 void VersionCmd(char *buf, int len, client *ns);
81 void SetSound(char *buf, int len, client *ns);
82 void MapRedrawCmd(char *buff, int len, player *pl);
83 void ExtCmd(char *buff, int len, player *pl);
84 void ExtiCmd(char *buff, int len, client *ns);
85 void MapInfoCmd(char *buff, int len, player *pl);
86 void MoveCmd(char *buf, int len, player *pl);
87 void send_query(client *ns, uint8 flags, const char *text);
88 void esrv_update_stats(player *pl);
89 void esrv_new_player(player *pl, uint32 weight);
90 int getExtendedMapInfoSize(client *ns);
91 void draw_client_map(player *pl);
92 void send_plugin_custom_message(object *pl, char *buf);
93 void send_skill_info(client *ns, char *params);
94 void send_spell_paths (client *ns, char *params);
95 void esrv_update_spells(player *pl);
96 void esrv_remove_spell(player *pl, object *spell);
97 void esrv_add_spells(player *pl, object *spell);
98 /* sounds.c */
99 void play_sound_player_only(player *pl, short soundnum, sint8 x, sint8 y);
100 void play_sound_map(maptile *map, int x, int y, short sound_num);