TourGuideclassextras.t[2319]

"Tour Guide" is a mix-in class for Actors. This class can be multiply inherited by objects along with Actor or a subclass of Actor. This mix-in makes the Follow action, when applied to the tour guide, initiate travel according to where the tour guide wants to go next. So, if the tour guide is here and is waving us through the door, FOLLOW GUIDE will initiate travel through the door.

This class should appear in the superclass list ahead of Actor or the Actor subclass.

class TourGuide :   object

Superclass Tree   (in declaration order)

TourGuide
        object

Subclass Tree  

(none)

Global Objects  

(none)

Summary of Properties  

(none)

Summary of Methods  

dobjFor(Follow)  getTourDest 

Properties  

(none)

Methods  

dobjFor(Follow)extras.t[2320]

no description available

getTourDest ( )extras.t[2376]
Get the travel connector that takes us to our next guided tour destination. By default, this returns the escortDest from our current actor state if our state is a guided tour state, or nil if our state is any other kind of state. Subclasses must override this if they use other kinds of states to represent guided tours, since we'll only detect that we're in a guided tour state if our current actor state object is of class GuidedTourState (or any subclass).

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