[ Package Index | Mudlib Index | Effect Index ]

File /std/book_dir.c

Make a book with all the files in a dir.

Written by Pinkfish


Inherits

This class inherits the following classes /std/book.c

Includes

This class includes the following files /include/nroff.h

Method index

 o query_language()
Returns the language of the book
 o set_book_dir(string)
Sets the directory to look for the book pages in.

Public Functions

These are functions that everyone can access.

.
 * query_language
string query_language()
Returns the language of the book

 * set_book_dir
void set_book_dir(string dir)
Sets the directory to look for the book pages in. It scans every file in this dir to get the pages for the book. This sets the default paper to /obj/misc/nroff_paper.c

Parameters:
dir - the directory in which to search
See also:
/obj/misc/nroff_paper.c
Example:
inherit "/std/book_dir";

void setup() {
   ...
   set_book_dir("/save/books/dead/dead_page");
   ...
} /* setup() */

Discworld MUD's distribution world wide web pages.
brought to you by
Cut Me Own Throat Dibbler's Sensational Sausages; buy one while they are hot.
File last modified: Sat, 06 Sep 2003 02:27:28 GMT

Lost? Try Discworld's home page.