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

Comparing deliantra/server/include/sproto.h (file contents):
Revision 1.28 by root, Fri Dec 15 19:59:20 2006 UTC vs.
Revision 1.53 by pippijn, Fri Mar 2 15:04:56 2007 UTC

1int same_party (partylist *a, partylist *b);
1/* alchemy.c */ 2/* alchemy.c */
2int need_identify (const object *obj); 3int need_identify (const object *obj);
3int apply_shop_mat (object *shop_mat, object *op); 4int apply_shop_mat (object *shop_mat, object *op);
4const char *cost_string_from_value(sint64 cost, int approx); 5const char *cost_string_from_value(sint64 cost, int approx);
5void pay_player (object *pl, sint64 amount); 6void pay_player (object *pl, sint64 amount);
87void apply_builder_wall(object *pl, object *material, short x, short y); 88void apply_builder_wall(object *pl, object *material, short x, short y);
88void apply_builder_item(object *pl, object *item, short x, short y); 89void apply_builder_item(object *pl, object *item, short x, short y);
89void apply_builder_remove(object *pl, int dir); 90void apply_builder_remove(object *pl, int dir);
90void apply_map_builder(object *pl, int dir); 91void apply_map_builder(object *pl, int dir);
91int adjust_sign_msg(object *pl, short x, short y, object *tmp); 92int adjust_sign_msg(object *pl, short x, short y, object *tmp);
92/* c_chat.c */
93int command_say(object *op, char *params);
94int command_me(object *op, char *params);
95int command_cointoss(object *op, char *params);
96int command_orcknuckle(object *op, char *params);
97int command_shout(object *op, char *params);
98int command_chat(object *op, char *params);
99int command_tell(object *op, char *params);
100int command_reply(object *op, char *params);
101int command_nod(object *op, char *params);
102int command_dance(object *op, char *params);
103int command_kiss(object *op, char *params);
104int command_bounce(object *op, char *params);
105int command_smile(object *op, char *params);
106int command_cackle(object *op, char *params);
107int command_laugh(object *op, char *params);
108int command_giggle(object *op, char *params);
109int command_shake(object *op, char *params);
110int command_puke(object *op, char *params);
111int command_growl(object *op, char *params);
112int command_scream(object *op, char *params);
113int command_sigh(object *op, char *params);
114int command_sulk(object *op, char *params);
115int command_hug(object *op, char *params);
116int command_cry(object *op, char *params);
117int command_poke(object *op, char *params);
118int command_accuse(object *op, char *params);
119int command_grin(object *op, char *params);
120int command_bow(object *op, char *params);
121int command_clap(object *op, char *params);
122int command_blush(object *op, char *params);
123int command_burp(object *op, char *params);
124int command_chuckle(object *op, char *params);
125int command_cough(object *op, char *params);
126int command_flip(object *op, char *params);
127int command_frown(object *op, char *params);
128int command_gasp(object *op, char *params);
129int command_glare(object *op, char *params);
130int command_groan(object *op, char *params);
131int command_hiccup(object *op, char *params);
132int command_lick(object *op, char *params);
133int command_pout(object *op, char *params);
134int command_shiver(object *op, char *params);
135int command_shrug(object *op, char *params);
136int command_slap(object *op, char *params);
137int command_smirk(object *op, char *params);
138int command_snap(object *op, char *params);
139int command_sneeze(object *op, char *params);
140int command_snicker(object *op, char *params);
141int command_sniff(object *op, char *params);
142int command_snore(object *op, char *params);
143int command_spit(object *op, char *params);
144int command_strut(object *op, char *params);
145int command_thank(object *op, char *params);
146int command_twiddle(object *op, char *params);
147int command_wave(object *op, char *params);
148int command_whistle(object *op, char *params);
149int command_wink(object *op, char *params);
150int command_yawn(object *op, char *params);
151int command_beg(object *op, char *params);
152int command_bleed(object *op, char *params);
153int command_cringe(object *op, char *params);
154int command_think(object *op, char *params);
155/* c_misc.c */ 93/* c_misc.c */
156void map_info(object *op, char *search);
157int command_body(object *op, char *params);
158int command_motd(object *op, char *params); 94int command_motd(object *op, char *params);
159int command_bug(object *op, char *params); 95int command_bug(object *op, char *params);
160void malloc_info(object *op); 96void malloc_info(object *op);
161void current_region_info(object *op);
162void current_map_info(object *op);
163int command_whereabouts(object *op, char *params); 97int command_whereabouts(object *op, char *params);
164int command_afk(object *op, char *params);
165int command_malloc(object *op, char *params); 98int command_malloc(object *op, char *params);
166int command_mapinfo(object *op, char *params);
167int command_whereami(object *op, char *params);
168int command_maps(object *op, char *params); 99int command_maps(object *op, char *params);
169int command_strings(object *op, char *params); 100int command_strings(object *op, char *params);
170int command_sstable(object *op, char *params); 101int command_sstable(object *op, char *params);
171int command_time(object *op, char *params); 102int command_time(object *op, char *params);
172int command_weather(object *op, char *params); 103int command_weather(object *op, char *params);
183int command_dumpmap(object *op, char *params); 114int command_dumpmap(object *op, char *params);
184int command_dumpallmaps(object *op, char *params); 115int command_dumpallmaps(object *op, char *params);
185int command_printlos(object *op, char *params); 116int command_printlos(object *op, char *params);
186int command_version(object *op, char *params); 117int command_version(object *op, char *params);
187void bug_report(const char *reportstring); 118void bug_report(const char *reportstring);
188int command_output_sync(object *op, char *params);
189int command_output_count(object *op, char *params);
190int command_listen(object *op, char *params);
191int command_statistics(object *pl, char *params); 119int command_statistics(object *pl, char *params);
192int command_fix_me(object *op, char *params); 120int command_fix_me(object *op, char *params);
193int command_players(object *op, char *paramss); 121int command_players(object *op, char *paramss);
194int command_logs(object *op, char *params); 122int command_logs(object *op, char *params);
195int command_applymode(object *op, char *params);
196int command_bowmode(object *op, char *params); 123int command_bowmode(object *op, char *params);
197int command_petmode(object *op, char *params);
198int command_showpets(object *op, char *params); 124int command_showpets(object *op, char *params);
199int command_usekeys(object *op, char *params);
200int command_resistances(object *op, char *params); 125int command_resistances(object *op, char *params);
201int command_help(object *op, char *params); 126int command_help(object *op, char *params);
202int onoff_value(const char *line); 127int onoff_value(const char *line);
203int command_quit(object *op, char *params); 128int command_quit(object *op, char *params);
204int command_real_quit(object *op, char *params); 129int command_real_quit(object *op, char *params);
205int command_explore(object *op, char *params);
206int command_sound(object *op, char *params);
207void receive_player_name(object *op, char k); 130void receive_player_name(object *op, char k);
208void receive_player_password(object *op, char k); 131void receive_player_password(object *op, char k);
209int explore_mode(void);
210int command_title(object *op, char *params); 132int command_title(object *op, char *params);
211int command_save(object *op, char *params);
212int command_peaceful(object *op, char *params);
213int command_wimpy(object *op, char *params);
214int command_brace(object *op, char *params);
215int command_style_map_info(object *op, char *params);
216int command_kill_pets(object *op, char *params); 133int command_kill_pets(object *op, char *params);
217int command_quests(object *pl, char *params); 134int command_quests(object *pl, char *params);
218/* c_move.c */ 135/* c_move.c */
219int command_east(object *op, char *params); 136int command_east(object *op, char *params);
220int command_north(object *op, char *params); 137int command_north(object *op, char *params);
225int command_southwest(object *op, char *params); 142int command_southwest(object *op, char *params);
226int command_west(object *op, char *params); 143int command_west(object *op, char *params);
227int command_stay(object *op, char *params); 144int command_stay(object *op, char *params);
228/* c_new.c */ 145/* c_new.c */
229void execute_newserver_command(object *pl, char *command); 146void execute_newserver_command(object *pl, char *command);
230int command_run(object *op, char *params);
231int command_run_stop(object *op, char *params);
232int command_fire(object *op, char *params);
233int command_fire_stop(object *op, char *params);
234int bad_command(object *op, char *params); 147int bad_command(object *op, char *params);
235/* c_object.c */ 148/* c_object.c */
236object *find_best_object_match(object *pl, const char *params); 149object *find_best_object_match(object *pl, const char *params);
237int command_build(object *pl, char *params); 150int command_build(object *pl, char *params);
238int command_uskill(object *pl, char *params); 151int command_uskill(object *pl, char *params);
249void drop(object *op, object *tmp); 162void drop(object *op, object *tmp);
250int command_dropall(object *op, char *params); 163int command_dropall(object *op, char *params);
251int command_drop(object *op, char *params); 164int command_drop(object *op, char *params);
252int command_examine(object *op, char *params); 165int command_examine(object *op, char *params);
253object *find_marked_object(object *op); 166object *find_marked_object(object *op);
254int command_mark(object *op, char *params);
255void examine_monster(object *op, object *tmp); 167void examine_monster(object *op, object *tmp);
256char *long_desc(object *tmp, object *pl); 168char *long_desc(object *tmp, object *pl);
257void examine(object *op, object *tmp); 169void examine(object *op, object *tmp);
258void inventory(object *op, object *inv); 170void inventory(object *op, object *inv);
259int command_pickup(object *op, char *params); 171int command_pickup(object *op, char *params);
283int command_loadtest(object *op, char *params); 195int command_loadtest(object *op, char *params);
284void do_wizard_hide(object *op, int silent_dm); 196void do_wizard_hide(object *op, int silent_dm);
285int command_hide(object *op, char *params); 197int command_hide(object *op, char *params);
286int command_setgod(object *op, char *params); 198int command_setgod(object *op, char *params);
287int command_banish(object *op, char *params); 199int command_banish(object *op, char *params);
288int command_kick(object *op, char *params);
289int command_save_overlay(object *op, char *params); 200int command_save_overlay(object *op, char *params);
290int command_toggle_shout(object *op, char *params); 201int command_toggle_shout(object *op, char *params);
291int command_shutdown(object *op, char *params);
292int command_freeze(object *op, char *params); 202int command_freeze(object *op, char *params);
293int command_arrest(object *op, char *params); 203int command_arrest(object *op, char *params);
294int command_summon(object *op, char *params); 204int command_summon(object *op, char *params);
295int command_teleport(object *op, char *params); 205int command_teleport(object *op, char *params);
296int command_create(object *op, char *params); 206int command_create(object *op, char *params);
297int command_inventory(object *op, char *params); 207int command_inventory(object *op, char *params);
298int command_skills(object *op, char *params); 208int command_skills(object *op, char *params);
299int command_dump(object *op, char *params); 209int command_dump(object *op, char *params);
300int command_mon_aggr(object *op, char *params);
301int command_possess(object *op, char *params);
302int command_patch(object *op, char *params); 210int command_patch(object *op, char *params);
303int command_remove(object *op, char *params); 211int command_remove(object *op, char *params);
304int command_free(object *op, char *params); 212int command_free(object *op, char *params);
305int command_addexp(object *op, char *params); 213int command_addexp(object *op, char *params);
306int command_speed(object *op, char *params); 214int command_speed(object *op, char *params);
412void rec_sighup(int i); 320void rec_sighup(int i);
413void rec_sigquit(int i); 321void rec_sigquit(int i);
414void rec_sigpipe(int i); 322void rec_sigpipe(int i);
415void rec_sigbus(int i); 323void rec_sigbus(int i);
416void rec_sigterm(int i); 324void rec_sigterm(int i);
417void fatal_signal(int make_core, int close_sockets);
418void init_signals(void); 325void init_signals(void);
419void init_races(void); 326void init_races(void);
420void dump_races(void); 327void dump_races(void);
421void add_to_racelist(const char *race_name, object *op); 328void add_to_racelist(const char *race_name, object *op);
422racelink *get_racelist(void); 329racelink *get_racelist(void);
423racelink *find_racelink(const char *name); 330racelink *find_racelink(const char *name);
424/* login.c */ 331/* login.c */
425void emergency_save(int flag);
426void delete_character(const char *name, int); 332void delete_character(const char *name);
427int verify_player(const char *name, char *password); 333int verify_player(const char *name, char *password);
428int check_name(player *me, const char *name); 334int check_name(player *me, const char *name);
429int create_savedir_if_needed(char *savedir); 335int create_savedir_if_needed(char *savedir);
430void destroy_object(object *op); 336void destroy_object(object *op);
431int save_player(object *op, int flag);
432void copy_file(const char *filename, FILE *fpout); 337void copy_file(const char *filename, FILE *fpout);
433void check_login(object *op);
434/* main.c */ 338/* main.c */
435void server_tick (); 339void server_tick ();
436void version(object *op); 340void version(object *op);
437void info_keys(object *op); 341void info_keys(object *op);
438void start_info(object *op);
439char *crypt_string(char *str, char *salt); 342char *crypt_string(char *str, char *salt);
440int check_password(char *typed, char *crypted); 343int check_password(char *typed, char *crypted);
441void enter_player_savebed(object *op); 344void enter_player_savebed(object *op);
442void leave_map(object *op); 345void leave_map(object *op);
443void set_map_timeout(maptile *oldmap); 346void set_map_timeout(maptile *oldmap);
444char *clean_path(const char *file); 347char *clean_path(const char *file);
445char *unclean_path(const char *src); 348char *unclean_path(const char *src);
446void enter_exit(object *op, object *exit_ob); 349void enter_exit(object *op, object *exit_ob);
447void process_events(); 350void process_events();
448void clean_tmp_files(void); 351void clean_tmp_files(void);
449void cleanup(void);
450void leave(player *pl,int draw_exit); 352void leave(player *pl,int draw_exit);
451int forbid_play(void); 353int forbid_play(void);
452void do_specials(void); 354void do_specials(void);
453int main(int argc, char **argv); 355int main(int argc, char **argv);
454/* monster.c */ 356/* monster.c */
522player *find_player_partial_name(const char *plname); 424player *find_player_partial_name(const char *plname);
523void display_motd(const object *op); 425void display_motd(const object *op);
524void send_rules(const object *op); 426void send_rules(const object *op);
525void send_news(const object *op); 427void send_news(const object *op);
526int playername_ok(const char *cp); 428int playername_ok(const char *cp);
527int add_player(client *ns);
528archetype *get_player_archetype(archetype *at); 429archetype *get_player_archetype(archetype *at);
529object *get_nearest_player(object *mon); 430object *get_nearest_player(object *mon);
530int path_to_player(object *mon, object *pl, unsigned mindiff); 431int path_to_player(object *mon, object *pl, unsigned mindiff);
531void give_initial_items(object *pl, treasurelist *items); 432void give_initial_items(object *pl, treasurelist *items);
532void get_name(object *op); 433void get_name(object *op);
533void get_password(object *op); 434void get_password(object *op);
534void play_again(object *op); 435void play_again(object *op);
535int receive_play_again(object *op, char key); 436int receive_play_again(object *op, char key);
536void confirm_password(object *op); 437void confirm_password(object *op);
537void get_party_password(object *op, partylist *party); 438void get_party_password(object *op, partylist *party);
538int roll_stat(void);
539void roll_stats(object *op);
540void Roll_Again(object *op); 439void Roll_Again(object *op);
541void Swap_Stat(object *op, int Swap_Second); 440void Swap_Stat(object *op, int Swap_Second);
542int key_roll_stat(object *op, char key); 441int key_roll_stat(object *op, char key);
543int key_change_class(object *op, char key); 442int key_change_class(object *op, char key);
544int key_confirm_quit(object *op, char key); 443int key_confirm_quit(object *op, char key);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines