/*************************************************************************** * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * * Michael Seifert, Hans Henrik St{rfeldt, Tom Madsen, and Katja Nyboe. * * * * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * * Chastain, Michael Quan, and Mitchell Tse. * * * * Ack 2.2 improvements copyright (C) 1994 by Stephen Dooley * * * * In order to use any part of this Merc Diku Mud, you must comply with * * both the original Diku license in 'license.doc' as well the Merc * * license in 'license.txt'. In particular, you may not remove either of * * these copyright notices. * * * * _/ _/_/_/ _/ _/ _/ ACK! MUD is modified * * _/_/ _/ _/ _/ _/ Merc2.0/2.1/2.2 code * * _/ _/ _/ _/_/ _/ (c)Stephen Zepp 1998 * * _/_/_/_/ _/ _/ _/ Version #: 4.3 * * _/ _/ _/_/_/ _/ _/ _/ * * * * http://ackmud.nuc.net/ * * zenithar@ackmud.nuc.net * * Much time and thought has gone into this software and you are * * benefitting. We hope that you share your changes too. What goes * * around, comes around. * ***************************************************************************/ #define MAX_MAP 40 #define MAX_MAP_DIR 4 #define DOOR_HIDDEN -1 #define DOOR_LOCKED -2 #define DOOR_CLOSED -3 #define DOOR_OPEN -4 #define DOOR_NS -5 #define DOOR_EW -6 #define DOOR_NULL -7 #define LOS_INITIAL -6 #define MAP_Y 9 struct room_content_type { char string[10]; }; struct room_content_type m_contents[MAX_MAP][MAX_MAP]; int map[MAX_MAP][MAX_MAP]; struct map_info_type { int sector_type; char * display_color; char * display_code; char * invert_color; char * desc; }; void MapArea (ROOM_INDEX_DATA *room, CHAR_DATA *ch, int x, int y, int min, int max, int line_of_sight); void ShowMap(CHAR_DATA *ch, int min, int max, int size, int center); void ShowHalfMap(CHAR_DATA *ch, int min, int max); void do_printmap(CHAR_DATA *ch, char *argument); void ShowRoom(CHAR_DATA *ch, int min, int max, int size, int center); void do_map(CHAR_DATA *ch, char *argument); void do_smallmap(CHAR_DATA *ch, char *argument); void map_room(CHAR_DATA *ch, char *argument, ROOM_INDEX_DATA *room);