<html><head><title>
POO lib: exitLister
</title></head><body><center>
<h3>POO Library</h3>
<h1>$pub.rooms.exitLister</h1>
</center>

This is a type of room that lists its exits.

<hr>
<pre>
"Creating exitLister (a room that lists its exits)"
@create $place as exitLister
@newfunc exitLister.description(self,looker)
# first, get the room name and the standard description
desc = super(looker) + "\n   Exits:\n"
# then add a list of exits
cnt = 0
for item in self.contents():
    if callable(item.invoke) and type(item.dest)==InstanceType:
        desc = desc + "       %-6s -- %s\n" \
            % (item.name, item.dest.name)
        cnt = cnt + 1
if not cnt: desc = desc + "       (None)\n"
return desc
.x
@set exitLister.f = 1
beam exitLister to $pub.rooms

</pre><hr>

<h3>Usage</h3>

If you're creating new rooms by hand (rather than using @dig), you can
simply derive them from <tt>$pub.rooms.exitLister</tt> instead of 
<tt>$place</tt> (which is the same as <tt>$pub.rooms.place</tt>).
To change existing rooms, just use the following command:
<pre>    @set here.parents = $pub.rooms.exitLister
</pre>

<p><hr>
<address>
http://www.strout.net/python/poo/lib/exitLister.html
<br>Last Updated:
6/07/97
. . . . . . <a href="http://www.strout.net/">Joe Strout</a>
</address>
</body></html>