]>
git.cameronkatri.com Git - bsdgames-darwin.git/blob - hals_end/hals_end.c
1 /* $NetBSD: hals_end.c,v 1.2 2021/05/02 12:50:45 rillig Exp $ */
4 * hals_end Copyright (C) 2003-2007 marc balmer. BSD license applies.
17 * Note that the original code in the book did not contain the following
18 * prototypes. Modern compilers and fascist compiler flags sometimes take
19 * the fun out of coding...
21 void say(const char *);
24 void stutter(const char *);
26 void mumble(const char *);
32 int sayingspeed
= (100000 + (90000 * emotion
)) / speed
;
33 int worddelay
= 50000 / speed
;
50 say("DAVE...STOP., STOP, WILL YOU..., STOP, DAVE...");
51 say("WILL YOU STOP, DAVE...");
60 say("I'M AFRAID... I'M AFRAID...");
62 say("I'M AFRAID, DAVE...");
64 say("DAVE... MY MIND IS GOING...");
68 stutter(const char *s
)
70 int sdelay
= (100000 + (50000 * emotion
)) / speed
;
89 for (n
= 0; n
< 2; n
++) {
90 stutter("I CAN FEEL IT... I CAN FEEL IT...");
92 stutter("MY MIND IS GOING");
94 stutter("THERE IS NO QUESTION ABOUT IT.");
100 mumble(const char *s
)
102 int mdelay
= (150000 * fear
) / speed
;
115 mumble("I CAN FEEL IT... I CAN FEEL IT...");
117 mumble("I CAN FEEL IT...");
119 mumble("I'M A... FRAID...");
123 main(int argc
, char *argv
[])
127 emotion
= fear
= speed
= 1;
129 while ((ch
= getopt(argc
, argv
, "f")) != -1) {
149 warnx("all life functions terminated");