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 s16b place_monster(struct chunk *c, int y, int x, struct monster *mon,
32  byte origin);
33 int mon_hp(const struct monster_race *race, aspect hp_aspect);
34 bool place_new_monster(struct chunk *, int y, int x, struct monster_race *race,
35  bool sleep, bool group_okay, byte origin);
36 bool pick_and_place_monster(struct chunk *c, int y, int x, int depth,
37  bool sleep, bool group_okay, byte origin);
38 bool pick_and_place_distant_monster(struct chunk *c, struct player *p, int dis,
39  bool sleep, int depth);
40 void monster_death(struct monster *mon, bool stats);
41 bool mon_take_hit(struct monster *mon, int dam, bool *fear, const char *note);
42 int mon_create_drop_count(const struct monster_race *race, bool maximize);
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:519
Monster "race" information, including racial memories.
Definition: monster.h:265
static int stats[STAT_MAX]
All of these should be in some kind of 'birth state' struct somewhere else
Definition: player-birth.c:118
Use the roguelike command false Show damage player deals to false Always pickup false Show flavors in object false Highlight player with cursor between false Show walls as solid false false Center map false Automatically clear more false Allow mouse clicks to move the true false false false false false Generate a random artifact false Force player false Restrict creation of false Lose artifacts when leaving level
Definition: list-options.h:86
Monster information, for a specific monster.
Definition: monster.h:323
void monster_death(struct monster *mon, bool stats)
Handles the "death" of a monster.
Definition: mon-make.c:1369
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:615
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:1314
Definition: cave.h:147
s16b mon_pop(struct chunk *c)
Returns the index of a "free" monster, or 0 if no slot is available.
Definition: mon-make.c:407
int sleep
Definition: monster.h:280
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:454
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:785
const char ** p[]
Definition: name.c:40
void delete_monster_idx(int m_idx)
Deletes a monster by index.
Definition: mon-make.c:132
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:198
bool mon_take_hit(struct monster *mon, int dam, bool *fear, const char *note)
Decreases a monster's hit points by dam and handle monster death.
Definition: mon-make.c:1447
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:1291
void wipe_mon_list(struct chunk *c, struct player *p)
Deletes all the monsters when the player leaves the level.
Definition: mon-make.c:351
Most of the "player" information goes here.
Definition: player.h:452
void compact_monsters(int num_to_compact)
Compacts and reorders the monster list.
Definition: mon-make.c:271
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:1213
void note(const char *message)
Utility
Definition: savefile.c:177