|
Crossfire Server, Branch 1.12
R12190
|
Those functions handle the decor in the random maps. More...

Go to the source code of this file.
Defines | |
| #define | NR_DECOR_OPTIONS 1 |
| Number of decor styles that can be chosen if none specified. | |
Functions | |
| int | obj_count_in_map (mapstruct *map, int x, int y) |
| Count objects at a spot. | |
| void | put_decor (mapstruct *map, char **maze, char *decorstyle, int decor_option, RMParms *RP) |
| Put the decor into the map. | |
Those functions handle the decor in the random maps.
Definition in file decor.c.
| #define NR_DECOR_OPTIONS 1 |
Number of decor styles that can be chosen if none specified.
Definition at line 39 of file decor.c.
Referenced by put_decor().
| int obj_count_in_map | ( | mapstruct * | map, |
| int | x, | ||
| int | y | ||
| ) |
Count objects at a spot.
| map | map we want to check |
| x | |
| y | coordinates |
Definition at line 51 of file decor.c.
References GET_MAP_OB.
Referenced by put_decor().

Put the decor into the map.
Right now, it's very primitive.
| map | map to add decor to. |
| maze | layout of the map, as was generated. |
| decorstyle | style to use. Can be NULL. |
| decor_option | how to place decor:
|
| RP | parameters of the random map. |
Definition at line 76 of file decor.c.
References arch_to_object(), copy_object(), find_style(), insert_ob_in_map(), MOVE_BLOCK_DEFAULT, NR_DECOR_OPTIONS, obj_count_in_map(), pick_random_object(), snprintf(), RMParms::Xsize, and RMParms::Ysize.
Referenced by generate_random_map().


1.7.6.1