summaryrefslogtreecommitdiffstats
path: root/hunt
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2014-03-29 21:43:46 +0000
committerdholland <dholland@NetBSD.org>2014-03-29 21:43:46 +0000
commit08f9fa6c4de91d3042c5cd9d369b1e0c8c8eb080 (patch)
tree02b3b9e545df43c3b28561074a484dba473e6c52 /hunt
parentfaebb3b149256611b59a75489d5d8d0b015494ef (diff)
downloadbsdgames-darwin-08f9fa6c4de91d3042c5cd9d369b1e0c8c8eb080.tar.gz
bsdgames-darwin-08f9fa6c4de91d3042c5cd9d369b1e0c8c8eb080.tar.zst
bsdgames-darwin-08f9fa6c4de91d3042c5cd9d369b1e0c8c8eb080.zip
Group function declarations by which source file they come from, and
delete several that don't actually exist.
Diffstat (limited to 'hunt')
-rw-r--r--hunt/huntd/hunt.h64
1 files changed, 36 insertions, 28 deletions
diff --git a/hunt/huntd/hunt.h b/hunt/huntd/hunt.h
index bf0e4f7c..557884bf 100644
--- a/hunt/huntd/hunt.h
+++ b/hunt/huntd/hunt.h
@@ -1,4 +1,4 @@
-/* $NetBSD: hunt.h,v 1.24 2014/03/29 21:33:41 dholland Exp $ */
+/* $NetBSD: hunt.h,v 1.25 2014/03/29 21:43:46 dholland Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
@@ -167,41 +167,49 @@ extern PLAYER Monitor[MAXMON], *End_monitor;
* function types
*/
-void add_shot(int, int, int, char, int, PLAYER *, int, char);
+/* in answer.c */
int answer(void);
-void ce(PLAYER *);
-void cgoto(PLAYER *, int, int);
+int rand_dir(void);
+
+/* in draw.c */
+void drawmaze(PLAYER *);
+void look(PLAYER *);
void check(PLAYER *, int, int);
+void showstat(PLAYER *);
+void drawplayer(PLAYER *, bool);
+void message(PLAYER *, const char *);
+
+/* in driver.c */
void checkdam(PLAYER *, PLAYER *, IDENT *, int, char);
-void clearwalls(void);
-void clear_eol(void);
-void clrscr(PLAYER *);
+int rand_num(int);
+__dead void cleanup(int);
+
+/* in execute.c */
+void mon_execute(PLAYER *); /* ifdef MONITOR only */
+void execute(PLAYER *);
+void add_shot(int, int, int, char, int, PLAYER *, int, char);
BULLET *create_shot(int, int, int, char, int, int, PLAYER *,
IDENT *, int, char);
-void drawmaze(PLAYER *);
-void drawplayer(PLAYER *, bool);
-void execute(PLAYER *);
-void faketalk(void);
-void fixshots(int, int, char);
-void get_local_name(const char *);
-int get_remote_name(char *);
-BULLET *is_bullet(int, int);
-void look(PLAYER *);
+
+/* in expl.c */
+void showexpl(int, int, char);
+void rollexpl(void);
+void clearwalls(void);
+
+/* in makemaze.c */
void makemaze(void);
-void message(PLAYER *, const char *);
-void mon_execute(PLAYER *);
+
+/* in shots.c */
void moveshots(void);
-void open_ctl(void);
+PLAYER *play_at(int, int);
bool opposite(int, char);
+BULLET *is_bullet(int, int);
+void fixshots(int, int, char);
+
+/* in terminal.c */
+void cgoto(PLAYER *, int, int);
void outch(PLAYER *, int);
void outstr(PLAYER *, const char *, int);
-PLAYER *play_at(int, int);
-void put_ch(char);
-void put_str(char *);
-int rand_dir(void);
-int rand_num(int);
-void rollexpl(void);
+void clrscr(PLAYER *);
+void ce(PLAYER *);
void sendcom(PLAYER *, int, ...);
-void showexpl(int, int, char);
-void showstat(PLAYER *);
-void cleanup(int) __dead;