Angband
mon-make.h
Go to the documentation of this file.
1 
19 #ifndef MONSTER_MAKE_H
20 #define MONSTER_MAKE_H
21 
22 #include "monster.h"
23 
24 void delete_monster_idx(int m_idx);
25 void delete_monster(int y, int x);
26 void compact_monsters(int num_to_compact);
27 void wipe_mon_list(struct chunk *c, struct player *p);
28 s16b mon_pop(struct chunk *c);
29 void get_mon_num_prep(bool (*get_mon_num_hook)(struct monster_race *race));
30 struct monster_race *get_mon_num(int level);
31 int mon_create_drop_count(const struct monster_race *race, bool maximize);
32 void mon_create_mimicked_object(struct chunk *c, struct monster *mon,
33  int index);
34 s16b place_monster(struct chunk *c, int y, int x, struct monster *mon,
35  byte origin);
36 int mon_hp(const struct monster_race *race, aspect hp_aspect);
37 bool place_new_monster(struct chunk *, int y, int x, struct monster_race *race,
38  bool sleep, bool group_okay, byte origin);
39 bool pick_and_place_monster(struct chunk *c, int y, int x, int depth,
40  bool sleep, bool group_okay, byte origin);
41 bool pick_and_place_distant_monster(struct chunk *c, struct player *p, int dis,
42  bool sleep, int depth);
43 
44 #endif /* MONSTER_MAKE_H */
struct monster_race * get_mon_num(int level)
Chooses a monster race that seems "appropriate" to the given level.
Definition: mon-make.c:516
Monster "race" information, including racial memories.
Definition: monster.h:267
Monster information, for a specific monster.
Definition: monster.h:325
int mon_create_drop_count(const struct monster_race *race, bool maximize)
Return the number of things dropped by a monster.
Definition: mon-make.c:612
Definition: game-world.h:24
uint8_t byte
Definition: h-basic.h:167
int mon_hp(const struct monster_race *race, aspect hp_aspect)
Calculates hp for a monster.
Definition: mon-make.c:897
bool pick_and_place_distant_monster(struct chunk *c, struct player *p, int dis, bool sleep, int depth)
Picks a monster race, makes a new monster of that race, then attempts to place it in the dungeon at l...
Definition: mon-make.c:1328
Definition: cave.h:160
s16b mon_pop(struct chunk *c)
Returns the index of a "free" monster, or 0 if no slot is available.
Definition: mon-make.c:404
int sleep
Definition: monster.h:282
void get_mon_num_prep(bool(*get_mon_num_hook)(struct monster_race *race))
Apply a "monster restriction function" to the "monster allocation table".
Definition: mon-make.c:451
s16b place_monster(struct chunk *c, int y, int x, struct monster *mon, byte origin)
Attempts to place a copy of the given monster at the given position in the dungeon.
Definition: mon-make.c:842
const char ** p[]
Definition: name.c:40
void delete_monster_idx(int m_idx)
Deletes a monster by index.
Definition: mon-make.c:129
Flags, structures and variables for monsters.
int16_t s16b
Definition: h-basic.h:170
void delete_monster(int y, int x)
Deletes the monster, if any, at the given location.
Definition: mon-make.c:195
aspect
Random aspects used by damcalc, m_bonus_calc, and ranvals.
Definition: z-rand.h:55
bool pick_and_place_monster(struct chunk *c, int y, int x, int depth, bool sleep, bool group_okay, byte origin)
Picks a monster race, makes a new monster of that race, then attempts to place it in the dungeon...
Definition: mon-make.c:1305
void wipe_mon_list(struct chunk *c, struct player *p)
Deletes all the monsters when the player leaves the level.
Definition: mon-make.c:348
Most of the "player" information goes here.
Definition: player.h:489
void mon_create_mimicked_object(struct chunk *c, struct monster *mon, int index)
Creates the onbject a mimic is imitating.
Definition: mon-make.c:778
void compact_monsters(int num_to_compact)
Compacts and reorders the monster list.
Definition: mon-make.c:268
bool place_new_monster(struct chunk *, int y, int x, struct monster_race *race, bool sleep, bool group_okay, byte origin)
Attempts to place a monster of the given race at the given location.
Definition: mon-make.c:1227
int index
Definition: obj-info.c:68