ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/sockproto.h
Revision: 1.32
Committed: Sun Jul 1 05:00:18 2007 UTC (16 years, 11 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.31: +11 -12 lines
Log Message:
- upgrade crossfire trt to the GPL version 3 (hopefully correctly).
- add a single file covered by the GNU Affero General Public License
  (which is not yet released, so I used the current draft, which is
  legally a bit wavy, but its likely better than nothing as it expresses
  direct intent by the authors, and we can upgrade as soon as it has been
  released).
  * this should ensure availability of source code for the server at least
    and hopefully also archetypes and maps even when modified versions
    are not being distributed, in accordance of section 13 of the agplv3.

File Contents

# Content
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
22 /* image.c */
23 int is_valid_faceset(int fsn);
24 void free_socket_images(void);
25 void read_client_images(void);
26 void SetFaceMode(char *buf, int len, client *ns);
27 void AskFaceCmd(char *buf, int len, client *ns);
28 void send_image_info(client *ns, char *params);
29 void send_image_sums(client *ns, char *params);
30 /* info.c */
31 void new_draw_info(int flags, int pri, const object *pl, const char *buf);
32 void new_draw_info_format(int flags, int pri, const object *pl, const char *format, ...);
33 void draw_ext_info(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char* message,const char* oldmessage);
34 void draw_ext_info_format(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char* old_format, char* new_format, ...);
35 void new_info_map_except(int color, maptile *map, object *op, const char *str);
36 void new_info_map_except2(int color, maptile *map, object *op1, object *op2, const char *str);
37 void new_info_map(int color, maptile *map, const char *str);
38 void set_title(object *pl, char *buf);
39 void magic_mapping_mark(object *pl, char *map_mark, int strength);
40 void draw_magic_map(object *pl);
41 void Log_Kill(const char *Who, const char *What, int WhatType, const char *With, int WithType);
42 /* init.c */
43 void init_ericserver(void);
44 void free_all_newserver(void);
45 void final_free_player(player *pl);
46 /* item.c */
47 unsigned int query_flags(object *op);
48 void esrv_draw_look(player *pl);
49 void esrv_send_inventory(object *pl, object *op);
50 void esrv_update_item(int flags, object *pl, object *op);
51 void esrv_send_item(object *pl, object *op);
52 void esrv_del_item(player *pl, int tag);
53 object *esrv_get_ob_from_count(object *pl, tag_t count);
54 void ExamineCmd(char *buf, int len, player *pl);
55 void ExCmd(char *buf, int len, player *pl);
56 void ApplyCmd(char *buf, int len, player *pl);
57 void LockItem(char *data, int len, player *pl);
58 void MarkItem(char *data, int len, player *pl);
59 void LookAt(char *buf, int len, player *pl);
60 void esrv_move_object(object *pl, tag_t to, tag_t tag, long nrof);
61 /* loop.c */
62 void RequestInfo(char *buf, int len, client *ns);
63 void watchdog(void);
64 void flush_sockets(void);
65 void doeric_server(void);
66 /* lowlevel.c */
67 void write_cs_stats(void);
68 /* request.c */
69 void SetUp(char *buf, int len, client *ns);
70 void AddMeCmd(char *buf, int len, client *ns);
71 void ToggleExtendedInfos(char *buf, int len, client *ns);
72 void ToggleExtendedText (char *buf, int len, client *ns);
73 void AskSmooth(char *buf, int len, client *ns);
74 void PlayerCmd(char *buf, int len, player *pl);
75 void NewPlayerCmd(char *buf, int len, player *pl);
76 void ReplyCmd(char *buf, int len, client *ns);
77 void VersionCmd(char *buf, int len, client *ns);
78 void SetSound(char *buf, int len, client *ns);
79 void MapRedrawCmd(char *buff, int len, player *pl);
80 void ExtCmd(char *buff, int len, player *pl);
81 void ExtiCmd(char *buff, int len, client *ns);
82 void MapInfoCmd(char *buff, int len, player *pl);
83 void MoveCmd(char *buf, int len, player *pl);
84 void send_query(client *ns, uint8 flags, const char *text);
85 void esrv_update_stats(player *pl);
86 void esrv_new_player(player *pl, uint32 weight);
87 int getExtendedMapInfoSize(client *ns);
88 void draw_client_map(player *pl);
89 void send_plugin_custom_message(object *pl, char *buf);
90 void send_skill_info(client *ns, char *params);
91 void send_spell_paths (client *ns, char *params);
92 void esrv_update_spells(player *pl);
93 void esrv_remove_spell(player *pl, object *spell);
94 void esrv_add_spells(player *pl, object *spell);
95 /* sounds.c */
96 void play_sound_player_only(player *pl, short soundnum, sint8 x, sint8 y);
97 void play_sound_map(maptile *map, int x, int y, short sound_num);