6 /* Limit visibility of ugly globals. Eventually these should go away. */
7 extern long WD1, WD1X, WD2, WD2X;
9 static long SPK; /* This should go away too */
12 * Action handlers. Eventually we'll do lookup through a method table
13 * that calls these. Absolutely nothing like the original FORTRAN.
16 static int fill(token_t verb, token_t);
18 static int attack(FILE *input, long verb, long obj)
19 /* Attack. Assume target if unambiguous. "Throw" also links here.
20 * Attackable objects fall into two categories: enemies (snake,
21 * dwarf, etc.) and others (bird, clam, machine). Ambiguous if 2
22 * enemies, or no enemies but 2 others. */
24 int spk = ACTSPK[verb];
25 int i = ATDWRF(game.loc);
29 if (HERE(SNAKE))obj=obj*NOBJECTS+SNAKE;
30 if (AT(DRAGON) && game.prop[DRAGON] == 0)obj=obj*NOBJECTS+DRAGON;
31 if (AT(TROLL))obj=obj*NOBJECTS+TROLL;
32 if (AT(OGRE))obj=obj*NOBJECTS+OGRE;
33 if (HERE(BEAR) && game.prop[BEAR] == 0)obj=obj*NOBJECTS+BEAR;
34 if (obj > NOBJECTS) return(8000);
36 /* Can't attack bird or machine by throwing axe. */
37 if (HERE(BIRD) && verb != THROW)obj=BIRD;
38 if (HERE(VEND) && verb != THROW)obj=obj*NOBJECTS+VEND;
39 /* Clam and oyster both treated as clam for intransitive case;
41 if (HERE(CLAM) || HERE(OYSTER))obj=NOBJECTS*obj+CLAM;
42 if (obj > NOBJECTS) return(8000);
57 PSPEAK(VEND,game.prop[VEND]+2);
58 game.prop[VEND]=3-game.prop[VEND];
63 if (obj == CLAM || obj == OYSTER)spk=150;
64 if (obj == SNAKE)spk=46;
65 if (obj == DWARF)spk=49;
66 if (obj == DWARF && game.closed) return(19000);
67 if (obj == DRAGON)spk=167;
68 if (obj == TROLL)spk=157;
69 if (obj == OGRE)spk=203;
70 if (obj == OGRE && i > 0) {
75 for (i=1; i < PIRATE; i++) {
76 if (game.dloc[i] == game.loc) {
86 if (obj == BEAR)spk=165+(game.prop[BEAR]+1)/2;
87 if (obj != DRAGON || game.prop[DRAGON] != 0) {RSPEAK(spk); return 2012;}
88 /* Fun stuff for dragon. If he insists on attacking it, win!
89 * Set game.prop to dead, move dragon to central loc (still
90 * fixed), move rug there (not fixed), and move him there,
91 * too. Then do a null motion to get new description. */
93 GETIN(input,&WD1,&WD1X,&WD2,&WD2X);
94 if (WD1 != MAKEWD(25) && WD1 != MAKEWD(250519))
99 int k=(PLAC[DRAGON]+FIXD[DRAGON])/2;
100 MOVE(DRAGON+NOBJECTS,-1);
101 MOVE(RUG+NOBJECTS,0);
105 for (obj=1; obj<=NOBJECTS; obj++) {
106 if (game.place[obj] == PLAC[DRAGON] || game.place[obj] == FIXD[DRAGON])
113 static int bigwords(long foo)
114 /* FEE FIE FOE FOO (AND FUM). Advance to next state if given in proper order.
115 * Look up WD1 in section 3 of vocab to determine which word we've got. Last
116 * word zips the eggs back to the giant room (unless already there). */
120 if (game.foobar != 1-k) {
121 if (game.foobar != 0)spk=151;
131 if (game.place[EGGS]==PLAC[EGGS] || (TOTING(EGGS) && game.loc==PLAC[EGGS])) {
135 /* Bring back troll if we steal the eggs back from him before
137 if (game.place[EGGS]==0 && game.place[TROLL]==0 && game.prop[TROLL]==0)
141 if (game.loc == PLAC[EGGS])k=0;
142 MOVE(EGGS,PLAC[EGGS]);
148 static int bivalve(token_t verb, token_t obj)
149 /* Clam/oyster actions */
152 if (obj == OYSTER)k=1;
154 if (TOTING(obj))spk=120+k;
155 if (!TOTING(TRIDNT))spk=122+k;
156 if (verb == LOCK)spk=61;
159 DROP(OYSTER,game.loc);
166 static int blast(void)
167 /* Blast. No effect unless you've got dynamite, which is a neat trick! */
169 if (game.prop[ROD2] < 0 || !game.closed)
183 static int vbreak(token_t verb, token_t obj)
184 /* Break. Only works for mirror in repository and, of course, the vase. */
186 int spk = ACTSPK[verb];
187 if (obj == MIRROR)spk=148;
188 if (obj == VASE && game.prop[VASE] == 0) {
189 if (TOTING(VASE))DROP(VASE,game.loc);
191 game.fixed[VASE]= -1;
194 if (obj == MIRROR && game.closed) {
203 static int brief(void)
204 /* Brief. Intransitive only. Suppress long descriptions after first time. */
212 static int carry(token_t verb, long obj)
213 /* Carry an object. Special cases for bird and cage (if bird in cage, can't
214 * take one without the other). Liquids also special, since they depend on
215 * status of bottle. Also various side effects, etc. */
218 if (obj == INTRANSITIVE) {
219 /* Carry, no object given yet. OK if only one object present. */
220 if(game.atloc[game.loc] == 0 ||
221 game.link[game.atloc[game.loc]] != 0 ||
222 ATDWRF(game.loc) > 0)
224 obj=game.atloc[game.loc];
227 if (TOTING(obj)) {RSPEAK(24); return 2012;}
229 if (obj == PLANT && game.prop[PLANT] <= 0)spk=115;
230 if (obj == BEAR && game.prop[BEAR] == 1)spk=169;
231 if (obj == CHAIN && game.prop[BEAR] != 0)spk=170;
232 if (obj == URN)spk=215;
233 if (obj == CAVITY)spk=217;
234 if (obj == BLOOD)spk=239;
235 if (obj == RUG && game.prop[RUG] == 2)spk=222;
236 if (obj == SIGN)spk=196;
242 if (game.fixed[obj] != 0) {
246 if (obj == WATER || obj == OIL) {
247 if (!HERE(BOTTLE) || LIQUID() != obj) {
248 if (TOTING(BOTTLE) && game.prop[BOTTLE] == 1)
249 return(fill(verb, BOTTLE));
250 if (game.prop[BOTTLE] != 1)spk=105;
251 if (!TOTING(BOTTLE))spk=104;
259 if (game.holdng >= INVLIMIT) {
263 else if (obj == BIRD && game.prop[BIRD] != 1 && -1-game.prop[BIRD] != 1) {
264 if (game.prop[BIRD] == 2) {
269 if (!TOTING(CAGE))spk=27;
270 if (TOTING(ROD))spk=26;
277 if ((obj==BIRD || obj==CAGE) && (game.prop[BIRD]==1 || -1-game.prop[BIRD]==1))
278 CARRY(BIRD+CAGE-obj,game.loc);
280 if (obj == BOTTLE && LIQUID() != 0)
281 game.place[LIQUID()] = -1;
282 if (GSTONE(obj) && game.prop[obj] != 0) {
290 static int chain(token_t verb)
291 /* Do something to the bear's chain */
296 if (game.prop[BEAR] == 0)spk=41;
297 if (game.prop[CHAIN] == 0)spk=37;
298 if (spk != 171) {RSPEAK(spk); return 2012;}
301 if (game.prop[BEAR] != 3)game.prop[BEAR]=2;
302 game.fixed[BEAR]=2-game.prop[BEAR];
305 if (game.prop[CHAIN] != 0)spk=34;
306 if (game.loc != PLAC[CHAIN])spk=173;
307 if (spk != 172) {RSPEAK(spk); return 2012;}
309 if (TOTING(CHAIN))DROP(CHAIN,game.loc);
310 game.fixed[CHAIN]= -1;
316 static int discard(token_t verb, long obj, bool just_do_it)
317 /* Discard object. "Throw" also comes here for most objects. Special cases for
318 * bird (might attack snake or dragon) and cage (might contain bird) and vase.
319 * Drop coins at vending machine for extra batteries. */
321 int spk = ACTSPK[verb];
323 if (TOTING(ROD2) && obj == ROD && !TOTING(ROD))obj=ROD2;
324 if (!TOTING(obj)) {RSPEAK(spk); return 2012;}
325 if (obj == BIRD && HERE(SNAKE)) {
327 if (game.closed) return(19000);
329 /* Set game.prop for use by travel options */
332 } else if ((GSTONE(obj) && AT(CAVITY) && game.prop[CAVITY] != 0)) {
336 if (HERE(RUG) && ((obj == EMRALD && game.prop[RUG] != 2) || (obj == RUBY &&
337 game.prop[RUG] == 2))) {
339 if (TOTING(RUG))spk=220;
340 if (obj == RUBY)spk=221;
343 int k = 2-game.prop[RUG];
345 if (k == 2) k = PLAC[SAPPH];
346 MOVE(RUG+NOBJECTS, k);
349 } else if (obj == COINS && HERE(VEND)) {
351 DROP(BATTER,game.loc);
354 } else if (obj == BIRD && AT(DRAGON) && game.prop[DRAGON] == 0) {
359 } else if (obj == BEAR && AT(TROLL)) {
362 MOVE(TROLL+NOBJECTS,0);
363 MOVE(TROLL2,PLAC[TROLL]);
364 MOVE(TROLL2+NOBJECTS,FIXD[TROLL]);
367 } else if (obj != VASE || game.loc == PLAC[PILLOW]) {
371 if (AT(PILLOW))game.prop[VASE]=0;
372 PSPEAK(VASE,game.prop[VASE]+1);
373 if (game.prop[VASE] != 0)game.fixed[VASE]= -1;
377 if (k == obj)obj=BOTTLE;
378 if (obj == BOTTLE && k != 0)
380 if (obj == CAGE && game.prop[BIRD] == 1)DROP(BIRD,game.loc);
382 if (obj != BIRD) return(2012);
384 if (FOREST(game.loc))game.prop[BIRD]=2;
388 static int drink(token_t verb, token_t obj)
389 /* Drink. If no object, assume water and look for it here. If water is in
390 * the bottle, drink that, else must be at a water loc, so drink stream. */
392 int spk = ACTSPK[verb];
393 if (obj == 0 && LIQLOC(game.loc) != WATER && (LIQUID() != WATER || !HERE(BOTTLE)))
396 if (obj != 0 && obj != WATER)spk=110;
397 if (spk == 110 || LIQUID() != WATER || !HERE(BOTTLE)) {
407 OBJSND[BIRD]=OBJSND[BIRD]+3;
414 static int eat(token_t verb, token_t obj)
415 /* Eat. Intransitive: assume food if present, else ask what. Transitive: food
416 * ok, some things lose appetite, rest are ridiculous. */
418 int spk = ACTSPK[verb];
419 if (obj == INTRANSITIVE) {
429 if (obj == BIRD || obj == SNAKE || obj == CLAM || obj == OYSTER || obj ==
430 DWARF || obj == DRAGON || obj == TROLL || obj == BEAR || obj ==
437 static int extinguish(token_t verb, int obj)
438 /* Extinguish. Lamp, urn, dragon/volcano (nice try). */
440 int spk = ACTSPK[verb];
441 if (obj == INTRANSITIVE) {
442 if (HERE(LAMP) && game.prop[LAMP] == 1)obj=LAMP;
443 if (HERE(URN) && game.prop[URN] == 2)obj=obj*NOBJECTS+URN;
444 if (obj == INTRANSITIVE || obj == 0 || obj > NOBJECTS) return(8000);
448 game.prop[URN]=game.prop[URN]/2;
453 else if (obj == LAMP) {
460 else if (obj == DRAGON || obj == VOLCAN)
466 static int feed(token_t verb, long obj)
467 /* Feed. If bird, no seed. Snake, dragon, troll: quip. If dwarf, make him
468 * mad. Bear, special. */
470 int spk = ACTSPK[verb];
476 if (!(obj != SNAKE && obj != DRAGON && obj != TROLL)) {
478 if (obj == DRAGON && game.prop[DRAGON] != 0)spk=110;
479 if (obj == TROLL)spk=182;
480 if (obj != SNAKE || game.closed || !HERE(BIRD))
497 game.dflag=game.dflag+2;
503 if (game.prop[BEAR] == 0)spk=102;
504 if (game.prop[BEAR] == 3)spk=110;
530 int fill(token_t verb, long obj)
531 /* Fill. Bottle or urn must be empty, and liquid available. (Vase
535 int spk = ACTSPK[verb];
538 if (LIQLOC(game.loc) == 0)spk=144;
539 if (LIQLOC(game.loc) == 0 || !TOTING(VASE)) {
545 game.fixed[VASE]= -1;
546 return(discard(verb, obj, true));
551 if (game.prop[URN] != 0) {RSPEAK(spk); return 2012;}
554 if (k == 0 || !HERE(BOTTLE)) {RSPEAK(spk); return 2012;}
557 if (k == OIL)game.prop[URN]=1;
558 spk=211+game.prop[URN];
563 if (obj != 0 && obj != BOTTLE) {
567 if (obj == 0 && !HERE(BOTTLE))
570 if (LIQLOC(game.loc) == 0)
572 if (HERE(URN) && game.prop[URN] != 0)
577 {RSPEAK(spk); return 2012;}
578 game.prop[BOTTLE]=MOD(COND[game.loc],4)/2*2;
588 static int find(token_t obj)
589 /* Find. Might be carrying it, or it might be here. Else give caveat. */
592 (LIQUID() == obj && AT(BOTTLE)) ||
593 obj == LIQLOC(game.loc) ||
594 (obj == DWARF && ATDWRF(game.loc) > 0))
596 if (game.closed)SPK=138;
597 if (TOTING(obj))SPK=24;
602 static int fly(token_t obj)
603 /* Fly. Snide remarks unless hovering rug is here. */
605 if (obj == INTRANSITIVE) {
606 if (game.prop[RUG] != 2)SPK=224;
607 if (!HERE(RUG))SPK=225;
620 if (game.prop[RUG] != 2) {RSPEAK(SPK); return 2012;}
621 game.oldlc2=game.oldloc;
622 game.oldloc=game.loc;
623 game.newloc=game.place[RUG]+game.fixed[RUG]-game.loc;
625 if (game.prop[SAPPH] >= 0)SPK=227;
630 static int inven(token_t obj)
631 /* Inventory. If object, treat same as find. Else report on current burden. */
635 for (i=1; i<=NOBJECTS; i++) {
636 if (i == BEAR || !TOTING(i))
651 int light(token_t obj)
652 /* Light. Applicable only to lamp and urn. */
655 if (obj == INTRANSITIVE) {
656 if (HERE(LAMP) && game.prop[LAMP] == 0 && game.limit >= 0)obj=LAMP;
657 if (HERE(URN) && game.prop[URN] == 1)obj=obj*NOBJECTS+URN;
658 if (obj == INTRANSITIVE || obj == 0 || obj > NOBJECTS) return(8000);
663 if (game.prop[URN] == 0)
664 {RSPEAK(spk); return 2012;}
676 if (game.limit < 0) {
688 static int listen(void)
689 /* Listen. Intransitive only. Print stuff based on objsnd/locsnd. */
696 if (k < 0) return(2012);
699 SETPRM(1,game.zzword,0);
700 for (i=1; i<=NOBJECTS; i++) {
701 if (!HERE(i) || OBJSND[i] == 0 || game.prop[i] < 0)
703 PSPEAK(i,OBJSND[i]+game.prop[i]);
705 if (i == BIRD && OBJSND[i]+game.prop[i] == 8)
712 static int lock(token_t verb, token_t obj)
713 /* Lock, unlock, no object given. Assume various things if present. */
716 if (obj == INTRANSITIVE) {
718 if (HERE(CLAM))obj=CLAM;
719 if (HERE(OYSTER))obj=OYSTER;
720 if (AT(DOOR))obj=DOOR;
721 if (AT(GRATE))obj=GRATE;
722 if (obj != 0 && HERE(CHAIN)) return(8000);
723 if (HERE(CHAIN))obj=CHAIN;
724 if (obj == 0) {RSPEAK(SPK); return 2012;}
727 /* Lock, unlock object. Special stuff for opening clam/oyster
729 if (obj == CLAM || obj == OYSTER)
730 return bivalve(verb, obj);
731 if (obj == DOOR)SPK=111;
732 if (obj == DOOR && game.prop[DOOR] == 1)SPK=54;
733 if (obj == CAGE)SPK=32;
734 if (obj == KEYS)SPK=55;
735 if (obj == GRATE || obj == CHAIN)SPK=31;
736 if (SPK != 31 || !HERE(KEYS)) {
744 if (!game.panic)game.clock2=15;
749 SPK=34+game.prop[GRATE];
751 if (verb == LOCK)game.prop[GRATE]=0;
752 SPK=SPK+2*game.prop[GRATE];
757 static int pour(token_t verb, token_t obj)
758 /* Pour. If no object, or object is bottle, assume contents of bottle.
759 * special tests for pouring water or oil on plant or rusty door. */
761 if (obj == BOTTLE || obj == 0)obj=LIQUID();
762 if (obj == 0) return(8000);
763 if (!TOTING(obj)) {RSPEAK(SPK); return 2012;}
765 if (obj != OIL && obj != WATER) {RSPEAK(SPK); return 2012;}
766 if (HERE(URN) && game.prop[URN] == 0)
767 return fill(verb, URN);
771 if (!(AT(PLANT) || AT(DOOR)))
772 {RSPEAK(SPK); return 2012;}
775 if (obj != WATER) {RSPEAK(SPK); return 2012;}
776 PSPEAK(PLANT,game.prop[PLANT]+3);
777 game.prop[PLANT]=MOD(game.prop[PLANT]+1,3);
778 game.prop[PLANT2]=game.prop[PLANT];
782 if (obj == OIL)game.prop[DOOR]=1;
783 SPK=113+game.prop[DOOR];
789 static int quit(FILE *input)
790 /* Quit. Intransitive only. Verify intent and exit if that's what he wants. */
792 if (YES(input,22,54,54))
797 static int read(FILE *input, token_t obj)
798 /* Read. Print stuff based on objtxt. Oyster (?) is special case. */
801 if (obj == INTRANSITIVE) {
803 for (i=1; i<=NOBJECTS; i++) {
804 if (HERE(i) && OBJTXT[i] != 0 && game.prop[i] >= 0)
805 obj = obj * NOBJECTS + i;
807 if (obj > NOBJECTS || obj == 0 || DARK(game.loc)) return(8000);
810 if (DARK(game.loc)) {
815 if (OBJTXT[obj] == 0 || game.prop[obj] < 0)
816 {RSPEAK(SPK); return 2012;}
817 if (obj == OYSTER && !game.clshnt) {
818 game.clshnt=YES(input,192,193,54);
821 PSPEAK(obj,OBJTXT[obj]+game.prop[obj]);
825 static int reservoir(void)
826 /* Z'ZZZ (word gets recomputed at startup; different each game). */
828 if (!AT(RESER) && game.loc != game.fixed[RESER]-1) {RSPEAK(SPK); return 2012;}
829 PSPEAK(RESER,game.prop[RESER]+1);
830 game.prop[RESER]=1-game.prop[RESER];
831 if (AT(RESER)) return(2012);
832 game.oldlc2=game.loc;
838 static int rub(token_t obj)
839 /* Rub. Yields various snide remarks except for lit urn. */
841 if (obj != LAMP)SPK=76;
842 if (obj != URN || game.prop[URN] != 2) {RSPEAK(SPK); return 2012;}
844 DROP(AMBER,game.loc);
847 DROP(CAVITY,game.loc);
854 /* SAY. Echo WD2 (or WD1 if no WD2 (SAY WHAT?, etc.).) Magic words override. */
856 /* FIXME: ugly use of globals */
857 SETPRM(1,WD2,WD2X); if (WD2 <= 0)SETPRM(1,WD1,WD1X);
859 int wd=VOCAB(WD1,-1);
860 if (wd == 62 || wd == 65 || wd == 71 || wd == 2025 || wd == 2034) {
869 static int throw_support(long spk)
876 static int throw(FILE *cmdin, long verb, long obj)
877 /* Throw. Same as discard unless axe. Then same as attack except
878 * ignore bird, and if dwarf is present then one might be killed.
879 * (Only way to do so!) Axe also special for dragon, bear, and
880 * troll. Treasures special for troll. */
882 if (TOTING(ROD2) && obj == ROD && !TOTING(ROD))obj=ROD2;
884 RSPEAK(SPK); /* FIXME: Defaults from ACTSPK */
887 if (obj >= 50 && obj <= MAXTRS && AT(TROLL)) {
889 /* Snarf a treasure for the troll. */
892 MOVE(TROLL+NOBJECTS,0);
893 DROP(TROLL2,PLAC[TROLL]);
894 DROP(TROLL2+NOBJECTS,FIXD[TROLL]);
899 if (obj == FOOD && HERE(BEAR)) {
900 /* But throwing food is another story. */
902 return(feed(verb, obj));
905 return(discard(verb, obj, false));
906 int i=ATDWRF(game.loc);
908 if (AT(DRAGON) && game.prop[DRAGON] == 0) {
910 return throw_support(SPK);
914 return throw_support(SPK);
918 return throw_support(SPK);
920 if (HERE(BEAR) && game.prop[BEAR] == 0) {
921 /* This'll teach him to throw the axe at the bear! */
927 {RSPEAK(SPK); return 2012;}
929 return(attack(cmdin, verb, 0));
932 if (randrange(NDWARVES+1) < game.dflag) {
934 return throw_support(SPK);
940 if (game.dkill == 1)SPK=149;
942 return throw_support(SPK);
945 static int vscore(void)
946 /* Score. Call scoring routine but tell it to return. */
952 static int wake(token_t obj)
953 /* Wake. Only use is to disturb the dwarves. */
955 if (obj != DWARF || !game.closed) {RSPEAK(SPK); return 2012;}
960 static int wave(token_t obj)
961 /* Wave. No effect unless waving rod at fissure or at bird. */
963 if ((!TOTING(obj)) && (obj != ROD || !TOTING(ROD2)))SPK=29;
966 (!HERE(BIRD) && (game.closng || !AT(FISSUR)))) {
970 if (HERE(BIRD))SPK=206+MOD(game.prop[BIRD],2);
971 if (SPK == 206 && game.loc == game.place[STEPS] && game.prop[JADE] < 0) {
980 RSPEAK(SPK); /* FIXME: How is SPK set here? */
983 if (game.closng || !AT(FISSUR)) {RSPEAK(SPK); return 2012;}
984 if (HERE(BIRD))RSPEAK(SPK);
985 game.prop[FISSUR]=1-game.prop[FISSUR];
986 PSPEAK(FISSUR,2-game.prop[FISSUR]);
991 int action(FILE *input, enum speechpart part, long verb, long obj)
992 /* Analyse a verb. Remember what it was, go back for object if second word
993 * unless verb is "say", which snarfs arbitrary second word.
1000 /* Analyse an object word. See if the thing is here, whether
1001 * we've got a verb yet, and so on. Object must be here
1002 * unless verb is "find" or "invent(ory)" (and no new verb
1003 * yet to be analysed). Water and oil are also funny, since
1004 * they are never actually dropped at any location, but might
1005 * be here inside the bottle or urn or as a feature of the
1009 else if (obj == GRATE) {
1010 if (game.loc == 1 || game.loc == 4 || game.loc == 7)
1012 if (game.loc > 9 && game.loc < 15)
1017 else if (obj == DWARF && ATDWRF(game.loc) > 0)
1019 else if ((LIQUID() == obj && HERE(BOTTLE)) || obj == LIQLOC(game.loc))
1021 else if (obj == OIL && HERE(URN) && game.prop[URN] != 0) {
1025 else if (obj == PLANT && AT(PLANT2) && game.prop[PLANT2] != 0) {
1029 else if (obj == KNIFE && game.knfloc == game.loc) {
1032 {RSPEAK(SPK); return 2012;}
1034 else if (obj == ROD && HERE(ROD2)) {
1038 else if ((verb == FIND || verb == INVENT) && WD2 <= 0)
1056 if (WD2 > 0 && verb != SAY) return(2800);
1057 if (verb == SAY)obj=WD2;
1059 /* Analyse an intransitive verb (ie, no object given yet). */
1061 case 0: /* CARRY */ return carry(verb, INTRANSITIVE);
1062 case 1: /* DROP */ return(8000);
1063 case 2: /* SAY */ return(8000);
1064 case 3: /* UNLOC */ return lock(verb, INTRANSITIVE);
1065 case 4: /* NOTHI */ {RSPEAK(54); return(20012);}
1066 case 5: /* LOCK */ return lock(verb, INTRANSITIVE);
1067 case 6: /* LIGHT */ return light(INTRANSITIVE);
1068 case 7: /* EXTIN */ return extinguish(verb, INTRANSITIVE);
1069 case 8: /* WAVE */ return(8000);
1070 case 9: /* CALM */ return(8000);
1071 case 10: /* WALK */ {RSPEAK(SPK); return 2012;}
1072 case 11: /* ATTAC */ return attack(input, verb, obj);
1073 case 12: /* POUR */ return pour(verb, obj);
1074 case 13: /* EAT */ return eat(verb, INTRANSITIVE);
1075 case 14: /* DRINK */ return drink(verb, obj);
1076 case 15: /* RUB */ return(8000);
1077 case 16: /* TOSS */ return(8000);
1078 case 17: /* QUIT */ return quit(input);
1079 case 18: /* FIND */ return(8000);
1080 case 19: /* INVEN */ return inven(obj);
1081 case 20: /* FEED */ return(8000);
1082 case 21: /* FILL */ return fill(verb, obj);
1083 case 22: /* BLAST */ return blast();
1084 case 23: /* SCOR */ return vscore();
1085 case 24: /* FOO */ return bigwords(WD1);
1086 case 25: /* BRIEF */ return brief();
1087 case 26: /* READ */ return read(input, INTRANSITIVE);
1088 case 27: /* BREAK */ return(8000);
1089 case 28: /* WAKE */ return(8000);
1090 case 29: /* SUSP */ return saveresume(input, false);
1091 case 30: /* RESU */ return saveresume(input, true);
1092 case 31: /* FLY */ return fly(INTRANSITIVE);
1093 case 32: /* LISTE */ return listen();
1094 case 33: /* ZZZZ */ return reservoir();
1100 /* Analyse a transitive verb. */
1102 case 0: /* CARRY */ return carry(verb, obj);
1103 case 1: /* DROP */ return discard(verb, obj, false);
1104 case 2: /* SAY */ return say();
1105 case 3: /* UNLOC */ return lock(verb, obj);
1106 case 4: /* NOTHI */ {RSPEAK(54); return(20012);}
1107 case 5: /* LOCK */ return lock(verb, obj);
1108 case 6: /* LIGHT */ return light(obj);
1109 case 7: /* EXTI */ return extinguish(verb, obj);
1110 case 8: /* WAVE */ return wave(obj);
1111 case 9: /* CALM */ {RSPEAK(SPK); return 2012;}
1112 case 10: /* WALK */ {RSPEAK(SPK); return 2012;}
1113 case 11: /* ATTAC */ return attack(input, verb, obj);
1114 case 12: /* POUR */ return pour(verb, obj);
1115 case 13: /* EAT */ return eat(verb, obj);
1116 case 14: /* DRINK */ return drink(verb, obj);
1117 case 15: /* RUB */ return rub(obj);
1118 case 16: /* TOSS */ return throw(input, verb, obj);
1119 case 17: /* QUIT */ {RSPEAK(SPK); return 2012;}
1120 case 18: /* FIND */ return find(obj);
1121 case 19: /* INVEN */ return find(obj);
1122 case 20: /* FEED */ return feed(verb, obj);
1123 case 21: /* FILL */ return fill(verb, obj);
1124 case 22: /* BLAST */ return blast();
1125 case 23: /* SCOR */ {RSPEAK(SPK); return 2012;}
1126 case 24: /* FOO */ {RSPEAK(SPK); return 2012;}
1127 case 25: /* BRIEF */ {RSPEAK(SPK); return 2012;}
1128 case 26: /* READ */ return read(input, obj);
1129 case 27: /* BREAK */ return vbreak(verb, obj);
1130 case 28: /* WAKE */ return wake(obj);
1131 case 29: /* SUSP */ {RSPEAK(SPK); return 2012;}
1132 case 30: /* RESU */ {RSPEAK(SPK); return 2012;}
1133 case 31: /* FLY */ return fly(obj);
1134 case 32: /* LISTE */ {RSPEAK(SPK); return 2012;}
1135 case 33: /* ZZZZ */ return reservoir();
1139 /* Unknown verb, couldn't deduce object - might need hint */