calc_co_ord |
Discworld room help |
calc_co_ord |
Name
calc_co_ord - Try and find a co-ordinate.
Syntax
void calc_co_ord();
Description
This trys to force the room to calculate its co-ordinate. It is normaly called in init so as to not load the entire mud when one room is loaded. Use this if you fail to get a co-ordinate from a room then call the query_co_ord function again to see if it has found a co_ord for you.
Example
mixed *find_co_ord(mixed room) {
if (!room->query_co_ord()) {
room->calc_co_ord();
return (mixed *)room->query_co_ord();
}
return (mixed *)room->query_co_ord();
} /* find_co_ord() */
See also
query_co_ord, set_co_ord