 |
Crossfire Server, Trunk
1.75.0
|
Go to the documentation of this file.
32 return (item ==
'\0' || item ==
'<' || item ==
'>') ? 1 : 0;
55 for (dx = -1; dx < 2; dx++) {
56 for (dy = -1; dy < 2; dy++) {
86 const char *styledirname =
"/styles/floorstyles";
87 style_map =
find_style(styledirname, floorstyle, -1);
88 if (style_map == NULL) {
93 for (x = 0; x < RP->
Xsize; x++) {
94 for (y = 0; y < RP->
Ysize; y++) {
106 for (x = 0; x < RP->
Xsize; x++)
107 for (y = 0; y < RP->
Ysize; y++) {
#define GET_MAP_OB(M, X, Y)
Gets the bottom object on a map.
mapstruct * make_map_floor(char **layout, char *floorstyle, RMParms *RP)
Creates the Crossfire mapstruct object from the layout, and adds the floor.
#define INS_NO_WALK_ON
Don't call check_walk_on against the originator.
mapstruct * get_empty_map(int sizex, int sizey)
Creates and returns a map of the specific size.
int multiple_floors
If non zero, then the map will have multiple floors, else only one floor will be used.
struct archetype * arch
Pointer to archetype.
static int can_propagate(char item)
Checks if the tile 'propagates' the floor.
mapstruct * find_style(const char *dirname, const char *stylename, int difficulty)
Loads and returns the map requested.
#define INS_NO_MERGE
Don't try to merge with other items.
object * object_insert_in_map_at(object *op, mapstruct *m, object *originator, int flag, int x, int y)
Same as object_insert_in_map() except it handle separate coordinates and do a clean job preparing mul...
Magical Runes Runes are magical inscriptions on the dungeon floor
object * pick_random_object(mapstruct *style)
Picks a random object from a style map.
static void put_floor(mapstruct *map, char **layout, int x, int y, object *floor_arch)
Put a floor at specified location, and then to adjacent tiles if applicable.
object * arch_to_object(archetype *at)
Creates and returns a new object which is a copy of the given archetype.