|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T d
Length: 1146 (0x47a) Types: TextFile Names: »dir.h«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/X/Xconq/dir.h«
/* Copyright (c) 1987, 1988 Stanley T. Shebs, University of Utah. */ /* This program may be used, copied, modified, and redistributed freely */ /* for noncommercial purposes, so long as this notice remains intact. */ /* RCS $Header: dir.h,v 1.1 88/06/21 12:29:39 shebs Exp $ */ /* Definitions for directions of the compass. */ /* The terrain model is based on hexes arranged in horizontal rows. This */ /* means that although east and west remain intact, the concepts of north */ /* and south have basically vanished. */ /* Unfortunately, not all hex-dependent definitions are here. Pathfinding */ /* code has some knowledge of hexes also, as does map generation. */ #define NUMDIRS 6 #define NE 0 #define EAST 1 #define SE 2 #define SW 3 #define WEST 4 #define NW 5 #define DIRNAMES { "NE", "E", "SE", "SW", "W", "NW" } #define DIRX { 0, 1, 1, 0, -1, -1 } #define DIRY { 1, 0, -1, -1, 0, 1 } #define DIRCHARS "ulnbhy" #define random_dir() (random(6)) #define for_all_directions(dir) for (dir = 0; dir < 6; ++dir) #define opposite_dir(d) (((d) + 3) % 6) extern char *dirnames[]; extern int dirx[], diry[];