version 1.8 | | version 1.9 |
---|
| | |
| | /* |
| | * static char *rcsid_map_c = |
| | * "$Id: random_map.h,v 1.9 2001/10/07 06:45:40 mwedel Exp $"; |
| | */ |
| | |
| | /* |
| | CrossFire, A Multiplayer game for X-windows |
| | |
| | Copyright (C) 2001 Mark Wedel & Crossfire Development Team |
| | Copyright (C) 1992 Frank Tore Johansen |
| | |
| | This program is free software; you can redistribute it and/or modify |
| | it under the terms of the GNU General Public License as published by |
| | the Free Software Foundation; either version 2 of the License, or |
| | (at your option) any later version. |
| | |
| | This program is distributed in the hope that it will be useful, |
| | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| | GNU General Public License for more details. |
| | |
| | You should have received a copy of the GNU General Public License |
| | along with this program; if not, write to the Free Software |
| | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| | |
| | The authors can be reached via e-mail at crossfire-devel@real-time.com |
| | */ |
| | |
#ifndef RANDOM_MAP_H | | #ifndef RANDOM_MAP_H |
#define RANDOM_MAP_H | | #define RANDOM_MAP_H |
| | |
#define SQUARE_SPIRAL_LAYOUT 6 | | #define SQUARE_SPIRAL_LAYOUT 6 |
#define NROFLAYOUTS 6 | | #define NROFLAYOUTS 6 |
| | |
| | /* |
| | * Move these defines out of room_gen_onion.c to here, as |
| | * other files (like square_spiral) also uses them. |
| | |
| | options: |
| | 0 Pick random options below |
| | 1 "centered" |
| | 2 linear doors (default is nonlinear) |
| | 4 bottom "centered" |
| | 8 bottom-right centered |
| | 16 irregularly/randomly spaced layers (default: regular) |
| | 32 outer wall off: i.e., no outer wall. |
| | |
| | */ |
| | |
| | #define OPT_RANDOM 0 |
| | #define OPT_CENTERED 1 |
| | #define OPT_LINEAR 2 |
| | #define OPT_BOTTOM_C 4 |
| | #define OPT_BOTTOM_R 8 |
| | #define OPT_IRR_SPACE 16 |
| | #define OPT_WALL_OFF 32 |
#define OPT_WALLS_ONLY 64 | | #define OPT_WALLS_ONLY 64 |
| | #define OPT_NO_DOORS 256 /* Place walls insead of doors. Produces broken map. */ |
| | |
| | |
| | |
/* symmetry definitions--used in this file AND in treasure.c: | | /* symmetry definitions--used in this file AND in treasure.c: |
the numerical values matter so don't change them. */ | | the numerical values matter so don't change them. */ |