TravelMessageHandlerclass
Travel Message Handler. This contains a set of messages that are specific to different types of TravelConnector objects, to describe NPC arrivals and departures via these connectors when the NPC’s are in view of the player character.
This base class implements the methods simply by calling the corresponding gLibMessages message methods.
The purpose of providing this variety of connector-specific handlers is to make it easy for individual travelers to customize the arrival/departure messages for specific connector subclasses. These messages sometimes benefit from customization for specific traveler/connector combinations; the easiest way to enable such granular customization is to make it possible to override a message per connector type on the traveler object.
class
TravelMessageHandler
: object
Superclass Tree (in declaration order)
TravelMessageHandler
` object`
Subclass Tree
TravelMessageHandler
ActorState
AccompanyingInTravelState
GuidedInTravelState
AccompanyingState
GuidedTourState
ConversationReadyState
HermitActorState
InConversationState
Traveler
Actor
UntakeableActor
Person
Vehicle
Global Objects
(none)
Summary of Properties
(none)
Summary of Methods
getNominalTraveler
sayArriving
sayArrivingDir
sayArrivingDownStairs
sayArrivingLocally
sayArrivingThroughPassage
sayArrivingUpStairs
sayArrivingViaPath
sayDeparting
sayDepartingDir
sayDepartingDownStairs
sayDepartingLocally
sayDepartingThroughPassage
sayDepartingUpStairs
sayDepartingViaPath
sayTravelingRemotely
Properties
(none)
Methods
getNominalTraveler ( )
Get the traveler for the purposes of arrival/departure messages. Implementations that aren’t themselves the travelers should override this to supply the correct nominal traveler.
sayArriving (conn)
generic arrival/departure - for the base TravelConnector class
sayArrivingDir (dir, conn)
directional arrival/departure - for RoomConnector
sayArrivingDownStairs (conn)
no description available
sayArrivingLocally (dest, conn)
generic local arrival and departure messages
sayArrivingThroughPassage (conn)
arrival/departure via a ThroughPassage
sayArrivingUpStairs (conn)
arrival/departure up/down stairs
sayArrivingViaPath (conn)
arrival/departure via a PathPassage
sayDeparting (conn)
no description available
sayDepartingDir (dir, conn)
no description available
sayDepartingDownStairs (conn)
no description available
sayDepartingLocally (dest, conn)
no description available
sayDepartingThroughPassage (conn)
no description available
sayDepartingUpStairs (conn)
no description available
sayDepartingViaPath (conn)
no description available
sayTravelingRemotely (dest, conn)
generic remote travel message
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3