ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/sockproto.h
Revision: 1.28
Committed: Mon Apr 30 04:25:30 2007 UTC (17 years ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-2_1
Changes since 1.27: +0 -1 lines
Log Message:
This is the first rough cut of the skill use system (use the STABLE tag).

Details will likely change, and combat skills do not work very well, but
it works quite well.

Players no longer have a shoottype or range slots, instead, each player
has these members:

   combat_skill/combat_ob  the currently selected skill (and weapon)
                           for direct attacks.
   ranged_skill/ranged_ob  the currently selected ranged skill (and
                           bow/spell/item)
   golem                   the currently-controlled golem, if any.

File Contents

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