mapper.h

eldhamud/src/mapper.h · 671 B

From the archive eldhamud.1.0.0.2.tar.gz

Download the archive   « Back to the archive contents

/* Defines for ASCII Automapper */

#define MAPX     10
#define MAPY      8
/* You can change MAXDEPTH to 1 if the diagonal directions are confusing */
#define MAXDEPTH  2

#define BOUNDARY(x, y) (((x) < 0) || ((y) < 0) || ((x) > MAPX) || ((y) > MAPY))

typedef struct  map_type                MAP_TYPE;

/* Structure for the map itself */
struct map_type
{
  char   tegn;  /* Character to print at this map coord */
  int    vnum;  /* Room this coord represents */
  int    depth; /* Recursive depth this coord was found at */
  EXT_BV    info;
  bool   can_see;
};

/* mapper.c */
char *get_exits(CHAR_DATA *ch);


/* act_info.c */
bool check_blind( CHAR_DATA *ch );


Site Stats

Snippets: 1791
Codebases: 571