|
|
1 | /* |
|
|
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
|
|
3 | * |
|
|
4 | * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
|
|
5 | * |
|
|
6 | * Deliantra is free software: you can redistribute it and/or modify it under |
|
|
7 | * the terms of the Affero GNU General Public License as published by the |
|
|
8 | * Free Software Foundation, either version 3 of the License, or (at your |
|
|
9 | * 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 Affero GNU General Public License |
|
|
17 | * and the GNU General Public License along with this program. If not, see |
|
|
18 | * <http://www.gnu.org/licenses/>. |
|
|
19 | * |
|
|
20 | * The authors can be reached via e-mail to <support@deliantra.net> |
|
|
21 | */ |
|
|
22 | |
1 | /* image.c */ |
23 | /* image.c */ |
2 | int is_valid_faceset(int fsn); |
24 | int is_valid_faceset(int fsn); |
3 | void free_socket_images(void); |
25 | void free_socket_images(); |
4 | void read_client_images(void); |
26 | void read_client_images(); |
5 | void SetFaceMode(char *buf, int len, client *ns); |
27 | void SetFaceMode(char *buf, int len, client *ns); |
6 | void SendFaceCmd(char *buff, int len, client *ns); |
28 | void AskFaceCmd(char *buf, int len, client *ns); |
7 | void send_image_info(client *ns, char *params); |
29 | void send_image_info(client *ns, char *params); |
8 | void send_image_sums(client *ns, char *params); |
30 | void send_image_sums(client *ns, char *params); |
9 | /* info.c */ |
31 | /* info.c */ |
10 | void flush_output_element(const object *pl, Output_Buf *outputs); |
|
|
11 | void new_draw_info(int flags, int pri, const object *pl, const char *buf); |
32 | void new_draw_info(int flags, int pri, const object *pl, const char *buf); |
12 | void new_draw_info_format(int flags, int pri, const object *pl, const char *format, ...); |
33 | void new_draw_info_format(int flags, int pri, const object *pl, const char *format, ...); |
13 | 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_format(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char* old_format, char* new_format, ...); |
|
|
15 | void new_info_map_except(int color, maptile *map, object *op, const char *str); |
34 | void new_info_map_except(int color, maptile *map, object *op, const char *str); |
16 | void new_info_map_except2(int color, maptile *map, object *op1, object *op2, const char *str); |
|
|
17 | void new_info_map(int color, maptile *map, const char *str); |
35 | void new_info_map(int color, maptile *map, const char *str); |
18 | void clear_win_info(object *op); |
|
|
19 | void rangetostring(object *pl, char *obuf); |
|
|
20 | void set_title(object *pl, char *buf); |
36 | void set_title(object *pl, char *buf); |
21 | void magic_mapping_mark(object *pl, char *map_mark, int strength); |
|
|
22 | void draw_magic_map(object *pl); |
37 | void draw_magic_map(object *pl); |
23 | void Log_Kill(const char *Who, const char *What, int WhatType, const char *With, int WithType); |
|
|
24 | /* init.c */ |
38 | /* init.c */ |
25 | void init_ericserver(void); |
39 | void init_ericserver(); |
26 | void free_all_newserver(void); |
40 | void free_all_newserver(); |
27 | void final_free_player(player *pl); |
41 | void final_free_player(player *pl); |
28 | /* item.c */ |
42 | /* item.c */ |
29 | unsigned int query_flags(object *op); |
|
|
30 | void esrv_draw_look(object *pl); |
43 | void esrv_draw_look(player *pl); |
31 | void esrv_send_inventory(object *pl, object *op); |
44 | void esrv_send_inventory(object *pl, object *op); |
32 | void esrv_update_item(int flags, object *pl, object *op); |
45 | void esrv_update_item(int flags, object *pl, object *op); |
33 | void esrv_send_item(object *pl, object *op); |
46 | void esrv_send_item(object *pl, object *op); |
34 | void esrv_del_item(player *pl, int tag); |
47 | void esrv_del_item(player *pl, int tag); |
35 | object *esrv_get_ob_from_count(object *pl, tag_t count); |
|
|
36 | void ExamineCmd(char *buf, int len, player *pl); |
48 | void ExamineCmd(char *buf, int len, player *pl); |
|
|
49 | void ExCmd(char *buf, int len, player *pl); |
37 | void ApplyCmd(char *buf, int len, player *pl); |
50 | void ApplyCmd(char *buf, int len, player *pl); |
38 | void LockItem(char *data, int len, player *pl); |
51 | void LockItem(char *data, int len, player *pl); |
39 | void MarkItem(char *data, int len, player *pl); |
52 | void MarkItem(char *data, int len, player *pl); |
40 | void look_at(object *op, int dx, int dy); |
|
|
41 | void LookAt(char *buf, int len, player *pl); |
53 | void LookAt(char *buf, int len, player *pl); |
42 | void esrv_move_object(object *pl, tag_t to, tag_t tag, long nrof); |
54 | void esrv_move_object(object *pl, tag_t to, tag_t tag, long nrof); |
43 | /* loop.c */ |
55 | /* loop.c */ |
44 | void RequestInfo(char *buf, int len, client *ns); |
56 | void RequestInfo(char *buf, int len, client *ns); |
45 | void watchdog(void); |
57 | void watchdog(); |
46 | void flush_sockets(void); |
|
|
47 | void doeric_server(void); |
|
|
48 | /* lowlevel.c */ |
58 | /* lowlevel.c */ |
49 | void write_cs_stats(void); |
59 | void write_cs_stats(); |
50 | /* request.c */ |
60 | /* request.c */ |
51 | void SetUp(char *buf, int len, client *ns); |
61 | void SetUp(char *buf, int len, client *ns); |
52 | void AddMeCmd(char *buf, int len, client *ns); |
62 | void AddMeCmd(char *buf, int len, client *ns); |
53 | void ToggleExtendedInfos(char *buf, int len, client *ns); |
63 | void ToggleExtendedInfos(char *buf, int len, client *ns); |
54 | void ToggleExtendedText (char *buf, int len, client *ns); |
64 | void ToggleExtendedText (char *buf, int len, client *ns); |
… | |
… | |
61 | void MapRedrawCmd(char *buff, int len, player *pl); |
71 | void MapRedrawCmd(char *buff, int len, player *pl); |
62 | void ExtCmd(char *buff, int len, player *pl); |
72 | void ExtCmd(char *buff, int len, player *pl); |
63 | void ExtiCmd(char *buff, int len, client *ns); |
73 | void ExtiCmd(char *buff, int len, client *ns); |
64 | void MapInfoCmd(char *buff, int len, player *pl); |
74 | void MapInfoCmd(char *buff, int len, player *pl); |
65 | void MoveCmd(char *buf, int len, player *pl); |
75 | void MoveCmd(char *buf, int len, player *pl); |
66 | void send_query(client *ns, uint8 flags, char *text); |
76 | void send_query(client *ns, uint8 flags, const char *text); |
67 | void esrv_update_stats(player *pl); |
77 | void esrv_update_stats(player *pl); |
68 | void esrv_new_player(player *pl, uint32 weight); |
78 | void esrv_new_player(player *pl); |
69 | int getExtendedMapInfoSize(client *ns); |
79 | int getExtendedMapInfoSize(client *ns); |
70 | void draw_client_map(object *pl); |
80 | void draw_client_map(player *pl); |
71 | void draw_client_map1(object *pl); |
|
|
72 | void send_plugin_custom_message(object *pl, char *buf); |
|
|
73 | void send_skill_info(client *ns, char *params); |
|
|
74 | void send_spell_paths (client *ns, char *params); |
|
|
75 | void esrv_update_spells(player *pl); |
81 | void esrv_update_spells(player *pl); |
76 | void esrv_remove_spell(player *pl, object *spell); |
82 | void esrv_remove_spell(player *pl, object *spell); |
77 | void esrv_add_spells(player *pl, object *spell); |
83 | void esrv_add_spells(player *pl, object *spell); |
78 | /* sounds.c */ |
|
|
79 | void play_sound_player_only(player *pl, short soundnum, sint8 x, sint8 y); |
|
|
80 | void play_sound_map(maptile *map, int x, int y, short sound_num); |
|
|