Angband
|
#include "unit-test.h"
#include "unit-test-data.h"
#include "mon-attack.h"
#include "mon-lore.h"
#include "monster.h"
#include "option.h"
#include "player-timed.h"
#include "ui-input.h"
Functions | |
int | setup_tests (void **state) |
int | teardown_tests (void *state) |
static int | mdam (struct monster *m) |
static int | take1 (struct player *p, struct monster *m, struct blow_method *blow, struct blow_effect *eff) |
static int | test_blows (void *state) |
static int | test_effects (void *state) |
Variables | |
const char * | suite_name = "monster/attack" |
const struct test | tests [] |
References monster_race::blow, random::dice, monster_blow::dice, and monster::race.
Referenced by test_blows().
|
static |
References monster_race::blow, cave, player::chp, monster_blow::effect, monster_blow::method, player::mhp, monster::race, test_cave, and testfn_make_attack_normal.
Referenced by test_blows(), and test_effects().
References mem_free(), and z_info.
References eq, monster_race::flags, mdam(), mflag_off, mflag_on, ok, p, monster::race, take1(), test_blow_effect_hurt, test_blow_method, test_player, test_player_upkeep, and player::upkeep.
const char* suite_name = "monster/attack" |