[ Package Index | Mudlib Index | Effect Index ]

Inherits

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

Includes

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

Method index

 o set_map(string)
Function to set the map to one of the standard areas.
 o setup_map(int, int, int, int, int)
Function to setup the details of the map.

Public Functions

These are functions that everyone can access.

.
 * set_map
void set_map(string area)
Function to set the map to one of the standard areas. If you wish to have the map cover a custom area use setup_map.

Parameters:
area - the area of Discworld the map should cover.
 * setup_map
void setup_map(int x1,
               int y1,
               int x2,
               int y2,
               int detail)
Function to setup the details of the map. The first two params give the coordinates of the top left corner of the map and the second two the coordinates of the lower right corner. The detail indicates the level of detail. This is given in terms of the distance from which objects are visible. For example a low-detail map might show objects that are visible from 200 miles or more whereas a more detailed map may show items down to 50 miles visibility.

Parameters:
x1 - x part of the top left corner
y1 - y part of the top left corner
x2 - x part of the lower right corner
y2 - y part of the lower right corner

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 03:38:14 GMT

Lost? Try Discworld's home page.