Crossfire Server, Trunk
R21670
|
#include <global.h>
#include <stdlib.h>
#include <check.h>
#include <loader.h>
#include <toolkit_common.h>
Go to the source code of this file.
Macros | |
#define | DESCRIBE_ABILITY_SAFE(retbuf, variable, name, len, maxlen) |
#define | DESCRIBE_PATH_SAFE(retbuf, variable, name, len, maxlen) |
Functions | |
static END_TEST Suite * | item_suite (void) |
int | main (void) |
static void | old_describe_monster (const object *op, char *retbuf, size_t size) |
static void | setup (void) |
START_TEST (test_describe_item) | |
START_TEST (test_describe_monster_rewrite) | |
static void | teardown (void) |
#define DESCRIBE_ABILITY_SAFE | ( | retbuf, | |
variable, | |||
name, | |||
len, | |||
maxlen | |||
) |
Definition at line 222 of file check_item.c.
Referenced by old_describe_monster().
#define DESCRIBE_PATH_SAFE | ( | retbuf, | |
variable, | |||
name, | |||
len, | |||
maxlen | |||
) |
Definition at line 207 of file check_item.c.
Referenced by old_describe_monster().
|
static |
Definition at line 401 of file check_item.c.
References setup(), and teardown().
Referenced by main().
int main | ( | void | ) |
Definition at line 415 of file check_item.c.
References item_suite().
|
static |
Definition at line 237 of file check_item.c.
References obj::attacktype, archt::clone, obj::contr, DESCRIBE_ABILITY_SAFE, DESCRIBE_PATH_SAFE, pl::digestion, FABS, FLAG_CAN_USE_SKILL, FLAG_CAST_SPELL, FLAG_FRIENDLY, FLAG_HITBACK, FLAG_SEE_INVISIBLE, FLAG_STEALTH, FLAG_UNAGGRESSIVE, FLAG_UNDEAD, FLAG_USE_ARMOUR, FLAG_USE_BOW, FLAG_USE_RANGE, FLAG_USE_RING, FLAG_USE_SCROLL, FLAG_USE_WEAPON, pl::gen_grace, pl::gen_hp, pl::gen_sp, is_dragon_pl(), treasurestruct::item, treasureliststruct::items, liv::luck, MIN_ACTIVE_SPEED, obj::name, treasurestruct::next, NROFATTACKS, object_find_by_type_and_name(), obj::path_attuned, obj::path_denied, obj::path_repelled, PLAYER, QUERY_FLAG, obj::randomitems, obj::resist, resist_plus, SKILL, snprintf, obj::speed, SPELL, obj::stats, and obj::type.
Referenced by START_TEST().
|
static |
Definition at line 39 of file check_item.c.
References cctk_init_std_archetypes(), cctk_setdatadir(), cctk_setlog(), init_formulae(), and init_gods().
Referenced by item_suite().
START_TEST | ( | test_describe_item | ) |
Definition at line 51 of file check_item.c.
References cctk_create_game_object(), describe_item(), find_treasurelist(), FLAG_IDENTIFIED, generate_treasure(), object_free_drop_inventory(), SET_FLAG, and stringbuffer_finish().
START_TEST | ( | test_describe_monster_rewrite | ) |
Definition at line 371 of file check_item.c.
References archt::clone, obj::contr, describe_item(), describe_monster(), first_archetype, FLAG_MONSTER, FREE_OBJ_FREE_INVENTORY, FREE_OBJ_NO_DESTROY_CALLBACK, HUGE_BUF, archt::next, object_create_arch(), object_free(), old_describe_monster(), PLAYER, QUERY_FLAG, stringbuffer_finish(), and obj::type.
|
static |
Definition at line 47 of file check_item.c.
Referenced by item_suite().