Refers (lines 3332-3356)
Back to List
Browsing parserm.h
3332 ! Refers works out whether the word at number wnum can refer to the object
3333 ! obj, returning true or false. The standard method is to see if the
3334 ! word is listed under "name" for the object, but this is more complex
3335 ! in languages other than English.
3336 ! ----------------------------------------------------------------------------
3337
3338 [ Refers obj wnum wd k l m;
3339 if (obj==0) rfalse;
3340
3341 #ifdef LanguageRefers;
3342 k = LanguageRefers(obj,wnum); if (k>=0) return k;
3343 #endif;
3344
3345 k = wn; wn = wnum; wd = NextWordStopped(); wn = k;
3346
3347 if (parser_inflection >= 256)
3348 { k = indirect(parser_inflection, obj, wd);
3349 if (k>=0) return k;
3350 m = -k;
3351 } else m = parser_inflection;
3352 k=obj.&m; l=(obj.#m)/2-1;
3353 for (m=0:m<=l:m++)
3354 if (wd==k-->m) rtrue;
3355 rfalse;
3356 ];
Last updated 27 February 2004.
This site is no longer supported; information may be out of date.
Maintained as a historical archive by the Interactive Fiction Technology Foundation.
Copyright 1993-2018 IFTF, CC-BY-SA unless otherwise noted.
This page was originally managed by Graham Nelson (graham@gnelson.demon.co.uk) assisted by C Knight.