run
run
is a command for executing property routines.
If
object term_switch "on/off switch"
{
nouns "switch", "on/off"
adjectives "on/off"
article "an"
inherits component
part_of terminal
is switchable
long_desc {
if (terminal is not moved) and (covegn.found_in = location) {
run terminal.long_desc
} else {
print "It's "; The(self); " for "; The(terminal); "."
}
}
before {
object DoPush, DoTouch {
if (terminal is switchedon) {
perform(&DoSwitchOff,terminal)
} else {
perform(&DoSwitchOn,terminal)
}
}
object DoSwitchOn,DoSwitchOff {
perform(verbroutine,terminal,xobject)
}
}
}