London Cabs

 

 

User’s Guide

 

Version 1.0.2

 

 

LondonCabs is a collection of interrelated modules that demonstrate a simulation of the hansom and growler cab system used by Infocom’s Sherlock: The Riddle of the Crown Jewels.

 

Thanks to Michael J. Roberts for his many suggestions.

 

Copyright © 2004 - 2005 by Kevin Forchione. All rights reserved.


Contents

 

Getting Started.. 3

 

 


Getting Started

Nothing could be easier. Simply add the files

 

  • londoncabs.tl (library file)

 

to your project source files after those for the TADS 3 system and library files.

 

Then #include the londoncabs.h header file to any source files you need to define TravelDestTopic objects for.

 

Next, define a whistle object, suitable for blowing:

 

whistle: Whistle

{

    'whistle' 'whistle' @me

    wornBy = me

}

 

Finally, we define destination travel topics for each travel location that available to our hansom and growler cabs. For instance, if you’re using the introductory source code provided with TADS 3 Workbench, we could define destinations for the entryway and hallway:

 

/*

 *  Define a DestTravelTopic for the entryway

 */

DefineDestTravelTopic(entryway, 'entryway')

;

 

/*

 *  Define a DestTravelTopic for the hallway

 */

DefineDestTravelTopic(hallway, 'hallway')

;

 

Each of these macros defines a travel destination topic object. The macro indicates a travel destination and a series of keywords for matching player input. We can place these DefineDestTravelTopic macros in any source file that #includes the londoncabs.h header file.

 

That’s all there is to it! Simply Compile the project, and enjoy the simulation.