Crossfire Server, Trunk
|
#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 221 of file check_item.c.
#define DESCRIBE_PATH_SAFE | ( | retbuf, | |
variable, | |||
name, | |||
len, | |||
maxlen | |||
) |
Definition at line 206 of file check_item.c.
|
static |
Definition at line 400 of file check_item.c.
References setup(), and teardown().
Referenced by main().
int main | ( | void | ) |
Definition at line 414 of file check_item.c.
References item_suite().
|
static |
Definition at line 236 of file check_item.c.
References DESCRIBE_ABILITY_SAFE, DESCRIBE_PATH_SAFE, 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, is_dragon_pl(), MIN_ACTIVE_SPEED, NROFATTACKS, object_find_by_type_and_name(), give::op, PLAYER, QUERY_FLAG, resist_plus, SKILL, SPELL, Floor::t, and Ice::tmp.
Referenced by START_TEST().
|
static |
Definition at line 39 of file check_item.c.
References cctk_init_std_archetypes(), cctk_setdatadir(), cctk_setlog(), and init_gods().
Referenced by item_suite().
START_TEST | ( | test_describe_item | ) |
Definition at line 50 of file check_item.c.
References obj::arch, buf, cctk_create_game_object(), reputation_trigger_connect::check(), describe_item(), find_treasurelist(), FLAG_IDENTIFIED, generate_treasure(), guildoracle::list, archt::name, object_free_drop_inventory(), SET_FLAG, and stringbuffer_finish().
START_TEST | ( | test_describe_monster_rewrite | ) |
Definition at line 370 of file check_item.c.
References archininventory::arch, buf, describe_item(), describe_monster(), FLAG_MONSTER, FREE_OBJ_FREE_INVENTORY, FREE_OBJ_NO_DESTROY_CALLBACK, get_next_archetype(), HUGE_BUF, guildjoin::ob, object_create_arch(), object_free(), old_describe_monster(), altar_valkyrie::pl, PLAYER, QUERY_FLAG, and stringbuffer_finish().
|
static |
Definition at line 46 of file check_item.c.
Referenced by item_suite().