Angband
Functions | Variables
monster/attack.c File Reference
#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 []
 

Function Documentation

static int mdam ( struct monster m)
static
int setup_tests ( void **  state)
static int take1 ( struct player p,
struct monster m,
struct blow_method blow,
struct blow_effect eff 
)
static
int teardown_tests ( void **  state)

References mem_free(), and z_info.

static int test_blows ( void state)
static
static int test_effects ( void state)
static

Variable Documentation

const char* suite_name = "monster/attack"
const struct test tests[]
Initial value:
= {
{ "blows", test_blows },
{ "effects", test_effects },
{ NULL, NULL },
}
static int test_effects(void *state)
Definition: monster/attack.c:71
static int test_blows(void *state)
Definition: monster/attack.c:53
NULL
Definition: list-summon-types.h:18