TravelWithMessage class | travel.t[2015]

A mix-in class that can be added to objects that also inherit from TravelConnector to add a message as the connector is traversed.

Note that this isn't itself a travel connector; it's just a class that should be combined with TravelConnector or one of its subclasses. This class should be in the superclass list before the TravelConnector-derived superclass.

`class TravelWithMessage : object`

Superclass Tree (in declaration order)

`TravelWithMessage`
`object`

Subclass Tree

`TravelWithMessage`
`TravelMessage`
`DeadEndConnector`
`NoTravelMessage`
`FakeConnector`

Global Objects

(none)

Summary of Properties

`npcTravelDesc`

Summary of Methods

`noteTraversal showTravelDesc travelDesc`

Properties

`npcTravelDesc` | `travel.t[2033]`

My message to display when any non-player character traverses the connector. If this is not overridden, no message will be displayed when an NPC travels through the connector.

Methods

`noteTraversal (traveler)` | `travel.t[2048]`

on traversing the connector, show our message

`showTravelDesc ( )` | `travel.t[2039]`

Display my message. By default, we show one message for the player character and another message for NPC's.

`travelDesc ( )` | `travel.t[2022]`

My message to display when the player character traverses the connector. This should be overridden with the custom message for the connector. By default, if we're a Script, we'll invoke the script to show the next message.

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