I'm still a bit fuzzy on how to use GENERIC routines, but I think they have to do with parser disambiguation, e.g. GENERIC-BOOK-F makes it so that "EXAMINE BOOK" refers to the books in the bookstore until you've bought a book. Then it refers to that book.
Similarly, GENERIC-ROOM-F makes it so that "ROOM" refers to the current room. Except that in the SOLARIUM, "EXAMINE ROOM" refers to LIVING-ROOM-OBJECT because even though there is this:
(<EQUAL? ,HERE ,SOLARIUM>
,SOLARIUM-OBJECT)
it doesn't work because "ROOM" isn't a synonym for SOLARIUM-OBJECT. Should it be?
I'm still a bit fuzzy on how to use
GENERIC
routines, but I think they have to do with parser disambiguation, e.g.GENERIC-BOOK-F
makes it so that "EXAMINE BOOK" refers to the books in the bookstore until you've bought a book. Then it refers to that book.Similarly,
GENERIC-ROOM-F
makes it so that "ROOM" refers to the current room. Except that in theSOLARIUM
, "EXAMINE ROOM" refers toLIVING-ROOM-OBJECT
because even though there is this:it doesn't work because "ROOM" isn't a synonym for
SOLARIUM-OBJECT
. Should it be?