Definition in file bigmap.c.
#include "crogue.h"
#include "dll.h"
Go to the source code of this file.
Data Structures | |
| struct | mark |
| union | feature_info |
| struct | feature |
| struct | vaultdesc |
Defines | |
| #define | ROOMCONN_RETRIES 2 |
| #define | CORRIDOREND_RETRIES 10 |
| #define | CORRIDORBRANCH_RETRIES 2 |
| #define | ROOMSIZE_MAX_X 8 |
| #define | ROOMSIZE_MIN_X 4 |
| #define | ROOMSIZE_MAX_Y 8 |
| #define | ROOMSIZE_MIN_Y 4 |
| #define | CORRIDOR_MAX_LEN 10 |
| #define | CORRIDOR_MIN_LEN 4 |
| #define | TFLAG_CLEAN 1 |
| #define | TFLAG_RECEPTACLE 2 |
| #define | TFLAG_JUNCTION 4 /* Later, might put a door here */ |
| #define | NUM_TYPES 2 |
| #define | FEATURE_ROOM 0 |
| #define | FEATURE_CORRIDOR 1 |
| #define | FEATURE_VAULT 2 |
| #define | NUM_VAULT_TYPES 12 |
| #define | VAULTCHAR_BLANK '/' /* A tile that's not part of the vault */ |
| #define | VAULTCHAR_WALL_HARD '#' /* A 'hard' wall cannot be replaced */ |
| #define | VAULTCHAR_WALL_SOFT '$' /* A 'soft' wall could be connected to a */ |
| #define | VAULTCHAR_DOOR '+' |
| #define | VAULTCHAR_MARK_DOWN '2' /* These correspond to the num pad */ |
| #define | VAULTCHAR_MARK_LEFT '4' |
| #define | VAULTCHAR_MARK_RIGHT '6' |
| #define | VAULTCHAR_MARK_UP '8' |
| #define | DIR_RIGHT 0 |
| #define | DIR_UP 1 |
| #define | DIR_LEFT 2 |
| #define | DIR_DOWN 3 |
Typedefs | |
| typedef mark | mark |
| typedef feature_info | feature_info |
| typedef feature | feature |
| typedef vaultdesc | vaultdesc |
Functions | |
| void | bigmap_prepass (void) |
| int | bigmap_postpass (void) |
| void | bigmap_fill (void) |
| int | bigmap_place_feature (feature *feature, mark *marks, int *marks_pending) |
| int | bigmap_place_corridor (feature *feature, int dry, mark *marks, int *marks_pending) |
| int | bigmap_place_room (feature *feature, int dry, mark *marks, int *pending) |
| int | bigmap_place_vault (feature *feature, int dry, mark *marks, int *pending) |
| void | rand_feature (feature *feature, mark *m) |
| void | add_mark (int x, int y, int dir, mark *marks, int *pending, int retries) |
| int | mkmap_big (void) |
| int | is_in_bounds (scoord pos) |
Variables | |
| const vaultdesc | vaults [] |
| scoord | directions [4] |
|
|
Definition at line 33 of file bigmap.c. Referenced by rand_feature(). |
|
|
Definition at line 34 of file bigmap.c. Referenced by rand_feature(). |
|
|
Definition at line 28 of file bigmap.c. Referenced by bigmap_place_corridor(). |
|
|
|
|
|
Definition at line 305 of file bigmap.c. Referenced by bigmap_place_vault(). |
|
|
Definition at line 304 of file bigmap.c. Referenced by bigmap_place_vault(). |
|
|
Definition at line 302 of file bigmap.c. Referenced by bigmap_place_vault(). |
|
|
Definition at line 303 of file bigmap.c. Referenced by bigmap_place_vault(). |
|
|
Definition at line 74 of file bigmap.c. Referenced by rand_feature(). |
|
|
Definition at line 73 of file bigmap.c. Referenced by bigmap_place_feature(), and rand_feature(). |
|
|
Definition at line 75 of file bigmap.c. Referenced by bigmap_place_feature(), and rand_feature(). |
|
|
|
|
|
Definition at line 85 of file bigmap.c. Referenced by rand_feature(). |
|
|
Definition at line 26 of file bigmap.c. Referenced by bigmap_place_vault(). |
|
|
Definition at line 29 of file bigmap.c. Referenced by rand_feature(). |
|
|
|
|
|
|
|
|
Definition at line 32 of file bigmap.c. Referenced by rand_feature(). |
|
|
Definition at line 36 of file bigmap.c. Referenced by bigmap_place_corridor(), bigmap_place_room(), bigmap_place_vault(), and bigmap_prepass(). |
|
|
Definition at line 38 of file bigmap.c. Referenced by add_mark(), bigmap_place_corridor(), and bigmap_postpass(). |
|
|
Definition at line 37 of file bigmap.c. Referenced by bigmap_place_corridor(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Referenced by bigmap_place_corridor(), bigmap_place_room(), bigmap_place_vault(), and rand_feature(). |
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||||||||||
|
Definition at line 715 of file bigmap.c. References dir, TFLAG_JUNCTION, and w. Referenced by bigmap_place_corridor(), and bigmap_place_vault(). |
|
|
|
|
||||||||||||||||||||
|
Definition at line 427 of file bigmap.c. References add_mark(), CORRIDORBRANCH_RETRIES, directions, feature, tile::flags, is_in_bounds(), nrandom(), world::t, TFLAG_CLEAN, TFLAG_JUNCTION, TFLAG_RECEPTACLE, tile::type, w, scoord::x, and scoord::y. |
|
||||||||||||||||
|
Definition at line 404 of file bigmap.c. References FEATURE_ROOM, and FEATURE_VAULT. |
|
||||||||||||||||||||
|
Definition at line 503 of file bigmap.c. References directions, feature, tile::flags, feature::pos, world::t, TFLAG_CLEAN, w, scoord::x, and scoord::y. |
|
||||||||||||||||||||
|
Definition at line 602 of file bigmap.c. References add_mark(), vaultdesc::content, DIR_DOWN, DIR_LEFT, DIR_RIGHT, DIR_UP, directions, feature, tile::flags, is_in_bounds(), ROOMCONN_RETRIES, vaultdesc::size, world::t, TFLAG_CLEAN, tile::type, vaults, w, scoord::x, and scoord::y. |
|
|
Definition at line 344 of file bigmap.c. References tile::flags, make_door(), MAPSIZE_X, nrandom(), world::t, TFLAG_JUNCTION, tile::type, and w. |
|
|
Definition at line 335 of file bigmap.c. References TFLAG_CLEAN, and w. |
|
|
Definition at line 326 of file bigmap.c. Referenced by bigmap_place_corridor(), and bigmap_place_vault(). |
|
|
Definition at line 318 of file bigmap.c. Referenced by mkmap_big_front(). |
|
||||||||||||
|
Definition at line 684 of file bigmap.c. References CORRIDOR_MAX_LEN, CORRIDOR_MIN_LEN, feature::ext, feature, FEATURE_CORRIDOR, FEATURE_ROOM, FEATURE_VAULT, feature_info::length, nrandom(), NUM_VAULT_TYPES, feature_info::room, ROOMSIZE_MAX_X, ROOMSIZE_MIN_Y, feature_info::vault, and vaults. |
|
|
Initial value:
{
{ 1, 0 },
{ 0, -1 },
{ -1, 0 },
{ 0, 1 }
}
Definition at line 294 of file bigmap.c. Referenced by bigmap_place_corridor(), bigmap_place_room(), and bigmap_place_vault(). |
|
|
Definition at line 101 of file bigmap.c. Referenced by bigmap_place_vault(), and rand_feature(). |
1.3.6