Pol  Revision:e50bd96
Pol::Testing Namespace Reference

Functions

Itemadd_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::NPCadd_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 run_pol_tests ()
 
void skilladv_test ()
 
void walk_test ()
 

Variables

int failures
 
bool static_debug_on
 
int successes
 
Mobile::NPCtest_banker
 
Mobile::NPCtest_banker2
 
Mobile::NPCtest_banker3
 
Itemtest_chest1
 
Itemtest_chest2
 
Itemtest_guard_door
 
Mobile::NPCtest_orclord
 
Mobile::NPCtest_seaserpent
 
Mobile::NPCtest_water_elemental
 

Function Documentation

Items::Item * Pol::Testing::add_item ( unsigned int  objtype,
unsigned short  x,
unsigned short  y,
short  z 
)
void Pol::Testing::add_multi ( unsigned int  objtype,
unsigned short  x,
unsigned short  y,
short  z 
)
void Pol::Testing::add_multi ( unsigned int  objtype,
unsigned short  x,
unsigned short  y,
short  z,
int  flags 
)

Definition at line 88 of file testenv.cpp.

References Pol::Items::find_itemdesc(), Pol::Core::gamestate, Pol::Core::GameState::main_realm, and Pol::Multi::UMulti::scripted_create().

+ Here is the call graph for this function:

void Pol::Testing::create_test_environment ( )

Definition at line 122 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().

+ Here is the call graph for this function:

void Pol::Testing::display_test_results ( )

Definition at line 45 of file testenv.cpp.

References INFO_PRINT.

Referenced by run_pol_tests().

void Pol::Testing::drop_test ( )

Definition at line 57 of file testdrop.cpp.

References INFO_PRINT.

void Pol::Testing::dynprops_test ( )
void Pol::Testing::inc_failures ( )

Definition at line 35 of file testenv.cpp.

References failures.

Referenced by skilladv_test().

void Pol::Testing::inc_successes ( )

Definition at line 40 of file testenv.cpp.

References successes.

Referenced by skilladv_test().

void Pol::Testing::los_test ( )

Definition at line 119 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.

+ Here is the call graph for this function:

void Pol::Testing::map_test ( )
void Pol::Testing::multiwalk_test ( )

Definition at line 282 of file testwalk.cpp.

References INFO_PRINT.

void Pol::Testing::run_pol_tests ( )

Definition at line 24 of file poltest.cpp.

References create_test_environment(), display_test_results(), and dummy().

Referenced by Pol::xmain_inner().

+ Here is the call graph for this function:

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().

+ Here is the call graph for this function:

void Pol::Testing::walk_test ( )

Definition at line 94 of file testwalk.cpp.

References INFO_PRINT, Pol::Core::MOVEMODE_LAND, and Pol::Core::MOVEMODE_SEA.

Variable Documentation

int Pol::Testing::failures

Definition at line 32 of file testenv.cpp.

Referenced by inc_failures().

int Pol::Testing::successes

Definition at line 33 of file testenv.cpp.

Referenced by inc_successes().

Mobile::NPC * Pol::Testing::test_banker

Definition at line 54 of file testenv.cpp.

Mobile::NPC * Pol::Testing::test_banker2

Definition at line 55 of file testenv.cpp.

Referenced by los_test().

Mobile::NPC * Pol::Testing::test_banker3

Definition at line 56 of file testenv.cpp.

Referenced by los_test().

Items::Item * Pol::Testing::test_chest1

Definition at line 60 of file testenv.cpp.

Referenced by los_test().

Items::Item * Pol::Testing::test_chest2

Definition at line 61 of file testenv.cpp.

Referenced by los_test().

Items::Item * Pol::Testing::test_guard_door

Definition at line 57 of file testenv.cpp.

Mobile::NPC * Pol::Testing::test_orclord

Definition at line 62 of file testenv.cpp.

Referenced by los_test().

Mobile::NPC * Pol::Testing::test_seaserpent

Definition at line 59 of file testenv.cpp.

Mobile::NPC * Pol::Testing::test_water_elemental

Definition at line 58 of file testenv.cpp.