TravelBarrier class | travel.t[1658]

A TravelBarrier can be attached to a TravelConnector, via the travelBarrier property, to form a conditional barrier to travel.

`class TravelBarrier : object`

Superclass Tree (in declaration order)

`TravelBarrier`
`object`

Subclass Tree

`TravelBarrier`
`PushTravelBarrier`
`VehicleBarrier`

Global Objects

(none)

Summary of Properties

``

(none)

Summary of Methods

`canTravelerPass explainTravelBarrier`

Properties

(none)

Methods

`canTravelerPass (traveler)` | `travel.t[1664]`

Determine if this barrier blocks the given traveler. By default, we don't block anyone. This doesn't make us much of a barrier, so subclasses should override this with a more specific condition.

`explainTravelBarrier (traveler)` | `travel.t[1672]`

Explain why travel isn't allowed. This should generate an appropriate failure report explaining the problem. This is invoked when travel is attempted and canTravelerPass returns nil. Subclasses must override this.

TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3