Crossfire Server, Trunk
|
#include <global.h>
#include <stdlib.h>
#include <check.h>
#include <loader.h>
#include <toolkit_common.h>
#include <sproto.h>
Go to the source code of this file.
Functions | |
static END_TEST Suite * | attack_suite (void) |
int | main (void) |
static void | setup (void) |
END_TEST | START_TEST (test_fix_object_confused) |
START_TEST (test_hit_player) | |
static void | teardown (void) |
|
static |
Definition at line 118 of file check_attack.cpp.
References setup(), and teardown().
Referenced by main().
int main | ( | void | ) |
Definition at line 132 of file check_attack.cpp.
References attack_suite(), cctk_setdatadir(), Settings::debug, init(), llevError, and settings.
|
static |
Definition at line 40 of file check_attack.cpp.
Referenced by attack_suite().
END_TEST START_TEST | ( | test_fix_object_confused | ) |
Definition at line 100 of file check_attack.cpp.
References confuse_living(), create_archetype(), FAIL_UNLESS, fix_object(), FLAG_CONFUSED, FREE_OBJ_NO_DESTROY_CALLBACK, guildjoin::ob, object_free(), altar_valkyrie::pl, PLAYER, and QUERY_FLAG.
START_TEST | ( | test_hit_player | ) |
Definition at line 47 of file check_attack.cpp.
References add_string(), ARCH_DEPLETION, arch_present_in_ob(), AT_DEPLETE, AT_FIRE, ATNR_DEPLETE, ATNR_FIRE, create_archetype(), FAIL_UNLESS, find_archetype(), get_empty_map(), hit_player(), death_message::hitter, disinfect::map, object_insert_in_map_at(), and sword_of_souls::victim.
|
static |
Definition at line 43 of file check_attack.cpp.
Referenced by attack_suite().