UnlistedProxyConnector class | travel.t[1688]

An "unlisted proxy" connector acts as a proxy for another connector. We act exactly like the underlying connector, except that we suppress the connector from automatic exit lists. This can be used for cases where an otherwise normal connector is needed but the connector is not to appear in automatic exit lists (such as the status line).

The most common situation where this kind of connector is useful is where multiple directions in a given room all go to the same destination. In these cases, it's often desirable for some of the directions to be unlisted alternatives. The asExit() macro can be used for convenience to set up these direction synonyms.

`class UnlistedProxyConnector : object`

Superclass Tree (in declaration order)

`UnlistedProxyConnector`
`object`

Subclass Tree

(none)

Global Objects

(none)

Summary of Properties

`isConnectorListed primaryConn`

Summary of Methods

`construct dobjFor(TravelVia) ofKind propNotDefined`

Properties

`isConnectorListed` | `travel.t[1705]`

we're not listed

`primaryConn` | `travel.t[1702]`

Our underlying connector. Start out with a default TadsObject rather than nil in case anyone wants to call a property or test inheritance before we're finished with our constructor - this will produce reasonable default behavior without having to test for nil everywhere.

Methods

`construct (pri)` | `travel.t[1689]`

no description available

`dobjFor(TravelVia)` | `travel.t[1708]`

map any TravelVia action to our underlying connector

`ofKind (cls)` | `travel.t[1721]`

As a proxy, we don't want to disguise the fact that we're a proxy, if someone specifically asks, so admist to being of our own true kind; but we also act mostly like our underlying connector, so if someone wants to know if we're one of those, say yes to that as well. So, return true if the inherited version returns true, and also return true if our primary connector would return true.

`propNotDefined (prop, [args])` | `travel.t[1711]`

redirect everything we don't handle to the underlying connector

TADS 3 Library Manual
Generated on 8/21/2012 from TADS version 3.1.2