Contents | Index | < Browse | Browse >
2.2. Verbs
Verbs are the means whereby a player manipulates the
environment. Verbs can denote motion, investigation, mani-
pulation, and any other action the ADL programmer can ima-
gine. A Verb is represented by a sixteen-bit integer known
as the Verb ID. Like Objects, Verbs are record structures.
They have the following elements:
PREACT The ID of a routine to be called when this
Verb is typed by the player. The routine is
called before the ACTION routines of the
Objects in the sentence. See Chapter 4 for
more information.
ACTION The ID of a routine to be called when this
Verb is typed by the player. This routine is
called after the ACTION routines of the
Objects in the sentence. Again, see Chapter 4
for more information.
Verbs may also be used as modifiers to nouns. This is
to allow easy implementation of Objects like the "north
wall" or "go north" (where "north" is normally a verb of
motion).
ADL predeclares the two Verbs "TELLER" and "NOVERB"
which are returned by the parser under circumstances shown
in Chapter 9. Although TELLER and NOVERB are predeclared,
their properties must be defined by the ADL programmer.