From 4ec96204c811bcc0d8b339e2aab326a017fe397a Mon Sep 17 00:00:00 2001 From: Jason Self Date: Sun, 2 Jun 2019 16:00:59 -0700 Subject: [PATCH] Add Library routines --- inflibqr/inflibqr.md | 53 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/inflibqr/inflibqr.md b/inflibqr/inflibqr.md index d351e87..713e86a 100644 --- a/inflibqr/inflibqr.md +++ b/inflibqr/inflibqr.md @@ -140,4 +140,55 @@ the_time - The game's clock, in minutes 0..1439 since midnight. turns - The game's turn counter. -wn - The input stream word number, counting from 1. \ No newline at end of file +wn - The input stream word number, counting from 1. + +Library routines +---------------- + +Achieved(*expr*) - A scored task has been achieved. + +AfterRoutines() - In a group 2 action, controls output of 'after' +messages. + +AllowPushDir() - An object can be pushed from one location to another. + +Banner() - Prints the game banner. + +ChangePlayer(*object*,*flag*) - Player assumes the persona of the +*object*. If the optional *flag* is *true*, room descriptions include +"(as *object*)". + +CommonAncestor(*object1*,*object2*) - Returns the nearest object which +a parental relationship to both *objects*, or `nothing`. + +DictionaryLookup(*byte_array*,*length*) - Returns address of word in +dictionary, or 0 if not found. + +DrawStatusLine() - Refreshes the status line. + +GetGNAOfObject(*object*) - Returns gender-number-animation 0..11 of +the *object*. + +HasLightSource(*object*) - Returns `true` if the *object* has light. + +IndirectlyContains(*parent_object*,*object*) - Returns true if object +is currently a child or grand-child or great-grand-child... of the +*parent_object*. + +IsSeeThrough(*object*) - Returns `true` if light can pass through the +*object*. + +Locale(*object*,"*string1*","*string2*") - Describes the contents of +object, and returns their number. After objects with own paragraphs, +the rest are listed preceded by *string1* or *string2*. + +LoopOverScope(*routine*,*actor*) - Calls *routine*(*object*) for each +*object* in scope. If the optional *actor* is supplied, that defines +the scope. + +MoveFloatingObjects() - Adjusts positions of game's `found_in` +objects. + +NextWord() - Returns the next dictionary word in the input stream, +incrementing *wn* by one. Returns `false` if the word is not in the +dictionary, or if the input stream is exhausted. \ No newline at end of file -- 2.31.1