Inform - Support - Source

Back to List

Inventory
Complete

Backward
Forward

Plain
Coloured
Gaudy

This code
in plain text

Browsing parserm.h

GetGNAOfObject (lines 4287-4300)

4287  [ GetGNAOfObject obj case gender;
4288      if (obj hasnt animate) case = 6;
4289      if (obj has male) gender = male;
4290      if (obj has female) gender = female;
4291      if (obj has neuter) gender = neuter;
4292      if (gender == 0) {
4293          if (case == 0) gender = LanguageAnimateGender;
4294          else gender = LanguageInanimateGender;
4295      }
4296      if (gender == female)   case = case + 1;
4297      if (gender == neuter)   case = case + 2;
4298      if (obj has pluralname) case = case + 3;
4299      return case;
4300  ];


Last updated 27 February 2004. The librarian in charge of this page is Graham Nelson (graham@gnelson.demon.co.uk) assisted by C Knight. Please email any comments, suggestions or corrections to cedenqs@inform-fiction.org.