|
Crossfire Server, Trunk
|
#include <stdlib.h>#include <check.h>#include <global.h>#include <sproto.h>#include <toolkit_common.h>
Include dependency graph for comet_perf.c:Go to the source code of this file.
Macros | |
| #define | HP_DELTA 10 |
| #define | NUM_COMETS_TO_CAST 30 |
| #define | NUM_TICKS_TO_RUN 500 |
| #define | STARTING_HP 25000 |
| #define | TEST_MAP_SIZE 40 |
Functions | |
| static void | check_hp (const char *test, int hp_row[TEST_MAP_SIZE], int hp_diag[TEST_MAP_SIZE]) |
| static END_TEST Suite * | comet_suite (void) |
| int | main (void) |
| static void | setup (void) |
| END_TEST | START_TEST (cast_bunch_comet) |
| START_TEST (cast_one_comet) | |
| END_TEST | START_TEST (cast_random_comet) |
| static void | teardown (void) |
Variables | |
| object * | mon |
| mapstruct * | test_map |
| #define HP_DELTA 10 |
Definition at line 65 of file comet_perf.c.
| #define NUM_COMETS_TO_CAST 30 |
Definition at line 56 of file comet_perf.c.
| #define NUM_TICKS_TO_RUN 500 |
Definition at line 55 of file comet_perf.c.
| #define STARTING_HP 25000 |
Definition at line 57 of file comet_perf.c.
| #define TEST_MAP_SIZE 40 |
Definition at line 54 of file comet_perf.c.
|
static |
Definition at line 124 of file comet_perf.c.
References FABS, GET_MAP_OB, liv::hp, HP_DELTA, mon, obj::name, STARTING_HP, obj::stats, test_map, TEST_MAP_SIZE, nlohmann::detail::void(), diamondslots::x, obj::x, and obj::y.
Referenced by START_TEST().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 277 of file comet_perf.c.
References setup(), and teardown().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| int main | ( | void | ) |
Definition at line 299 of file comet_perf.c.
References cctk_setdatadir(), comet_suite(), FMT64U, init(), Statistics::spell_hash_full, Statistics::spell_merges, Statistics::spell_suppressions, and statistics.
Here is the call graph for this function:
|
static |
Definition at line 77 of file comet_perf.c.
References create_archetype(), FLAG_STAND_STILL, get_empty_map(), liv::hp, liv::maxhp, mon, NROFATTACKS, object_copy(), object_insert_in_map_at(), object_new(), object_update_speed(), obj::resist, SET_FLAG, obj::speed, obj::speed_left, STARTING_HP, obj::stats, test_map, TEST_MAP_SIZE, and diamondslots::x.
Referenced by comet_suite().
Here is the call graph for this function:
Here is the caller graph for this function:| END_TEST START_TEST | ( | cast_bunch_comet | ) |
Definition at line 252 of file comet_perf.c.
References cast_spell(), check_hp(), create_archetype(), obj::inv, obj::level, NUM_COMETS_TO_CAST, NUM_TICKS_TO_RUN, object_insert_in_map_at(), object_insert_in_ob(), process_events(), test_map, and TEST_MAP_SIZE.
Here is the call graph for this function:| START_TEST | ( | cast_one_comet | ) |
Definition at line 197 of file comet_perf.c.
References cast_spell(), check_hp(), create_archetype(), obj::inv, obj::level, NUM_TICKS_TO_RUN, object_insert_in_map_at(), object_insert_in_ob(), process_events(), test_map, and TEST_MAP_SIZE.
Here is the call graph for this function:| END_TEST START_TEST | ( | cast_random_comet | ) |
Definition at line 219 of file comet_perf.c.
References cast_spell(), check_hp(), create_archetype(), obj::inv, obj::level, NUM_COMETS_TO_CAST, NUM_TICKS_TO_RUN, object_insert_in_map_at(), object_insert_in_ob(), object_remove(), process_events(), test_map, and TEST_MAP_SIZE.
Here is the call graph for this function:
|
static |
Definition at line 120 of file comet_perf.c.
References free_map(), and test_map.
Referenced by comet_suite().
Here is the call graph for this function:
Here is the caller graph for this function:| object* mon |
Definition at line 75 of file comet_perf.c.
Referenced by check_hp(), do_monster(), dump_races(), examine_monster(), finish_races(), get_nearest_criminal(), get_nearest_player(), get_next_mon(), get_random_mon(), knowledge_add_probe_monster(), makes_invisible_to(), mon_desc(), mon_info_msg(), monster_check_apply(), move_player_attack(), path_to_player(), pets_summon_object(), place_special_exit(), and setup().
| mapstruct* test_map |
Definition at line 74 of file comet_perf.c.
Referenced by check_hp(), do_test(), CRECombatSimulator::fight(), monsterFight(), setup(), START_TEST(), and teardown().