Crossfire Server, Trunk
R22047
|
Go to the source code of this file.
Functions | |
void | place_monsters (mapstruct *map, char *monsterstyle, int difficulty, RMParms *RP) |
Monster placement for random maps.
Definition in file monster.c.
Place some monsters into the map. Their experience is linked to difficulty to insert a suitable number of critters.
map | where to put monsters on. |
monsterstyle | style. Can be NULL, in which case a random one is used. |
difficulty | how difficult the monsters should be, and how many there should be. |
RP | random map parameters. |
Definition at line 38 of file monster.c.
References find_style(), freearr_x, freearr_y, level_exp(), MAP_HEIGHT, MAP_WIDTH, object_copy_with_inv(), object_create_arch(), object_find_first_free_spot(), object_insert_in_map_at(), pick_random_object(), RANDOM, RMParms::total_map_hp, RMParms::Xsize, and RMParms::Ysize.
Referenced by generate_random_map().