[Package Index | Mudlib Index | Effect Index]
File /std/shops/book_shop.c
This is a specialisation of the craft shop inheritable. It adds in the
ability to read specified pages from books.Written by Pinkfish
Started Thu Sep 10 23:51:01 PDT 1998
Inherits
This class inherits the following classes /std/shops/craft_shop.cIncludes
This class includes the following files /include/shops/craft_shop.hMethod index
- browse_pages(object *)
This is like a normal browse, but it allows us to look at specific pages
in the book.
- choose_which_page(function, int, string, object *)
This method gets the player to choose a page to allow to browse
Public Functions
These are functions that everyone can access.
.
int browse_pages(object * obs)
This is like a normal browse, but it allows us to look at specific pages
in the book.
- Parameters:
number - the page number to browse
obs - the objects whose pages to browse
- Returns:
0 on failure, 1 on success
Protected Functions
These are functions that only objects inheriting the class can access.
int choose_which_page(function end_func,
int value,
string name,
object * sellables)
This method gets the player to choose a page to allow to browse
- Parameters:
end_func - the function to evaluate when finished
value - the value of the sellables
name - the name to sell the object for
sellables - the objects to sell