Crossfire Server, Trunk
|
Go to the source code of this file.
Functions | |
int | legacy_monster_stand_in_light (object *op) |
int | main (int argc, const char **argv) |
void | test_stand_in_light () |
Variables | |
int | testCount = 0 |
constexpr int | TestSize = 20 |
int legacy_monster_stand_in_light | ( | object * | op | ) |
Definition at line 36 of file perf_tests.cpp.
References get_map_flags(), GET_MAP_LIGHT, ihypot(), m, MAX_LIGHT_RADII, give::op, P_OUT_OF_MAP, diamondslots::x, and diamondslots::y.
Referenced by test_stand_in_light().
int main | ( | int | argc, |
const char ** | argv | ||
) |
Definition at line 111 of file perf_tests.cpp.
References test_stand_in_light(), and testCount.
void test_stand_in_light | ( | ) |
Definition at line 68 of file perf_tests.cpp.
References cf_random(), replace::current, delete_map(), get_empty_map(), banquet::l, legacy_monster_stand_in_light(), m, disinfect::map, object::map, MAX_LIGHT_RADII, monster_stand_in_light(), pticks, SET_MAP_LIGHT, testCount, TestSize, mapstruct::tile_map, diamondslots::x, object::x, diamondslots::y, and object::y.
Referenced by main().
int testCount = 0 |
Definition at line 34 of file perf_tests.cpp.
Referenced by main(), and test_stand_in_light().
|
constexpr |
Definition at line 33 of file perf_tests.cpp.
Referenced by test_stand_in_light().