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(struct loc grid);
26 void monster_index_move(int i1, int i2);
27 void compact_monsters(int num_to_compact);
28 void wipe_mon_list(struct chunk *c, struct player *p);
29 s16b mon_pop(struct chunk *c);
30 void get_mon_num_prep(bool (*get_mon_num_hook)(struct monster_race *race));
31 struct monster_race *get_mon_num(int level);
32 int mon_create_drop_count(const struct monster_race *race, bool maximize);
33 void mon_create_mimicked_object(struct chunk *c, struct monster *mon,
34  int index);
35 s16b place_monster(struct chunk *c, struct loc grid, struct monster *mon,
36  byte origin);
37 int mon_hp(const struct monster_race *race, aspect hp_aspect);
38 bool place_new_monster(struct chunk *c, struct loc grid,
39  struct monster_race *race, bool sleep, bool group_ok,
40  struct monster_group_info group_info, byte origin);
41 bool pick_and_place_monster(struct chunk *c, struct loc grid, int depth,
42  bool sleep, bool group_okay, byte origin);
43 bool pick_and_place_distant_monster(struct chunk *c, struct player *p, int dis,
44  bool sleep, int depth);
45 
46 #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:215
Monster "race" information, including racial memories.
Definition: monster.h:307
Monster information, for a specific monster.
Definition: monster.h:369
Definition: z-type.h:24
void delete_monster(struct loc grid)
Deletes the monster, if any, at the given location.
Definition: mon-make.c:375
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:651
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:883
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:1410
Definition: cave.h:178
static int i1
Definition: ui-object.c:594
s16b mon_pop(struct chunk *c)
Monster creation utilities: Getting a new monster index Creating objects for monsters to carry or mi...
Definition: mon-make.c:603
Monster group info.
Definition: monster.h:263
int sleep
Definition: monster.h:322
bool place_new_monster(struct chunk *c, struct loc grid, struct monster_race *race, bool sleep, bool group_ok, struct monster_group_info group_info, byte origin)
Attempts to place a monster of the given race at the given location.
Definition: mon-make.c:1287
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:148
const char ** p[]
Definition: name.c:40
void delete_monster_idx(int m_idx)
Deleting of monsters and monster list handling
Definition: mon-make.c:308
Flags, structures and variables for monsters.
int16_t s16b
Definition: h-basic.h:170
aspect
Random aspects used by damcalc, m_bonus_calc, and ranvals.
Definition: z-rand.h:55
void wipe_mon_list(struct chunk *c, struct player *p)
Deletes all the monsters when the player leaves the level.
Definition: mon-make.c:533
s16b place_monster(struct chunk *c, struct loc grid, struct monster *mon, byte origin)
Placement of a single monster These are the functions that actually put the monster into the world ...
Definition: mon-make.c:926
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:826
static int i2
Definition: ui-object.c:594
void compact_monsters(int num_to_compact)
Compacts and reorders the monster list.
Definition: mon-make.c:453
int index
Definition: obj-info.c:68
bool pick_and_place_monster(struct chunk *c, struct loc grid, 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:1384
void monster_index_move(int i1, int i2)
Move a monster from index i1 to index i2 in the monster list.
Definition: mon-make.c:390