|
Pol
Revision:cb584c9
|
Functions | |
| Item * | add_item (unsigned int objtype, unsigned short x, unsigned short y, short z) |
| void | add_multi (unsigned int objtype, unsigned short x, unsigned short y, short z) |
| void | add_multi (unsigned int objtype, unsigned short x, unsigned short y, short z, int flags) |
| Mobile::NPC * | add_npc (const char *npctype, unsigned short x, unsigned short y, short z) |
| void | create_test_environment () |
| void | display_test_results () |
| void | drop_test () |
| void | dummy () |
| void | dynprops_test () |
| void | inc_failures () |
| void | inc_successes () |
| void | los_test () |
| void | map_test () |
| void | multiwalk_test () |
| void | packet_test () |
| void | run_pol_tests () |
| void | skilladv_test () |
| void | walk_test () |
Variables | |
| int | failures |
| bool | static_debug_on |
| int | successes |
| Mobile::NPC * | test_banker |
| Mobile::NPC * | test_banker2 |
| Mobile::NPC * | test_banker3 |
| Item * | test_chest1 |
| Item * | test_chest2 |
| Item * | test_guard_door |
| Mobile::NPC * | test_orclord |
| Mobile::NPC * | test_seaserpent |
| Mobile::NPC * | test_water_elemental |
| Items::Item * Pol::Testing::add_item | ( | unsigned int | objtype, |
| unsigned short | x, | ||
| unsigned short | y, | ||
| short | z | ||
| ) |
Definition at line 62 of file testenv.cpp.
References Pol::Core::add_item_to_world(), Pol::Items::Item::create(), Pol::Core::gamestate, Pol::Core::GameState::main_realm, passert, Pol::Core::ULWObject::realm, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by create_test_environment().
| void Pol::Testing::add_multi | ( | unsigned int | objtype, |
| unsigned short | x, | ||
| unsigned short | y, | ||
| short | z | ||
| ) |
Definition at line 75 of file testenv.cpp.
References Pol::Core::add_multi_to_world(), Pol::Multi::UMulti::create(), Pol::Items::find_itemdesc(), Pol::Core::gamestate, Pol::Core::GameState::main_realm, passert, Pol::Core::ULWObject::realm, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by create_test_environment().
| void Pol::Testing::add_multi | ( | unsigned int | objtype, |
| unsigned short | x, | ||
| unsigned short | y, | ||
| short | z, | ||
| int | flags | ||
| ) |
Definition at line 86 of file testenv.cpp.
References Pol::Items::find_itemdesc(), Pol::Core::gamestate, Pol::Core::GameState::main_realm, and Pol::Multi::UMulti::scripted_create().
| Mobile::NPC * Pol::Testing::add_npc | ( | const char * | npctype, |
| unsigned short | x, | ||
| unsigned short | y, | ||
| short | z | ||
| ) |
Definition at line 93 of file testenv.cpp.
References Pol::Clib::ConfigElem::add_prop(), Pol::Clib::ConfigElem::clear_prop(), Pol::Core::FindNpcTemplate(), Pol::Core::GetNextSerialNumber(), Pol::Core::ObjectHash::Insert(), Pol::Realms::NpcCreate, Pol::Core::ObjectStorageManager::objecthash, Pol::Core::objStorageManager, Pol::Clib::ConfigElem::remove_ushort(), and Pol::Core::SetCharacterWorldPosition().
Referenced by create_test_environment().
| void Pol::Testing::create_test_environment | ( | ) |
Definition at line 120 of file testenv.cpp.
References add_item(), add_multi(), add_npc(), Pol::Multi::CRMULTI_FACING_NORTH, and Pol::Multi::CRMULTI_FACING_WEST.
Referenced by run_pol_tests().
| void Pol::Testing::display_test_results | ( | ) |
| void Pol::Testing::drop_test | ( | ) |
Definition at line 53 of file testdrop.cpp.
References INFO_PRINT.
| void Pol::Testing::dummy | ( | ) |
Definition at line 23 of file testmisc.cpp.
Referenced by Pol::Clib::ConfigElem::clear_prop(), Pol::Bscript::Compiler::compile(), Pol::Bscript::Compiler::handleSwitch(), Pol::Clib::inner_copy(), run_pol_tests(), Pol::Clib::RunEclMain::runeclScript(), and Pol::Clib::Socket::Socket().
| void Pol::Testing::dynprops_test | ( | ) |
Definition at line 31 of file testmisc.cpp.
References DYN_PROPERTY, INFO_PRINT, Pol::Core::PROP_AR_MOD, Pol::Core::PROP_MAX_ITEMS_MOD, and Pol::Core::PROP_NAME_SUFFIX.
| void Pol::Testing::inc_failures | ( | ) |
| void Pol::Testing::inc_successes | ( | ) |
| void Pol::Testing::los_test | ( | ) |
Definition at line 114 of file testlos.cpp.
References Pol::Items::Item::create(), Pol::Core::create_script_executor(), INFO_PRINT, test_banker2, test_banker3, test_chest1, test_chest2, and test_orclord.
| void Pol::Testing::map_test | ( | ) |
Definition at line 25 of file testmisc.cpp.
References Pol::Core::gamestate, Pol::Realms::Realm::getmaptile(), INFO_PRINT, Pol::Plib::MAPTILE_CELL::landtile, Pol::Core::GameState::main_realm, and Pol::Plib::MAPTILE_CELL::z.
| void Pol::Testing::multiwalk_test | ( | ) |
Definition at line 279 of file testwalk.cpp.
References INFO_PRINT.
| void Pol::Testing::packet_test | ( | ) |
Definition at line 56 of file testmisc.cpp.
References data, Pol::ECompile::debug, and INFO_PRINT.
Referenced by run_pol_tests().
| void Pol::Testing::run_pol_tests | ( | ) |
Definition at line 21 of file poltest.cpp.
References create_test_environment(), display_test_results(), dummy(), and packet_test().
Referenced by Pol::xmain_inner().
| void Pol::Testing::skilladv_test | ( | ) |
Definition at line 38 of file testskill.cpp.
References Pol::Core::base_to_raw(), inc_failures(), inc_successes(), INFO_PRINT, and Pol::Core::raw_to_base().
| void Pol::Testing::walk_test | ( | ) |
Definition at line 91 of file testwalk.cpp.
References INFO_PRINT, Pol::Core::MOVEMODE_LAND, and Pol::Core::MOVEMODE_SEA.
| int Pol::Testing::failures |
Definition at line 30 of file testenv.cpp.
Referenced by inc_failures().
| bool Pol::Testing::static_debug_on |
Definition at line 29 of file uofile02.cpp.
Referenced by Pol::Realms::Realm::dropheight(), Pol::Realms::Realm::lowest_standheight(), Pol::Core::standheight(), and Pol::Realms::Realm::standheight().
| int Pol::Testing::successes |
Definition at line 31 of file testenv.cpp.
Referenced by inc_successes().
| Mobile::NPC * Pol::Testing::test_banker |
Definition at line 52 of file testenv.cpp.
| Mobile::NPC * Pol::Testing::test_banker2 |
Definition at line 53 of file testenv.cpp.
Referenced by los_test().
| Mobile::NPC * Pol::Testing::test_banker3 |
Definition at line 54 of file testenv.cpp.
Referenced by los_test().
| Items::Item * Pol::Testing::test_chest1 |
Definition at line 58 of file testenv.cpp.
Referenced by los_test().
| Items::Item * Pol::Testing::test_chest2 |
Definition at line 59 of file testenv.cpp.
Referenced by los_test().
| Items::Item * Pol::Testing::test_guard_door |
Definition at line 55 of file testenv.cpp.
| Mobile::NPC * Pol::Testing::test_orclord |
Definition at line 60 of file testenv.cpp.
Referenced by los_test().
| Mobile::NPC * Pol::Testing::test_seaserpent |
Definition at line 57 of file testenv.cpp.
| Mobile::NPC * Pol::Testing::test_water_elemental |
Definition at line 56 of file testenv.cpp.