|
Pol
Rev 533
|
#include <scrdef.h>
Collaboration diagram for ScriptDef:Public Member Functions | |
| ScriptDef () | |
| ScriptDef (const std::string &name, const Package *pkg, const char *mainpfx) | |
| ScriptDef (const std::string &name, const Package *pkg) | |
| const char * | c_str () const |
| void | clear () |
| void | config (const std::string &name, const Package *pkg, const char *mainpfx, bool warn_if_not_found=true) |
| void | config (const std::string &name, const Package *pkg) |
| bool | config_nodie (const std::string &name, const Package *pkg, const char *mainpfx) |
| bool | empty () const |
| bool | exists () const |
| const std::string & | name () const |
| bool | operator== (const ScriptDef &other) const |
| const Package * | pkg () const |
| void | quickconfig (const Package *pkg, const std::string &name_ecl) |
| void | quickconfig (const std::string &name_ecl) |
| std::string | relativename (const Package *pkg=NULL) const |
Private Attributes | |
| std::string | localname_ |
| std::string | name_ |
| const Package * | pkg_ |
| ScriptDef::ScriptDef | ( | ) | [inline] |
| ScriptDef::ScriptDef | ( | const std::string & | name, |
| const Package * | pkg, | ||
| const char * | mainpfx | ||
| ) |
Definition at line 38 of file scrdef.cpp.
References config().
Here is the call graph for this function:| ScriptDef::ScriptDef | ( | const std::string & | name, |
| const Package * | pkg | ||
| ) |
Definition at line 43 of file scrdef.cpp.
References config().
Here is the call graph for this function:| const char* ScriptDef::c_str | ( | ) | const [inline] |
Definition at line 41 of file scrdef.h.
References name_.
Referenced by exists(), find_script2(), OSExecutorModule::start_skill_script(), and StartSkillScript().
Here is the caller graph for this function:| void ScriptDef::clear | ( | ) |
Definition at line 140 of file scrdef.cpp.
References localname_, name_, and pkg_.
Referenced by UWeapon::set_hit_script(), and UArmor::set_onhitscript().
Here is the caller graph for this function:| void ScriptDef::config | ( | const std::string & | name, |
| const Package * | pkg, | ||
| const char * | mainpfx, | ||
| bool | warn_if_not_found = true |
||
| ) |
Definition at line 57 of file scrdef.cpp.
References empty(), exists(), full_scriptname(), localname_, name_, pkg_, and pkgdef_split().
Referenced by config(), ExportScript::ExportScript(), Item::run_equip_script(), Item::run_unequip_script(), ScriptDef(), UWeapon::set_hit_script(), and UArmor::set_onhitscript().
Here is the call graph for this function:
Here is the caller graph for this function:| void ScriptDef::config | ( | const std::string & | name, |
| const Package * | pkg | ||
| ) |
Definition at line 83 of file scrdef.cpp.
References config().
Here is the call graph for this function:| bool ScriptDef::config_nodie | ( | const std::string & | name, |
| const Package * | pkg, | ||
| const char * | mainpfx | ||
| ) |
Definition at line 89 of file scrdef.cpp.
References full_scriptname(), localname_, name_, pkg_, and pkgdef_split().
Referenced by DebugContext::cmd_call(), DebugContext::cmd_start(), CustomHousesCommit(), OSExecutorModule::mf_OpenConnection(), OSExecutorModule::run_script(), OSExecutorModule::run_script_to_completion(), JusticeRegion::RunEnterScript(), JusticeRegion::RunLeaveScript(), OSExecutorModule::start_script(), and OSExecutorModule::start_skill_script().
Here is the call graph for this function:
Here is the caller graph for this function:| bool ScriptDef::empty | ( | ) | const [inline] |
Definition at line 40 of file scrdef.h.
References name_.
Referenced by _create_item_in_container(), Character::attack(), UContainer::can_insert_add_item(), UContainer::can_insert_increase_stack(), USpell::cast(), UContainer::check_can_remove_script(), config(), decay_worldzone(), Item::double_click(), exists(), handle_use_skill(), UOExecutorModule::mf_UseItem(), UContainer::on_insert_add_item(), UContainer::on_insert_increase_stack(), UContainer::on_remove(), operator==(), read_itemdesc_file(), OSExecutorModule::start_skill_script(), Item::walk_on(), and UHouse::walk_on().
Here is the caller graph for this function:| bool ScriptDef::exists | ( | ) | const |
Definition at line 133 of file scrdef.cpp.
References c_str(), empty(), and FileExists().
Referenced by call_chr_scripts(), can_delete_character(), client_io_thread(), DebugContext::cmd_call(), DebugContext::cmd_start(), config(), CustomHousesCommit(), doubleclick(), OSExecutorModule::mf_OpenConnection(), preload_test_scripts(), OSExecutorModule::run_script(), OSExecutorModule::run_script_to_completion(), JusticeRegion::RunEnterScript(), JusticeRegion::RunLeaveScript(), skillrequest(), start_http_script(), OSExecutorModule::start_script(), OSExecutorModule::start_skill_script(), and start_textcmd_script().
Here is the call graph for this function:
Here is the caller graph for this function:| const std::string& ScriptDef::name | ( | ) | const [inline] |
Definition at line 44 of file scrdef.h.
References name_.
Referenced by DebugContext::cmd_call(), DebugContext::cmd_start(), find_script(), find_script2(), FindExportedFunction(), FindExportScript(), OSExecutorModule::mf_OpenConnection(), run_executor_to_completion(), Character::run_hit_script(), OSExecutorModule::run_script(), script_loaded(), ExportScript::scriptname(), start_http_script(), OSExecutorModule::start_script(), and OSExecutorModule::start_skill_script().
Here is the caller graph for this function:| bool ScriptDef::operator== | ( | const ScriptDef & | other | ) | const |
Definition at line 48 of file scrdef.cpp.
References empty(), name_, and pkg_.
Here is the call graph for this function:| const Package* ScriptDef::pkg | ( | ) | const [inline] |
Definition at line 45 of file scrdef.h.
References pkg_.
Referenced by find_script2(), and quickconfig().
Here is the caller graph for this function:| void ScriptDef::quickconfig | ( | const Package * | pkg, |
| const std::string & | name_ecl | ||
| ) |
Definition at line 118 of file scrdef.cpp.
References Package::dir(), localname_, name_, pkg(), and pkg_.
Referenced by call_chr_scripts(), can_delete_character(), Item::check_test_scripts(), client_io_thread(), doubleclick(), exec_console_cmd(), get_script_page_filename(), preload_test_scripts(), skillrequest(), start_http_script(), and start_textcmd_script().
Here is the call graph for this function:
Here is the caller graph for this function:| void ScriptDef::quickconfig | ( | const std::string & | name_ecl | ) |
Definition at line 126 of file scrdef.cpp.
References localname_, name_, and pkg_.
| string ScriptDef::relativename | ( | const Package * | pkg = NULL | ) | const |
Definition at line 108 of file scrdef.cpp.
References localname_, Package::name(), name_, and pkg_.
Referenced by UArmor::get_script_member_id(), UWeapon::get_script_member_id(), ArmorDesc::PopulateStruct(), WeaponDesc::PopulateStruct(), ItemDesc::PopulateStruct(), ContainerDesc::PopulateStruct(), UArmor::printProperties(), UWeapon::printProperties(), and AuxService::run().
Here is the call graph for this function:
Here is the caller graph for this function:std::string ScriptDef::localname_ [private] |
Definition at line 52 of file scrdef.h.
Referenced by clear(), config(), config_nodie(), quickconfig(), and relativename().
std::string ScriptDef::name_ [private] |
Definition at line 53 of file scrdef.h.
Referenced by c_str(), clear(), config(), config_nodie(), empty(), name(), operator==(), quickconfig(), and relativename().
const Package* ScriptDef::pkg_ [private] |
Definition at line 54 of file scrdef.h.
Referenced by clear(), config(), config_nodie(), operator==(), pkg(), quickconfig(), and relativename().