PushTravelBarrierclasstravel.t[3430]

A PushTravelBarrier is a TravelConnector that allows regular travel, but not travel that involves pushing something. By default, we block all push travel, but subclasses can customize this so that we block only specific objects.

class PushTravelBarrier :   TravelBarrier

Superclass Tree   (in declaration order)

PushTravelBarrier
        TravelBarrier
                object

Subclass Tree  

(none)

Global Objects  

(none)

Summary of Properties  

(none)

Summary of Methods  

canPushedObjectPass  canTravelerPass  explainTravelBarrier 

Properties  

(none)

Methods  

canPushedObjectPass (obj)travel.t[3437]

Determine if the given pushed object is allowed to pass. Returns true if so, nil if not. By default, we'll return nil for every object; subclasses can override this to allow some objects to be pushed through the barrier but not others.

canTravelerPass (traveler)OVERRIDDENtravel.t[3451]
Determine if the given traveler can pass through this connector. If the traveler isn't a push traveler, we'll allow the travel; otherwise, we'll block the travel if our canPushedObjectPass routine says the object being pushed can pass.

explainTravelBarrier (traveler)OVERRIDDENtravel.t[3440]
explain why an object can't pass

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