PushTravelerclasstravel.t[3292], en_us.t[2765]

A special Traveler class for travel involving pushing an object from one room to another. This class encapsulates the object being pushed and the actual Traveler performing the travel.

For the most part, we refer Traveler methods to the underlying Traveler. We override a few methods to provide special handling.

Modified in en_us.t[2765]:
English-specific PushTraveler changes

class PushTraveler :   object

Superclass Tree   (in declaration order)

PushTraveler
        object

Subclass Tree  

(none)

Global Objects  

(none)

Summary of Properties  

obj_  traveler_ 

Summary of Methods  

canTravelVia  construct  explainNoTravelVia  propNotDefined  travelerName  travelerTravelTo 

Properties  

obj_travel.t[3301]

the object being pushed

traveler_travel.t[3307]
the underlying Traveler - this is the real Traveler that will move to a new location

Methods  

canTravelVia (connector, dest)travel.t[3357]

Can we travel via the given connector? We'll ask our underlying traveler first, and if that succeeds, we'll ask the object we're pushing.

construct (obj, traveler)travel.t[3293]
no description available

explainNoTravelVia (connector, dest)travel.t[3369]
Explain why the given travel is not possible. If our underlying traveler raised the objection, let it explain; otherwise, let our pushed object explain.

propNotDefined (prop, [args])travel.t[3378]
by default, send everything to the underlying Traveler

travelerName (arriving)en_us.t[2771]
When an actor is pushing an object from one room to another, show its name with an additional clause indicating the object being moved along with us.

travelerTravelTo (dest, connector, backConnector)travel.t[3315]
Travel to a new location. We'll run the normal travel routine for the underlying real traveler; then, if we ended up in a new location, we'll move the object being pushed to the traveler's new location.

TADS 3 Library Manual
Generated on 9/15/2006 from TADS version 3.0.12