Atrinik Server 2.5
Functions
random_maps/monster.c File Reference
#include <global.h>

Go to the source code of this file.

Functions

void insert_multisquare_ob_in_map (object *new_obj, mapstruct *map)
void place_monsters (mapstruct *map, char *monsterstyle, int difficulty, RMParms *RP)

Detailed Description

Monster placement for random maps.

Definition in file monster.c.


Function Documentation

void insert_multisquare_ob_in_map ( object new_obj,
mapstruct map 
)

Inserts a monster in the map. Some monsters are multisquare, and these guys require special handling.

Parameters:
new_objMonster object to insert. Its x and y fields must be the desired location.
mapMap where to insert to.

Definition at line 39 of file monster.c.

void place_monsters ( mapstruct map,
char *  monsterstyle,
int  difficulty,
RMParms RP 
)

Place some monsters into the map.

Parameters:
mapWhere to put monsters on.
monsterstyleMonster style. Can be NULL, in which case a random one is used.
difficultyHow difficult the monsters should be, and how many there should be.
RPRandom map parameters.

Definition at line 80 of file monster.c.