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 "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, int blow, int eff)
static int test_blows (void *state)
static int test_effects (void *state)

Variables

const char * suite_name = "monster/attack"
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,
int  blow,
int  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"
struct test tests[]
Initial value:
{
{ "blows", test_blows },
{ "effects", test_effects },
{ NULL, NULL },
}