Example #1
0
 /*
  *  BLAST etc.
  */
 public static string vblast(State globals)
 {
     if (globals.prop[Definitions.ROD2] < 0 || !globals.closed)
     {
         return(actspk(globals.verb));
     }
     else
     {
         globals.bonus = 133;
         if (globals.loc == 115)
         {
             globals.bonus = 134;
         }
         if (Database.here(globals, Definitions.ROD2))
         {
             globals.bonus = 135;
         }
         string output = Database.rspeak(globals.bonus);
         return(output + Environment.NewLine + Turn.normend(globals));
     }
 }
Example #2
0
        /*
         *  Routines to process intransitive verbs
         */
        public static string itverb(State globals)
        {
            switch (globals.verb)
            {
            case Definitions.DROP:
            case Definitions.SAY:
            case Definitions.WAVE:
            case Definitions.CALM:
            case Definitions.RUB:
            case Definitions.THROW:
            case Definitions.FIND:
            case Definitions.FEED:
            case Definitions.BREAK:
            case Definitions.WAKE:
                return(needobj(globals));

            case Definitions.TAKE:
                return(ivtake(globals));

            case Definitions.OPEN:
            case Definitions.LOCK:
                return(ivopen(globals));

            case Definitions.NOTHING:
                return(Database.rspeak(54));

            case Definitions.ON:
            case Definitions.OFF:
            case Definitions.POUR:
                return(trverb(globals));

            case Definitions.WALK:
                return(actspk(globals.verb));

            case Definitions.KILL:
                return(ivkill(globals));

            case Definitions.EAT:
                return(iveat(globals));

            case Definitions.DRINK:
                return(ivdrink(globals));

            case Definitions.QUIT:
                return(Turn.normend(globals));

            case Definitions.FILL:
                return(ivfill(globals));

            case Definitions.BLAST:
                return(vblast(globals));

            case Definitions.SCORE:
                return(Turn.score(globals));

            case Definitions.FOO:
                return(ivfoo(globals));

            case Definitions.INVENTORY:
                return(inventory(globals));

            default:
                return("This intransitive not implemented yet\n");
            }
        }