6 /* Limit visibility of ugly globals. Eventually these should go away. */
7 extern long K, 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(long);
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 i =ATDWRF(game.loc);
28 if (HERE(SNAKE))obj=obj*NOBJECTS+SNAKE;
29 if (AT(DRAGON) && game.prop[DRAGON] == 0)obj=obj*NOBJECTS+DRAGON;
30 if (AT(TROLL))obj=obj*NOBJECTS+TROLL;
31 if (AT(OGRE))obj=obj*NOBJECTS+OGRE;
32 if (HERE(BEAR) && game.prop[BEAR] == 0)obj=obj*NOBJECTS+BEAR;
33 if (obj > NOBJECTS) return(8000);
35 /* Can't attack bird or machine by throwing axe. */
36 if (HERE(BIRD) && verb != THROW)obj=BIRD;
37 if (HERE(VEND) && verb != THROW)obj=obj*NOBJECTS+VEND;
38 /* Clam and oyster both treated as clam for intransitive case;
40 if (HERE(CLAM) || HERE(OYSTER))obj=NOBJECTS*obj+CLAM;
41 if (obj > NOBJECTS) return(8000);
56 PSPEAK(VEND,game.prop[VEND]+2);
57 game.prop[VEND]=3-game.prop[VEND];
62 if (obj == CLAM || obj == OYSTER)SPK=150;
63 if (obj == SNAKE)SPK=46;
64 if (obj == DWARF)SPK=49;
65 if (obj == DWARF && game.closed) return(19000);
66 if (obj == DRAGON)SPK=167;
67 if (obj == TROLL)SPK=157;
68 if (obj == OGRE)SPK=203;
69 if (obj == OGRE && i > 0) {
74 for (i=1; i < PIRATE; i++) {
75 if (game.dloc[i] == game.loc) {
85 if (obj == BEAR)SPK=165+(game.prop[BEAR]+1)/2;
86 if (obj != DRAGON || game.prop[DRAGON] != 0) {RSPEAK(SPK); return 2012;}
87 /* Fun stuff for dragon. If he insists on attacking it, win!
88 * Set game.prop to dead, move dragon to central loc (still
89 * fixed), move rug there (not fixed), and move him there,
90 * too. Then do a null motion to get new description. */
92 GETIN(input,&WD1,&WD1X,&WD2,&WD2X);
93 if (WD1 != MAKEWD(25) && WD1 != MAKEWD(250519))
98 int k=(PLAC[DRAGON]+FIXD[DRAGON])/2;
99 MOVE(DRAGON+NOBJECTS,-1);
100 MOVE(RUG+NOBJECTS,0);
104 for (obj=1; obj<=NOBJECTS; obj++) {
105 if (game.place[obj] == PLAC[DRAGON] || game.place[obj] == FIXD[DRAGON])
109 K=NUL; /* FIXME: error if removed */
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 obj)
184 /* Break. Only works for mirror in repository and, of course, the vase. */
186 /* FIXME: defaults from ACTSPK */
187 if (obj == MIRROR)SPK=148;
188 if (obj == VASE && game.prop[VASE] == 0) {
190 if (TOTING(VASE))DROP(VASE,game.loc);
192 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(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(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(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. */
322 if (TOTING(ROD2) && obj == ROD && !TOTING(ROD))obj=ROD2;
323 if (!TOTING(obj)) {RSPEAK(SPK); return 2012;}
324 if (obj == BIRD && HERE(SNAKE)) {
326 if (game.closed) return(19000);
328 /* Set game.prop for use by travel options */
331 } else if ((GSTONE(obj) && AT(CAVITY) && game.prop[CAVITY] != 0)) {
335 if (HERE(RUG) && ((obj == EMRALD && game.prop[RUG] != 2) || (obj == RUBY &&
336 game.prop[RUG] == 2))) {
338 if (TOTING(RUG))SPK=220;
339 if (obj == RUBY)SPK=221;
344 if (K == 2)K=PLAC[SAPPH];
345 MOVE(RUG+NOBJECTS,K);
348 } else if (obj == COINS && HERE(VEND)) {
350 DROP(BATTER,game.loc);
353 } else if (obj == BIRD && AT(DRAGON) && game.prop[DRAGON] == 0) {
358 } else if (obj == BEAR && AT(TROLL)) {
361 MOVE(TROLL+NOBJECTS,0);
362 MOVE(TROLL2,PLAC[TROLL]);
363 MOVE(TROLL2+NOBJECTS,FIXD[TROLL]);
366 } else if (obj != VASE || game.loc == PLAC[PILLOW]) {
370 if (AT(PILLOW))game.prop[VASE]=0;
371 PSPEAK(VASE,game.prop[VASE]+1);
372 if (game.prop[VASE] != 0)game.fixed[VASE]= -1;
376 if (K == obj)obj=BOTTLE;
377 if (obj == BOTTLE && K != 0)game.place[K]=0;
378 if (obj == CAGE && game.prop[BIRD] == 1)DROP(BIRD,game.loc);
380 if (obj != BIRD) return(2012);
382 if (FOREST(game.loc))game.prop[BIRD]=2;
386 static int drink(token_t obj)
387 /* Drink. If no object, assume water and look for it here. If water is in
388 * the bottle, drink that, else must be at a water loc, so drink stream. */
390 if (obj == 0 && LIQLOC(game.loc) != WATER && (LIQUID() != WATER || !HERE(BOTTLE)))
393 if (obj != 0 && obj != WATER)SPK=110;
394 if (SPK == 110 || LIQUID() != WATER || !HERE(BOTTLE)) {RSPEAK(SPK); return 2012;}
403 OBJSND[BIRD]=OBJSND[BIRD]+3;
410 static int eat(token_t obj)
411 /* Eat. Intransitive: assume food if present, else ask what. Transitive: food
412 * ok, some things lose appetite, rest are ridiculous. */
414 if (obj == INTRANSITIVE) {
424 if (obj == BIRD || obj == SNAKE || obj == CLAM || obj == OYSTER || obj ==
425 DWARF || obj == DRAGON || obj == TROLL || obj == BEAR || obj ==
432 static int extinguish(int obj)
433 /* Extinguish. Lamp, urn, dragon/volcano (nice try). */
435 if (obj == INTRANSITIVE) {
436 if (HERE(LAMP) && game.prop[LAMP] == 1)obj=LAMP;
437 if (HERE(URN) && game.prop[URN] == 2)obj=obj*NOBJECTS+URN;
438 if (obj == INTRANSITIVE || obj == 0 || obj > NOBJECTS) return(8000);
442 game.prop[URN]=game.prop[URN]/2;
447 else if (obj == LAMP) {
454 else if (obj == DRAGON || obj == VOLCAN)
460 static int feed(long obj)
461 /* Feed. If bird, no seed. Snake, dragon, troll: quip. If dwarf, make him
462 * mad. Bear, special. */
469 if (!(obj != SNAKE && obj != DRAGON && obj != TROLL)) {
471 if (obj == DRAGON && game.prop[DRAGON] != 0)spk=110;
472 if (obj == TROLL)spk=182;
473 if (obj != SNAKE || game.closed || !HERE(BIRD))
487 RSPEAK(SPK); /* FIXME: Defaults from ACTSPK */
490 game.dflag=game.dflag+2;
496 if (game.prop[BEAR] == 0)SPK=102;
497 if (game.prop[BEAR] == 3)SPK=110;
524 /* Fill. Bottle or urn must be empty, and liquid available. (Vase
530 if (LIQLOC(game.loc) == 0)SPK=144;
531 if (LIQLOC(game.loc) == 0 || !TOTING(VASE)) {
537 game.fixed[VASE]= -1;
538 return(discard(obj, true));
543 if (game.prop[URN] != 0) {RSPEAK(SPK); return 2012;}
546 if (k == 0 || !HERE(BOTTLE)) {RSPEAK(SPK); return 2012;}
549 if (k == OIL)game.prop[URN]=1;
550 SPK=211+game.prop[URN];
555 if (obj != 0 && obj != BOTTLE) {
559 if (obj == 0 && !HERE(BOTTLE))
562 if (LIQLOC(game.loc) == 0)
564 if (HERE(URN) && game.prop[URN] != 0)
569 {RSPEAK(SPK); return 2012;}
570 game.prop[BOTTLE]=MOD(COND[game.loc],4)/2*2;
580 static int find(token_t obj)
581 /* Find. Might be carrying it, or it might be here. Else give caveat. */
584 (LIQUID() == obj && AT(BOTTLE)) ||
585 obj == LIQLOC(game.loc) ||
586 (obj == DWARF && ATDWRF(game.loc) > 0))
588 if (game.closed)SPK=138;
589 if (TOTING(obj))SPK=24;
594 static int fly(token_t obj)
595 /* Fly. Snide remarks unless hovering rug is here. */
597 if (obj == INTRANSITIVE) {
598 if (game.prop[RUG] != 2)SPK=224;
599 if (!HERE(RUG))SPK=225;
612 if (game.prop[RUG] != 2) {RSPEAK(SPK); return 2012;}
613 game.oldlc2=game.oldloc;
614 game.oldloc=game.loc;
615 game.newloc=game.place[RUG]+game.fixed[RUG]-game.loc;
617 if (game.prop[SAPPH] >= 0)SPK=227;
622 static int inven(token_t obj)
623 /* Inventory. If object, treat same as find. Else report on current burden. */
627 for (i=1; i<=NOBJECTS; i++) {
628 if (i == BEAR || !TOTING(i))
643 int light(token_t obj)
644 /* Light. Applicable only to lamp and urn. */
647 if (obj == INTRANSITIVE) {
648 if (HERE(LAMP) && game.prop[LAMP] == 0 && game.limit >= 0)obj=LAMP;
649 if (HERE(URN) && game.prop[URN] == 1)obj=obj*NOBJECTS+URN;
650 if (obj == INTRANSITIVE || obj == 0 || obj > NOBJECTS) return(8000);
655 if (game.prop[URN] == 0)
656 {RSPEAK(spk); return 2012;}
668 if (game.limit < 0) {
680 static int listen(void)
681 /* Listen. Intransitive only. Print stuff based on objsnd/locsnd. */
688 if (k < 0) return(2012);
691 SETPRM(1,game.zzword,0);
692 for (i=1; i<=NOBJECTS; i++) {
693 if (!HERE(i) || OBJSND[i] == 0 || game.prop[i] < 0)
695 PSPEAK(i,OBJSND[i]+game.prop[i]);
697 if (i == BIRD && OBJSND[i]+game.prop[i] == 8)
704 static int lock(token_t verb, token_t obj)
705 /* Lock, unlock, no object given. Assume various things if present. */
708 if (obj == INTRANSITIVE) {
710 if (HERE(CLAM))obj=CLAM;
711 if (HERE(OYSTER))obj=OYSTER;
712 if (AT(DOOR))obj=DOOR;
713 if (AT(GRATE))obj=GRATE;
714 if (obj != 0 && HERE(CHAIN)) return(8000);
715 if (HERE(CHAIN))obj=CHAIN;
716 if (obj == 0) {RSPEAK(SPK); return 2012;}
719 /* Lock, unlock object. Special stuff for opening clam/oyster
721 if (obj == CLAM || obj == OYSTER)
722 return bivalve(verb, obj);
723 if (obj == DOOR)SPK=111;
724 if (obj == DOOR && game.prop[DOOR] == 1)SPK=54;
725 if (obj == CAGE)SPK=32;
726 if (obj == KEYS)SPK=55;
727 if (obj == GRATE || obj == CHAIN)SPK=31;
728 if (SPK != 31 || !HERE(KEYS)) {
736 if (!game.panic)game.clock2=15;
741 SPK=34+game.prop[GRATE];
743 if (verb == LOCK)game.prop[GRATE]=0;
744 SPK=SPK+2*game.prop[GRATE];
749 static int pour(token_t obj)
750 /* Pour. If no object, or object is bottle, assume contents of bottle.
751 * special tests for pouring water or oil on plant or rusty door. */
753 if (obj == BOTTLE || obj == 0)obj=LIQUID();
754 if (obj == 0) return(8000);
755 if (!TOTING(obj)) {RSPEAK(SPK); return 2012;}
757 if (obj != OIL && obj != WATER) {RSPEAK(SPK); return 2012;}
758 if (HERE(URN) && game.prop[URN] == 0)
763 if (!(AT(PLANT) || AT(DOOR)))
764 {RSPEAK(SPK); return 2012;}
767 if (obj != WATER) {RSPEAK(SPK); return 2012;}
768 PSPEAK(PLANT,game.prop[PLANT]+3);
769 game.prop[PLANT]=MOD(game.prop[PLANT]+1,3);
770 game.prop[PLANT2]=game.prop[PLANT];
775 if (obj == OIL)game.prop[DOOR]=1;
776 SPK=113+game.prop[DOOR];
782 static int quit(FILE *input)
783 /* Quit. Intransitive only. Verify intent and exit if that's what he wants. */
785 if (YES(input,22,54,54))
790 static int read(FILE *input, token_t obj)
791 /* Read. Print stuff based on objtxt. Oyster (?) is special case. */
794 if (obj == INTRANSITIVE) {
796 for (i=1; i<=NOBJECTS; i++) {
797 if (HERE(i) && OBJTXT[i] != 0 && game.prop[i] >= 0)
798 obj = obj * NOBJECTS + i;
800 if (obj > NOBJECTS || obj == 0 || DARK(game.loc)) return(8000);
803 if (DARK(game.loc)) {
808 if (OBJTXT[obj] == 0 || game.prop[obj] < 0)
809 {RSPEAK(SPK); return 2012;}
810 if (obj == OYSTER && !game.clshnt) {
811 game.clshnt=YES(input,192,193,54);
814 PSPEAK(obj,OBJTXT[obj]+game.prop[obj]);
818 static int reservoir(void)
819 /* Z'ZZZ (word gets recomputed at startup; different each game). */
821 if (!AT(RESER) && game.loc != game.fixed[RESER]-1) {RSPEAK(SPK); return 2012;}
822 PSPEAK(RESER,game.prop[RESER]+1);
823 game.prop[RESER]=1-game.prop[RESER];
824 if (AT(RESER)) return(2012);
825 game.oldlc2=game.loc;
831 static int rub(token_t obj)
832 /* Rub. Yields various snide remarks except for lit urn. */
834 if (obj != LAMP)SPK=76;
835 if (obj != URN || game.prop[URN] != 2) {RSPEAK(SPK); return 2012;}
837 DROP(AMBER,game.loc);
840 DROP(CAVITY,game.loc);
847 /* SAY. Echo WD2 (or WD1 if no WD2 (SAY WHAT?, etc.).) Magic words override. */
849 /* FIXME: ugly use of globals */
850 SETPRM(1,WD2,WD2X); if (WD2 <= 0)SETPRM(1,WD1,WD1X);
852 int wd=VOCAB(WD1,-1);
853 if (wd == 62 || wd == 65 || wd == 71 || wd == 2025 || wd == 2034) {
862 static int throw_support(long spk)
870 static int throw(FILE *cmdin, long verb, long obj)
871 /* Throw. Same as discard unless axe. Then same as attack except
872 * ignore bird, and if dwarf is present then one might be killed.
873 * (Only way to do so!) Axe also special for dragon, bear, and
874 * troll. Treasures special for troll. */
876 if (TOTING(ROD2) && obj == ROD && !TOTING(ROD))obj=ROD2;
878 RSPEAK(SPK); /* FIXME: Defaults from ACTSPK */
881 if (obj >= 50 && obj <= MAXTRS && AT(TROLL)) {
883 /* Snarf a treasure for the troll. */
886 MOVE(TROLL+NOBJECTS,0);
887 DROP(TROLL2,PLAC[TROLL]);
888 DROP(TROLL2+NOBJECTS,FIXD[TROLL]);
893 if (obj == FOOD && HERE(BEAR)) {
894 /* But throwing food is another story. */
899 return(discard(obj, false));
900 int i=ATDWRF(game.loc);
902 if (AT(DRAGON) && game.prop[DRAGON] == 0) {
904 return throw_support(SPK);
908 return throw_support(SPK);
912 return throw_support(SPK);
914 if (HERE(BEAR) && game.prop[BEAR] == 0) {
915 /* This'll teach him to throw the axe at the bear! */
921 {RSPEAK(SPK); return 2012;}
923 return(attack(cmdin, verb, 0));
926 if (randrange(NDWARVES+1) < game.dflag) {
928 return throw_support(SPK);
934 if (game.dkill == 1)SPK=149;
936 return throw_support(SPK);
939 static int vscore(void)
940 /* Score. Call scoring routine but tell it to return. */
946 static int wake(token_t obj)
947 /* Wake. Only use is to disturb the dwarves. */
949 if (obj != DWARF || !game.closed) {RSPEAK(SPK); return 2012;}
954 static int wave(token_t obj)
955 /* Wave. No effect unless waving rod at fissure or at bird. */
957 if ((!TOTING(obj)) && (obj != ROD || !TOTING(ROD2)))SPK=29;
960 (!HERE(BIRD) && (game.closng || !AT(FISSUR)))) {
964 if (HERE(BIRD))SPK=206+MOD(game.prop[BIRD],2);
965 if (SPK == 206 && game.loc == game.place[STEPS] && game.prop[JADE] < 0) {
974 RSPEAK(SPK); /* FIXME: How is SPK set here? */
977 if (game.closng || !AT(FISSUR)) {RSPEAK(SPK); return 2012;}
978 if (HERE(BIRD))RSPEAK(SPK);
979 game.prop[FISSUR]=1-game.prop[FISSUR];
980 PSPEAK(FISSUR,2-game.prop[FISSUR]);
985 int action(FILE *input, enum speechpart part, long verb, long obj)
986 /* Analyse a verb. Remember what it was, go back for object if second word
987 * unless verb is "say", which snarfs arbitrary second word.
994 /* Analyse an object word. See if the thing is here, whether
995 * we've got a verb yet, and so on. Object must be here
996 * unless verb is "find" or "invent(ory)" (and no new verb
997 * yet to be analysed). Water and oil are also funny, since
998 * they are never actually dropped at any location, but might
999 * be here inside the bottle or urn or as a feature of the
1003 else if (obj == GRATE) {
1004 if (game.loc == 1 || game.loc == 4 || game.loc == 7)
1006 if (game.loc > 9 && game.loc < 15)
1011 else if (obj == DWARF && ATDWRF(game.loc) > 0)
1013 else if ((LIQUID() == obj && HERE(BOTTLE)) || obj == LIQLOC(game.loc))
1015 else if (obj == OIL && HERE(URN) && game.prop[URN] != 0) {
1019 else if (obj == PLANT && AT(PLANT2) && game.prop[PLANT2] != 0) {
1023 else if (obj == KNIFE && game.knfloc == game.loc) {
1026 {RSPEAK(SPK); return 2012;}
1028 else if (obj == ROD && HERE(ROD2)) {
1032 else if ((verb == FIND || verb == INVENT) && WD2 <= 0)
1050 if (WD2 > 0 && verb != SAY) return(2800);
1051 if (verb == SAY)obj=WD2;
1053 /* Analyse an intransitive verb (ie, no object given yet). */
1055 case 0: /* CARRY */ return carry(INTRANSITIVE);
1056 case 1: /* DROP */ return(8000);
1057 case 2: /* SAY */ return(8000);
1058 case 3: /* UNLOC */ return lock(verb, INTRANSITIVE);
1059 case 4: /* NOTHI */ {RSPEAK(54); return(20012);}
1060 case 5: /* LOCK */ return lock(verb, INTRANSITIVE);
1061 case 6: /* LIGHT */ return light(INTRANSITIVE);
1062 case 7: /* EXTIN */ return extinguish(INTRANSITIVE);
1063 case 8: /* WAVE */ return(8000);
1064 case 9: /* CALM */ return(8000);
1065 case 10: /* WALK */ {RSPEAK(SPK); return 2012;}
1066 case 11: /* ATTAC */ return attack(input, verb, obj);
1067 case 12: /* POUR */ return pour(obj);
1068 case 13: /* EAT */ return eat(INTRANSITIVE);
1069 case 14: /* DRINK */ return drink(obj);
1070 case 15: /* RUB */ return(8000);
1071 case 16: /* TOSS */ return(8000);
1072 case 17: /* QUIT */ return quit(input);
1073 case 18: /* FIND */ return(8000);
1074 case 19: /* INVEN */ return inven(obj);
1075 case 20: /* FEED */ return(8000);
1076 case 21: /* FILL */ return fill(obj);
1077 case 22: /* BLAST */ return blast();
1078 case 23: /* SCOR */ return vscore();
1079 case 24: /* FOO */ return bigwords(WD1);
1080 case 25: /* BRIEF */ return brief();
1081 case 26: /* READ */ return read(input, INTRANSITIVE);
1082 case 27: /* BREAK */ return(8000);
1083 case 28: /* WAKE */ return(8000);
1084 case 29: /* SUSP */ return saveresume(input, false);
1085 case 30: /* RESU */ return saveresume(input, true);
1086 case 31: /* FLY */ return fly(INTRANSITIVE);
1087 case 32: /* LISTE */ return listen();
1088 case 33: /* ZZZZ */ return reservoir();
1094 /* Analyse a transitive verb. */
1096 case 0: /* CARRY */ return carry(obj);
1097 case 1: /* DROP */ return discard(obj, false);
1098 case 2: /* SAY */ return say();
1099 case 3: /* UNLOC */ return lock(verb, obj);
1100 case 4: /* NOTHI */ {RSPEAK(54); return(20012);}
1101 case 5: /* LOCK */ return lock(verb, obj);
1102 case 6: /* LIGHT */ return light(obj);
1103 case 7: /* EXTI */ return extinguish(obj);
1104 case 8: /* WAVE */ return wave(obj);
1105 case 9: /* CALM */ {RSPEAK(SPK); return 2012;}
1106 case 10: /* WALK */ {RSPEAK(SPK); return 2012;}
1107 case 11: /* ATTAC */ return attack(input, verb, obj);
1108 case 12: /* POUR */ return pour(obj);
1109 case 13: /* EAT */ return eat(obj);
1110 case 14: /* DRINK */ return drink(obj);
1111 case 15: /* RUB */ return rub(obj);
1112 case 16: /* TOSS */ return throw(input, verb, obj);
1113 case 17: /* QUIT */ {RSPEAK(SPK); return 2012;}
1114 case 18: /* FIND */ return find(obj);
1115 case 19: /* INVEN */ return find(obj);
1116 case 20: /* FEED */ return feed(obj);
1117 case 21: /* FILL */ return fill(obj);
1118 case 22: /* BLAST */ return blast();
1119 case 23: /* SCOR */ {RSPEAK(SPK); return 2012;}
1120 case 24: /* FOO */ {RSPEAK(SPK); return 2012;}
1121 case 25: /* BRIEF */ {RSPEAK(SPK); return 2012;}
1122 case 26: /* READ */ return read(input, obj);
1123 case 27: /* BREAK */ return vbreak(obj);
1124 case 28: /* WAKE */ return wake(obj);
1125 case 29: /* SUSP */ {RSPEAK(SPK); return 2012;}
1126 case 30: /* RESU */ {RSPEAK(SPK); return 2012;}
1127 case 31: /* FLY */ return fly(obj);
1128 case 32: /* LISTE */ {RSPEAK(SPK); return 2012;}
1129 case 33: /* ZZZZ */ return reservoir();
1133 /* Unknown verb, couldn't deduce object - might need hint */