7 * Action handlers. Eventually we'll do lookup through a method table
8 * that calls these. Absolutely nothing like the original FORTRAN.
11 static int fill(long);
13 static int attack(FILE *input, long verb, long obj)
14 /* Attack. Assume target if unambiguous. "Throw" also links here.
15 * Attackable objects fall into two categories: enemies (snake,
16 * dwarf, etc.) and others (bird, clam, machine). Ambiguous if 2
17 * enemies, or no enemies but 2 others. */
19 int i =ATDWRF(game.loc);
23 if (HERE(SNAKE))obj=obj*NOBJECTS+SNAKE;
24 if (AT(DRAGON) && game.prop[DRAGON] == 0)obj=obj*NOBJECTS+DRAGON;
25 if (AT(TROLL))obj=obj*NOBJECTS+TROLL;
26 if (AT(OGRE))obj=obj*NOBJECTS+OGRE;
27 if (HERE(BEAR) && game.prop[BEAR] == 0)obj=obj*NOBJECTS+BEAR;
28 if (obj > NOBJECTS) return(8000);
30 /* Can't attack bird or machine by throwing axe. */
31 if (HERE(BIRD) && verb != THROW)obj=BIRD;
32 if (HERE(VEND) && verb != THROW)obj=obj*NOBJECTS+VEND;
33 /* Clam and oyster both treated as clam for intransitive case;
35 if (HERE(CLAM) || HERE(OYSTER))obj=NOBJECTS*obj+CLAM;
36 if (obj > NOBJECTS) return(8000);
51 PSPEAK(VEND,game.prop[VEND]+2);
52 game.prop[VEND]=3-game.prop[VEND];
57 if (obj == CLAM || obj == OYSTER)SPK=150;
58 if (obj == SNAKE)SPK=46;
59 if (obj == DWARF)SPK=49;
60 if (obj == DWARF && game.closed) return(19000);
61 if (obj == DRAGON)SPK=167;
62 if (obj == TROLL)SPK=157;
63 if (obj == OGRE)SPK=203;
64 if (obj == OGRE && i > 0) {
69 for (i=1; i < PIRATE; i++) {
70 if (game.dloc[i] == game.loc) {
80 if (obj == BEAR)SPK=165+(game.prop[BEAR]+1)/2;
81 if (obj != DRAGON || game.prop[DRAGON] != 0) {RSPEAK(SPK); return 2012;}
82 /* Fun stuff for dragon. If he insists on attacking it, win!
83 * Set game.prop to dead, move dragon to central loc (still
84 * fixed), move rug there (not fixed), and move him there,
85 * too. Then do a null motion to get new description. */
87 GETIN(input,&WD1,&WD1X,&WD2,&WD2X);
88 if (WD1 != MAKEWD(25) && WD1 != MAKEWD(250519))
93 int k=(PLAC[DRAGON]+FIXD[DRAGON])/2;
94 MOVE(DRAGON+NOBJECTS,-1);
99 for (obj=1; obj<=NOBJECTS; obj++) {
100 if (game.place[obj] == PLAC[DRAGON] || game.place[obj] == FIXD[DRAGON])
104 K=NUL; /* FIXME: error if removed */
108 static int bigwords(long foo)
109 /* FEE FIE FOE FOO (AND FUM). Advance to next state if given in proper order.
110 * Look up WD1 in section 3 of vocab to determine which word we've got. Last
111 * word zips the eggs back to the giant room (unless already there). */
115 if (game.foobar != 1-k) {
116 if (game.foobar != 0)SPK=151;
126 if (game.place[EGGS]==PLAC[EGGS] || (TOTING(EGGS) && game.loc==PLAC[EGGS])) {
130 /* Bring back troll if we steal the eggs back from him before
132 if (game.place[EGGS]==0 && game.place[TROLL]==0 && game.prop[TROLL]==0)
136 if (game.loc == PLAC[EGGS])k=0;
137 MOVE(EGGS,PLAC[EGGS]);
143 static int bivalve(token_t verb, token_t obj)
144 /* Clam/oyster actions */
147 if (obj == OYSTER)k=1;
149 if (TOTING(obj))SPK=120+k;
150 if (!TOTING(TRIDNT))SPK=122+k;
151 if (verb == LOCK)SPK=61;
154 DROP(OYSTER,game.loc);
161 static int blast(void)
162 /* Blast. No effect unless you've got dynamite, which is a neat trick! */
164 if (game.prop[ROD2] < 0 || !game.closed) {RSPEAK(SPK); return 2012;}
166 if (game.loc == 115)game.bonus=134;
167 if (HERE(ROD2))game.bonus=135;
172 static int vbreak(token_t obj)
173 /* Break. Only works for mirror in repository and, of course, the vase. */
175 if (obj == MIRROR)SPK=148;
176 if (obj == VASE && game.prop[VASE] == 0) {
178 if (TOTING(VASE))DROP(VASE,game.loc);
180 game.fixed[VASE]= -1;
182 if (obj == MIRROR && game.closed) {
191 static int brief(void)
192 /* Brief. Intransitive only. Suppress long descriptions after first time. */
201 static int carry(long obj)
202 /* Carry an object. Special cases for bird and cage (if bird in cage, can't
203 * take one without the other). Liquids also special, since they depend on
204 * status of bottle. Also various side effects, etc. */
206 if (obj == INTRANSITIVE) {
207 /* Carry, no object given yet. OK if only one object present. */
208 if(game.atloc[game.loc] == 0 ||
209 game.link[game.atloc[game.loc]] != 0 ||
210 ATDWRF(game.loc) > 0)
212 obj=game.atloc[game.loc];
215 if (TOTING(obj)) {RSPEAK(SPK); return 2012;}
217 if (obj == PLANT && game.prop[PLANT] <= 0)SPK=115;
218 if (obj == BEAR && game.prop[BEAR] == 1)SPK=169;
219 if (obj == CHAIN && game.prop[BEAR] != 0)SPK=170;
220 if (obj == URN)SPK=215;
221 if (obj == CAVITY)SPK=217;
222 if (obj == BLOOD)SPK=239;
223 if (obj == RUG && game.prop[RUG] == 2)SPK=222;
224 if (obj == SIGN)SPK=196;
229 if (game.fixed[obj] != 0) {
233 if (obj == WATER || obj == OIL) {
234 if (!HERE(BOTTLE) || LIQUID() != obj) {
235 if (TOTING(BOTTLE) && game.prop[BOTTLE] == 1)
236 return(fill(BOTTLE));
237 if (game.prop[BOTTLE] != 1)SPK=105;
238 if (!TOTING(BOTTLE))SPK=104;
246 if (game.holdng >= INVLIMIT) {
250 else if (obj == BIRD && game.prop[BIRD] != 1 && -1-game.prop[BIRD] != 1) {
251 if (game.prop[BIRD] == 2) {
256 if (!TOTING(CAGE))SPK=27;
257 if (TOTING(ROD))SPK=26;
264 if ((obj==BIRD || obj==CAGE) && (game.prop[BIRD]==1 || -1-game.prop[BIRD]==1))
265 CARRY(BIRD+CAGE-obj,game.loc);
267 if (obj == BOTTLE && LIQUID() != 0)
268 game.place[LIQUID()] = -1;
269 if (GSTONE(obj) && game.prop[obj] != 0) {
277 static int chain(token_t verb)
278 /* Do something to the bear's chain */
282 if (game.prop[BEAR] == 0)SPK=41;
283 if (game.prop[CHAIN] == 0)SPK=37;
284 if (SPK != 171) {RSPEAK(SPK); return 2012;}
287 if (game.prop[BEAR] != 3)game.prop[BEAR]=2;
288 game.fixed[BEAR]=2-game.prop[BEAR];
291 if (game.prop[CHAIN] != 0)SPK=34;
292 if (game.loc != PLAC[CHAIN])SPK=173;
293 if (SPK != 172) {RSPEAK(SPK); return 2012;}
295 if (TOTING(CHAIN))DROP(CHAIN,game.loc);
296 game.fixed[CHAIN]= -1;
302 static int discard(long obj, bool just_do_it)
303 /* Discard object. "Throw" also comes here for most objects. Special cases for
304 * bird (might attack snake or dragon) and cage (might contain bird) and vase.
305 * Drop coins at vending machine for extra batteries. */
308 if (TOTING(ROD2) && obj == ROD && !TOTING(ROD))obj=ROD2;
309 if (!TOTING(obj)) {RSPEAK(SPK); return 2012;}
310 if (obj == BIRD && HERE(SNAKE)) {
312 if (game.closed) return(19000);
314 /* Set game.prop for use by travel options */
317 } else if ((GSTONE(obj) && AT(CAVITY) && game.prop[CAVITY] != 0)) {
321 if (HERE(RUG) && ((obj == EMRALD && game.prop[RUG] != 2) || (obj == RUBY &&
322 game.prop[RUG] == 2))) {
324 if (TOTING(RUG))SPK=220;
325 if (obj == RUBY)SPK=221;
330 if (K == 2)K=PLAC[SAPPH];
331 MOVE(RUG+NOBJECTS,K);
334 } else if (obj == COINS && HERE(VEND)) {
336 DROP(BATTER,game.loc);
339 } else if (obj == BIRD && AT(DRAGON) && game.prop[DRAGON] == 0) {
344 } else if (obj == BEAR && AT(TROLL)) {
347 MOVE(TROLL+NOBJECTS,0);
348 MOVE(TROLL2,PLAC[TROLL]);
349 MOVE(TROLL2+NOBJECTS,FIXD[TROLL]);
352 } else if (obj != VASE || game.loc == PLAC[PILLOW]) {
356 if (AT(PILLOW))game.prop[VASE]=0;
357 PSPEAK(VASE,game.prop[VASE]+1);
358 if (game.prop[VASE] != 0)game.fixed[VASE]= -1;
362 if (K == obj)obj=BOTTLE;
363 if (obj == BOTTLE && K != 0)game.place[K]=0;
364 if (obj == CAGE && game.prop[BIRD] == 1)DROP(BIRD,game.loc);
366 if (obj != BIRD) return(2012);
368 if (FOREST(game.loc))game.prop[BIRD]=2;
372 static int drink(token_t obj)
373 /* Drink. If no object, assume water and look for it here. If water is in
374 * the bottle, drink that, else must be at a water loc, so drink stream. */
376 if (obj == 0 && LIQLOC(game.loc) != WATER && (LIQUID() != WATER || !HERE(BOTTLE)))
379 if (obj != 0 && obj != WATER)SPK=110;
380 if (SPK == 110 || LIQUID() != WATER || !HERE(BOTTLE)) {RSPEAK(SPK); return 2012;}
389 OBJSND[BIRD]=OBJSND[BIRD]+3;
396 static int eat(token_t obj)
397 /* Eat. Intransitive: assume food if present, else ask what. Transitive: food
398 * ok, some things lose appetite, rest are ridiculous. */
400 if (obj == INTRANSITIVE) {
410 if (obj == BIRD || obj == SNAKE || obj == CLAM || obj == OYSTER || obj ==
411 DWARF || obj == DRAGON || obj == TROLL || obj == BEAR || obj ==
418 static int extinguish(int obj)
419 /* Extinguish. Lamp, urn, dragon/volcano (nice try). */
421 if (obj == INTRANSITIVE) {
422 if (HERE(LAMP) && game.prop[LAMP] == 1)obj=LAMP;
423 if (HERE(URN) && game.prop[URN] == 2)obj=obj*NOBJECTS+URN;
424 if (obj == INTRANSITIVE || obj == 0 || obj > NOBJECTS) return(8000);
428 game.prop[URN]=game.prop[URN]/2;
433 else if (obj == LAMP) {
440 else if (obj == DRAGON || obj == VOLCAN)
446 static int feed(long obj)
447 /* Feed. If bird, no seed. Snake, dragon, troll: quip. If dwarf, make him
448 * mad. Bear, special. */
456 if (!(obj != SNAKE && obj != DRAGON && obj != TROLL)) {
458 if (obj == DRAGON && game.prop[DRAGON] != 0)SPK=110;
459 if (obj == TROLL)SPK=182;
460 if (obj != SNAKE || game.closed || !HERE(BIRD))
461 {RSPEAK(SPK); return 2012;}
471 {RSPEAK(SPK); return 2012;}
473 game.dflag=game.dflag+2;
479 if (game.prop[BEAR] == 0)SPK=102;
480 if (game.prop[BEAR] == 3)SPK=110;
507 /* Fill. Bottle or urn must be empty, and liquid available. (Vase
513 if (LIQLOC(game.loc) == 0)SPK=144;
514 if (LIQLOC(game.loc) == 0 || !TOTING(VASE)) {
520 game.fixed[VASE]= -1;
521 return(discard(obj, true));
526 if (game.prop[URN] != 0) {RSPEAK(SPK); return 2012;}
529 if (k == 0 || !HERE(BOTTLE)) {RSPEAK(SPK); return 2012;}
532 if (k == OIL)game.prop[URN]=1;
533 SPK=211+game.prop[URN];
538 if (obj != 0 && obj != BOTTLE) {
542 if (obj == 0 && !HERE(BOTTLE))
545 if (LIQLOC(game.loc) == 0)
547 if (HERE(URN) && game.prop[URN] != 0)
552 {RSPEAK(SPK); return 2012;}
553 game.prop[BOTTLE]=MOD(COND[game.loc],4)/2*2;
563 static int find(token_t obj)
564 /* Find. Might be carrying it, or it might be here. Else give caveat. */
567 (LIQUID() == obj && AT(BOTTLE)) ||
568 obj == LIQLOC(game.loc) ||
569 (obj == DWARF && ATDWRF(game.loc) > 0))
571 if (game.closed)SPK=138;
572 if (TOTING(obj))SPK=24;
577 static int fly(token_t obj)
578 /* Fly. Snide remarks unless hovering rug is here. */
580 if (obj == INTRANSITIVE) {
581 if (game.prop[RUG] != 2)SPK=224;
582 if (!HERE(RUG))SPK=225;
595 if (game.prop[RUG] != 2) {RSPEAK(SPK); return 2012;}
596 game.oldlc2=game.oldloc;
597 game.oldloc=game.loc;
598 game.newloc=game.place[RUG]+game.fixed[RUG]-game.loc;
600 if (game.prop[SAPPH] >= 0)SPK=227;
605 static int inven(token_t obj)
606 /* Inventory. If object, treat same as find. Else report on current burden. */
610 for (i=1; i<=NOBJECTS; i++) {
611 if (i == BEAR || !TOTING(i))
613 if (SPK == 98)RSPEAK(99);
625 int light(token_t obj)
626 /* Light. Applicable only to lamp and urn. */
628 if (obj == INTRANSITIVE) {
629 if (HERE(LAMP) && game.prop[LAMP] == 0 && game.limit >= 0)obj=LAMP;
630 if (HERE(URN) && game.prop[URN] == 1)obj=obj*NOBJECTS+URN;
631 if (obj == INTRANSITIVE || obj == 0 || obj > NOBJECTS) return(8000);
636 if (game.prop[URN] == 0)
637 {RSPEAK(SPK); return 2012;}
649 if (game.limit < 0) {
661 static int listen(void)
662 /* Listen. Intransitive only. Print stuff based on objsnd/locsnd. */
669 if (k < 0) return(2012);
672 SETPRM(1,game.zzword,0);
673 for (i=1; i<=NOBJECTS; i++) {
674 if (!HERE(i) || OBJSND[i] == 0 || game.prop[i] < 0)
676 PSPEAK(i,OBJSND[i]+game.prop[i]);
678 if (i == BIRD && OBJSND[i]+game.prop[i] == 8)
685 static int lock(token_t verb, token_t obj)
686 /* Lock, unlock, no object given. Assume various things if present. */
689 if (obj == INTRANSITIVE) {
691 if (HERE(CLAM))obj=CLAM;
692 if (HERE(OYSTER))obj=OYSTER;
693 if (AT(DOOR))obj=DOOR;
694 if (AT(GRATE))obj=GRATE;
695 if (obj != 0 && HERE(CHAIN)) return(8000);
696 if (HERE(CHAIN))obj=CHAIN;
697 if (obj == 0) {RSPEAK(SPK); return 2012;}
700 /* Lock, unlock object. Special stuff for opening clam/oyster
702 if (obj == CLAM || obj == OYSTER)
703 return bivalve(verb, obj);
704 if (obj == DOOR)SPK=111;
705 if (obj == DOOR && game.prop[DOOR] == 1)SPK=54;
706 if (obj == CAGE)SPK=32;
707 if (obj == KEYS)SPK=55;
708 if (obj == GRATE || obj == CHAIN)SPK=31;
709 if (SPK != 31 || !HERE(KEYS)) {
717 if (!game.panic)game.clock2=15;
722 SPK=34+game.prop[GRATE];
724 if (verb == LOCK)game.prop[GRATE]=0;
725 SPK=SPK+2*game.prop[GRATE];
730 static int pour(token_t obj)
731 /* Pour. If no object, or object is bottle, assume contents of bottle.
732 * special tests for pouring water or oil on plant or rusty door. */
734 if (obj == BOTTLE || obj == 0)obj=LIQUID();
735 if (obj == 0) return(8000);
736 if (!TOTING(obj)) {RSPEAK(SPK); return 2012;}
738 if (obj != OIL && obj != WATER) {RSPEAK(SPK); return 2012;}
739 if (HERE(URN) && game.prop[URN] == 0)
744 if (!(AT(PLANT) || AT(DOOR)))
745 {RSPEAK(SPK); return 2012;}
748 if (obj != WATER) {RSPEAK(SPK); return 2012;}
749 PSPEAK(PLANT,game.prop[PLANT]+3);
750 game.prop[PLANT]=MOD(game.prop[PLANT]+1,3);
751 game.prop[PLANT2]=game.prop[PLANT];
756 if (obj == OIL)game.prop[DOOR]=1;
757 SPK=113+game.prop[DOOR];
763 static int quit(FILE *input)
764 /* Quit. Intransitive only. Verify intent and exit if that's what he wants. */
766 if (YES(input,22,54,54))
771 static int read(FILE *input, token_t obj)
772 /* Read. Print stuff based on objtxt. Oyster (?) is special case. */
775 if (obj == INTRANSITIVE) {
777 for (i=1; i<=NOBJECTS; i++) {
778 if (HERE(i) && OBJTXT[i] != 0 && game.prop[i] >= 0)
779 obj = obj * NOBJECTS + i;
781 if (obj > NOBJECTS || obj == 0 || DARK(game.loc)) return(8000);
784 if (DARK(game.loc)) {
789 if (OBJTXT[obj] == 0 || game.prop[obj] < 0)
790 {RSPEAK(SPK); return 2012;}
791 if (obj == OYSTER && !game.clshnt) {
792 game.clshnt=YES(input,192,193,54);
795 PSPEAK(obj,OBJTXT[obj]+game.prop[obj]);
799 static int reservoir(void)
800 /* Z'ZZZ (word gets recomputed at startup; different each game). */
802 if (!AT(RESER) && game.loc != game.fixed[RESER]-1) {RSPEAK(SPK); return 2012;}
803 PSPEAK(RESER,game.prop[RESER]+1);
804 game.prop[RESER]=1-game.prop[RESER];
805 if (AT(RESER)) return(2012);
806 game.oldlc2=game.loc;
812 static int rub(token_t obj)
813 /* Rub. Yields various snide remarks except for lit urn. */
815 if (obj != LAMP)SPK=76;
816 if (obj != URN || game.prop[URN] != 2) {RSPEAK(SPK); return 2012;}
818 DROP(AMBER,game.loc);
821 DROP(CAVITY,game.loc);
828 /* SAY. Echo WD2 (or WD1 if no WD2 (SAY WHAT?, etc.).) Magic words override. */
830 /* FIXME: ugly use of globals */
831 SETPRM(1,WD2,WD2X); if (WD2 <= 0)SETPRM(1,WD1,WD1X);
833 int wd=VOCAB(WD1,-1);
834 if (wd == 62 || wd == 65 || wd == 71 || wd == 2025 || wd == 2034) {
843 static int throw_support(long spk)
851 static int throw(FILE *cmdin, long verb, long obj)
852 /* Throw. Same as discard unless axe. Then same as attack except
853 * ignore bird, and if dwarf is present then one might be killed.
854 * (Only way to do so!) Axe also special for dragon, bear, and
855 * troll. Treasures special for troll. */
857 if (TOTING(ROD2) && obj == ROD && !TOTING(ROD))obj=ROD2;
859 {RSPEAK(SPK); return 2012;}
860 if (obj >= 50 && obj <= MAXTRS && AT(TROLL)) {
862 /* Snarf a treasure for the troll. */
865 MOVE(TROLL+NOBJECTS,0);
866 DROP(TROLL2,PLAC[TROLL]);
867 DROP(TROLL2+NOBJECTS,FIXD[TROLL]);
872 if (obj == FOOD && HERE(BEAR)) {
873 /* But throwing food is another story. */
878 return(discard(obj, false));
879 int i=ATDWRF(game.loc);
881 if (AT(DRAGON) && game.prop[DRAGON] == 0) {
883 return throw_support(SPK);
887 return throw_support(SPK);
891 return throw_support(SPK);
893 if (HERE(BEAR) && game.prop[BEAR] == 0) {
894 /* This'll teach him to throw the axe at the bear! */
900 {RSPEAK(SPK); return 2012;}
902 return(attack(cmdin, verb, 0));
905 if (randrange(NDWARVES+1) < game.dflag) {
907 return throw_support(SPK);
913 if (game.dkill == 1)SPK=149;
915 return throw_support(SPK);
918 static int vscore(void)
919 /* Score. Call scoring routine but tell it to return. */
925 static int wake(token_t obj)
926 /* Wake. Only use is to disturb the dwarves. */
928 if (obj != DWARF || !game.closed) {RSPEAK(SPK); return 2012;}
933 static int wave(token_t obj)
934 /* Wave. No effect unless waving rod at fissure or at bird. */
936 if ((!TOTING(obj)) && (obj != ROD || !TOTING(ROD2)))SPK=29;
939 (!HERE(BIRD) && (game.closng || !AT(FISSUR)))) {
943 if (HERE(BIRD))SPK=206+MOD(game.prop[BIRD],2);
944 if (SPK == 206 && game.loc == game.place[STEPS] && game.prop[JADE] < 0) {
953 RSPEAK(SPK); /* FIXME: How is SPK set here? */
956 if (game.closng || !AT(FISSUR)) {RSPEAK(SPK); return 2012;}
957 if (HERE(BIRD))RSPEAK(SPK);
958 game.prop[FISSUR]=1-game.prop[FISSUR];
959 PSPEAK(FISSUR,2-game.prop[FISSUR]);
964 int action(FILE *input, enum speechpart part, long verb, long obj)
965 /* Analyse a verb. Remember what it was, go back for object if second word
966 * unless verb is "say", which snarfs arbitrary second word.
973 /* Analyse an object word. See if the thing is here, whether
974 * we've got a verb yet, and so on. Object must be here
975 * unless verb is "find" or "invent(ory)" (and no new verb
976 * yet to be analysed). Water and oil are also funny, since
977 * they are never actually dropped at any location, but might
978 * be here inside the bottle or urn or as a feature of the
982 else if (obj == GRATE) {
983 if (game.loc == 1 || game.loc == 4 || game.loc == 7)
985 if (game.loc > 9 && game.loc < 15)
990 else if (obj == DWARF && ATDWRF(game.loc) > 0)
992 else if ((LIQUID() == obj && HERE(BOTTLE)) || obj == LIQLOC(game.loc))
994 else if (obj == OIL && HERE(URN) && game.prop[URN] != 0) {
998 else if (obj == PLANT && AT(PLANT2) && game.prop[PLANT2] != 0) {
1002 else if (obj == KNIFE && game.knfloc == game.loc) {
1005 {RSPEAK(SPK); return 2012;}
1007 else if (obj == ROD && HERE(ROD2)) {
1011 else if ((verb == FIND || verb == INVENT) && WD2 <= 0)
1029 if (WD2 > 0 && verb != SAY) return(2800);
1030 if (verb == SAY)obj=WD2;
1032 /* Analyse an intransitive verb (ie, no object given yet). */
1034 case 0: /* CARRY */ return carry(INTRANSITIVE);
1035 case 1: /* DROP */ return(8000);
1036 case 2: /* SAY */ return(8000);
1037 case 3: /* UNLOC */ return lock(verb, INTRANSITIVE);
1038 case 4: /* NOTHI */ {RSPEAK(54); return(20012);}
1039 case 5: /* LOCK */ return lock(verb, INTRANSITIVE);
1040 case 6: /* LIGHT */ return light(INTRANSITIVE);
1041 case 7: /* EXTIN */ return extinguish(INTRANSITIVE);
1042 case 8: /* WAVE */ return(8000);
1043 case 9: /* CALM */ return(8000);
1044 case 10: /* WALK */ {RSPEAK(SPK); return 2012;}
1045 case 11: /* ATTAC */ return attack(input, verb, obj);
1046 case 12: /* POUR */ return pour(obj);
1047 case 13: /* EAT */ return eat(INTRANSITIVE);
1048 case 14: /* DRINK */ return drink(obj);
1049 case 15: /* RUB */ return(8000);
1050 case 16: /* TOSS */ return(8000);
1051 case 17: /* QUIT */ return quit(input);
1052 case 18: /* FIND */ return(8000);
1053 case 19: /* INVEN */ return inven(obj);
1054 case 20: /* FEED */ return(8000);
1055 case 21: /* FILL */ return fill(obj);
1056 case 22: /* BLAST */ return blast();
1057 case 23: /* SCOR */ return vscore();
1058 case 24: /* FOO */ return bigwords(WD1);
1059 case 25: /* BRIEF */ return brief();
1060 case 26: /* READ */ return read(input, INTRANSITIVE);
1061 case 27: /* BREAK */ return(8000);
1062 case 28: /* WAKE */ return(8000);
1063 case 29: /* SUSP */ return saveresume(input, false);
1064 case 30: /* RESU */ return saveresume(input, true);
1065 case 31: /* FLY */ return fly(INTRANSITIVE);
1066 case 32: /* LISTE */ return listen();
1067 case 33: /* ZZZZ */ return reservoir();
1073 /* Analyse a transitive verb. */
1075 case 0: /* CARRY */ return carry(obj);
1076 case 1: /* DROP */ return discard(obj, false);
1077 case 2: /* SAY */ return say();
1078 case 3: /* UNLOC */ return lock(verb, obj);
1079 case 4: /* NOTHI */ {RSPEAK(54); return(20012);}
1080 case 5: /* LOCK */ return lock(verb, obj);
1081 case 6: /* LIGHT */ return light(obj);
1082 case 7: /* EXTI */ return extinguish(obj);
1083 case 8: /* WAVE */ return wave(obj);
1084 case 9: /* CALM */ {RSPEAK(SPK); return 2012;}
1085 case 10: /* WALK */ {RSPEAK(SPK); return 2012;}
1086 case 11: /* ATTAC */ return attack(input, verb, obj);
1087 case 12: /* POUR */ return pour(obj);
1088 case 13: /* EAT */ return eat(obj);
1089 case 14: /* DRINK */ return drink(obj);
1090 case 15: /* RUB */ return rub(obj);
1091 case 16: /* TOSS */ return throw(input, verb, obj);
1092 case 17: /* QUIT */ {RSPEAK(SPK); return 2012;}
1093 case 18: /* FIND */ return find(obj);
1094 case 19: /* INVEN */ return find(obj);
1095 case 20: /* FEED */ return feed(obj);
1096 case 21: /* FILL */ return fill(obj);
1097 case 22: /* BLAST */ return blast();
1098 case 23: /* SCOR */ {RSPEAK(SPK); return 2012;}
1099 case 24: /* FOO */ {RSPEAK(SPK); return 2012;}
1100 case 25: /* BRIEF */ {RSPEAK(SPK); return 2012;}
1101 case 26: /* READ */ return read(input, obj);
1102 case 27: /* BREAK */ return vbreak(obj);
1103 case 28: /* WAKE */ return wake(obj);
1104 case 29: /* SUSP */ {RSPEAK(SPK); return 2012;}
1105 case 30: /* RESU */ {RSPEAK(SPK); return 2012;}
1106 case 31: /* FLY */ return fly(obj);
1107 case 32: /* LISTE */ {RSPEAK(SPK); return 2012;}
1108 case 33: /* ZZZZ */ return reservoir();
1112 /* Unknown verb, couldn't deduce object - might need hint */