[Package Index | Mudlib Index | Effect Index]

File /obj/handlers/co_ordinate_handler.c

This is the handler for co-ordinates. Finds and sets co-ordinates for outside rooms. It works from specific fixed co-ordinate locations and finds the rooms as a web of relative connections for there.

Written by Pinkfish

Started Mon Nov 3 13:57:58 PST 2003

Includes

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

Class Index

Method index

Public Functions

These are functions that everyone can access.

look_for_deletions
void look_for_deletions()

This is a function which runs through and finds old outdated rooms and removes them. It looks for rooms that have been deleted etc.
query_fixed_rooms
string * query_fixed_rooms()

Returns the list of fixed rooms.
query_room_based_of
string query_room_based_of(string path)

This returns the room the co-ordinates for this room as based off.

Parameters:
path - the path the co-ordinates are based off

Returns:
the path


query_room_co_ords
int * query_room_co_ords(string path)

Find the room's co-ordinates.

Parameters:
room - the room to lookup

Returns:
the co-ordinates


query_room_direction
string query_room_direction(string path)

This returns the direction the co-ordinates for this room as based off.

Parameters:
path - the path the co-ordinates are based off

Returns:
the direction


query_rooms
mapping query_rooms()

Returns the current list of stored rooms.
remove_room
void remove_room(string path)

This removes a specific path from the list of remembered rooms.

Parameters:
path - the path to remove


setup_fixed_room
int setup_fixed_room(string path,
                     int * coords)

Sets up the specific co-ordinates for the specific room.

Parameters:
path - the path for the main room
coords - the coordinates to set


setup_room
int setup_room(string path)

Sets up the room, based on a room with a known co-ordinate and an exit direction. We search around to try and find a fixed co-ordinate room.

Parameters:
path - the room being setup


Classes

These are nice data types for dealing with... Data!