|
Pol
Rev 533
|
#include <osmod.h>
Inheritance diagram for OSExecutorModule:
Collaboration diagram for OSExecutorModule:anonymous enum [protected] |
enum OSExecutorModule::WAIT_TYPE [protected] |
| OSExecutorModule::OSExecutorModule | ( | Executor & | exec | ) | [explicit] |
| bool OSExecutorModule::blocked | ( | ) | const |
Definition at line 119 of file osmod.cpp.
References blocked_.
Referenced by UOExecutor::state().
Here is the caller graph for this function:Definition at line 618 of file osmod.cpp.
References events_.
Referenced by ScriptExObjImp::call_method_id(), and mf_clear_event_queue().
Here is the caller graph for this function:| BObjectImp * OSExecutorModule::create_debug_context | ( | ) | [protected] |
| void OSExecutorModule::event_occurred | ( | BObject | event | ) | [protected] |
| BObjectImp * OSExecutorModule::events_waiting | ( | ) | [protected] |
| BObjectImp * OSExecutorModule::execFunc | ( | unsigned | idx | ) | [protected, virtual] |
Implements ExecutorModule.
Definition at line 162 of file osmod.cpp.
References callMemberFunction, and function_table.
| int OSExecutorModule::functionIndex | ( | const char * | func | ) | [protected, virtual] |
Implements ExecutorModule.
Definition at line 152 of file osmod.cpp.
References arsize, and function_table.
| std::string OSExecutorModule::functionName | ( | unsigned | idx | ) | [protected, virtual] |
Implements ExecutorModule.
Definition at line 167 of file osmod.cpp.
References OSFunctionDef::funcname, and function_table.
| bool OSExecutorModule::getCharacterParam | ( | unsigned | param, |
| Character *& | chrptr | ||
| ) | [inline, protected] |
Definition at line 139 of file osmod.h.
References ExecutorModule::exec.
Referenced by mf_OpenURL(), and start_skill_script().
Here is the caller graph for this function:| BObjectImp * OSExecutorModule::getpid | ( | ) | [protected] |
| BObjectImp * OSExecutorModule::getprocess | ( | ) | [protected] |
Definition at line 177 of file osmod.cpp.
References find_uoexec(), ExecutorModule::getParam(), and pid().
Here is the call graph for this function:| bool OSExecutorModule::in_debugger_holdlist | ( | ) | const |
Definition at line 192 of file scrsched.cpp.
References DEBUGGER_LIST, and in_hold_list_.
Referenced by ScriptExObjImp::call_method_id(), DebugContext::cmd_detach(), DebugContext::cmd_instrace(), DebugContext::cmd_run(), DebugContext::cmd_stepinto(), DebugContext::cmd_stepover(), NPC::on_death(), and NPC::restart_script().
Here is the caller graph for this function:| BObjectImp * OSExecutorModule::is_critical | ( | ) | [protected] |
| BObjectImp * OSExecutorModule::mf_clear_event_queue | ( | ) | [protected] |
Definition at line 611 of file osmod.cpp.
References clear_event_queue().
Here is the call graph for this function:| BObjectImp * OSExecutorModule::mf_Log | ( | ) | [protected] |
Definition at line 496 of file osmod.cpp.
References String::data(), ExecutorModule::exec, Executor::getParamImp(), BObjectImp::getStringRep(), BObjectImp::isa(), Log(), BObjectImp::OTString, and Executor::scriptname().
Here is the call graph for this function:| BObjectImp * OSExecutorModule::mf_OpenConnection | ( | ) | [protected] |
Definition at line 675 of file osmod.cpp.
References ScriptDef::config_nodie(), ExecutorModule::exec, ScriptDef::exists(), Executor::findModule(), ExecutorModule::getParam(), ExecutorModule::getStringParam(), ScriptDef::name(), Socket::open(), UOExecutor::pChild, EScriptProgram::pkg, Executor::prog(), SocketClientThread::start(), and String::value().
Here is the call graph for this function:| BObjectImp * OSExecutorModule::mf_OpenURL | ( | ) | [protected] |
Definition at line 641 of file osmod.cpp.
References Character::client, String::data(), getCharacterParam(), ExecutorModule::getStringParam(), Character::has_active_client(), PktHelper::PacketOut< T >::Send(), URL_MAX_LEN, PacketWriterDefs::PacketWriter< _id, _size, _sub >::Write(), and PacketWriterDefs::PacketWriter< _id, _size, _sub >::WriteFlipped().
Here is the call graph for this function:| BObjectImp* OSExecutorModule::mf_parameter | ( | ) | [protected] |
| BObjectImp * OSExecutorModule::mf_set_debug | ( | ) | [protected] |
Definition at line 481 of file osmod.cpp.
References ExecutorModule::exec, ExecutorModule::getParam(), Executor::setDebugLevel(), and Executor::SOURCELINES.
Here is the call graph for this function:| BObjectImp * OSExecutorModule::mf_set_event_queue_size | ( | ) | [protected] |
Definition at line 628 of file osmod.cpp.
References ExecutorModule::getParam(), and max_eventqueue_size.
Here is the call graph for this function:| BObjectImp * OSExecutorModule::mf_set_priority | ( | ) | [protected] |
Definition at line 520 of file osmod.cpp.
References ExecutorModule::getParam(), and priority.
Here is the call graph for this function:| BObjectImp * OSExecutorModule::mf_set_script_option | ( | ) | [protected] |
Definition at line 562 of file osmod.cpp.
References UOExecutor::auxsvc_assume_string, UOExecutor::can_access_offline_mobiles, critical, ExecutorModule::exec, Executor::getDebugLevel(), ExecutorModule::getParam(), Executor::NONE, SCRIPTOPT_AUXSVC_ASSUME_STRING, SCRIPTOPT_CAN_ACCESS_OFFLINE_MOBILES, SCRIPTOPT_DEBUG, SCRIPTOPT_NO_INTERRUPT, SCRIPTOPT_NO_RUNAWAY, Executor::setDebugLevel(), Executor::SOURCELINES, and warn_on_runaway.
Here is the call graph for this function:| BObjectImp * OSExecutorModule::mf_system_rpm | ( | ) | [protected] |
| BObjectImp * OSExecutorModule::mf_unload_scripts | ( | ) | [protected] |
Definition at line 538 of file osmod.cpp.
References String::data(), ExecutorModule::getStringParam(), String::length(), unload_all_scripts(), and unload_script().
Here is the call graph for this function:| unsigned int OSExecutorModule::pid | ( | ) | const |
Definition at line 114 of file osmod.cpp.
References pid_.
Referenced by DebugContext::cmd_start(), ClientGameData::find_gumpmod(), ScriptExObjImp::get_member_id(), getprocess(), UOExecutorModule::internal_SendCompressedGumpMenu(), UOExecutorModule::internal_SendUnCompressedGumpMenu(), and run_ready().
Here is the caller graph for this function:| void OSExecutorModule::revive | ( | ) |
Definition at line 172 of file scrsched.cpp.
References blocked_, DEBUGGER_LIST, ExecutorModule::exec, hold_itr_, holdlist, in_hold_list_, NO_LIST, NOTIMEOUT_LIST, notimeoutholdlist, runlist, and TIMEOUT_LIST.
Referenced by ScriptExObjImp::call_method_id(), check_blocked(), ClientGameData::clear(), clear_gumphandler(), handle_coord_cursor(), handle_prompt(), handle_resurrect_menu(), handle_script_cursor(), handle_selcolor(), handle_textentry(), handle_unicode_prompt(), menu_selection_made(), NPC::on_death(), NPC::restart_script(), run_ready(), and signal_event().
Here is the caller graph for this function:| void OSExecutorModule::revive_debugged | ( | ) |
Definition at line 196 of file scrsched.cpp.
References debuggerholdlist, ExecutorModule::exec, in_hold_list_, NO_LIST, and runlist.
Referenced by ScriptExObjImp::call_method_id(), DebugContext::cmd_detach(), DebugContext::cmd_instrace(), DebugContext::cmd_run(), DebugContext::cmd_stepinto(), DebugContext::cmd_stepover(), NPC::on_death(), and NPC::restart_script().
Here is the caller graph for this function:| BObjectImp * OSExecutorModule::run_script | ( | ) | [protected] |
Definition at line 415 of file osmod.cpp.
References ScriptDef::config_nodie(), UOExecutorModule::controller_, BObjectImp::copy(), UninitObject::create(), ExecutorModule::exec, ScriptDef::exists(), Executor::findModule(), Executor::getParamImp(), Executor::getStringParam(), ScriptDef::name(), Executor::PC, UOExecutor::pChild, EScriptProgram::pkg, UOExecutor::pParent, Executor::prog(), start_script(), suspend(), String::value(), and Executor::ValueStack.
Here is the call graph for this function:| BObjectImp * OSExecutorModule::run_script_to_completion | ( | ) | [protected] |
Definition at line 397 of file osmod.cpp.
References ScriptDef::config_nodie(), ExecutorModule::exec, ScriptDef::exists(), ExecutorModule::getParamImp(), Executor::paramAsString(), EScriptProgram::pkg, Executor::prog(), and ExecutorModule::scriptname().
Here is the call graph for this function:| BObjectImp * OSExecutorModule::set_critical | ( | ) | [protected] |
Definition at line 375 of file osmod.cpp.
References critical, ExecutorModule::exec, and Executor::getParam().
Here is the call graph for this function:| bool OSExecutorModule::signal_event | ( | BObjectImp * | eventimp | ) |
Definition at line 90 of file scrsched.cpp.
References blocked_, config, PolConfig::discard_old_events, events_, ExecutorModule::exec, Executor::findModule(), BObjectImp::getStringRep(), hexint(), INC_PROFILEVAR, PolConfig::loglevel, max_eventqueue_size, NPCExecutorModule::npc, revive(), Executor::scriptname(), UObject::serial, Executor::ValueStack, WAIT_EVENT, wait_type, NPC::x, NPC::y, and UObject::z.
Referenced by NPC::apply_raw_damage_hundredths(), ScriptExObjImp::call_method_id(), NPC::inform_criminal(), NPC::inform_disengaged(), NPC::inform_engaged(), NPC::inform_enteredarea(), NPC::inform_imoved(), NPC::inform_leftarea(), NPC::inform_moved(), NPC::on_ghost_pc_spoke(), NPC::on_pc_spoke(), AuxClientThread::run(), sayto_listening_points(), and NPC::send_event().
Here is the call graph for this function:
Here is the caller graph for this function:| BObjectImp * OSExecutorModule::sleep | ( | ) | [protected] |
Definition at line 213 of file osmod.cpp.
References ExecutorModule::exec, Executor::paramAsLong(), and SleepFor().
Here is the call graph for this function:| void OSExecutorModule::SleepFor | ( | int | secs | ) |
Definition at line 145 of file scrsched.cpp.
References blocked_, polclock(), POLCLOCKS_PER_SEC, sleep_until_clock_, WAIT_SLEEP, and wait_type.
Referenced by NPCExecutorModule::move(), and sleep().
Here is the call graph for this function:
Here is the caller graph for this function:| void OSExecutorModule::SleepForMs | ( | int | msecs | ) |
Definition at line 155 of file scrsched.cpp.
References blocked_, polclock(), POLCLOCKS_PER_SEC, sleep_until_clock_, WAIT_SLEEP, and wait_type.
Referenced by HttpExecutorModule::mf_WriteHtml(), HttpExecutorModule::mf_WriteHtmlRaw(), NPCExecutorModule::move_self(), and sleepms().
Here is the call graph for this function:
Here is the caller graph for this function:| BObjectImp * OSExecutorModule::sleepms | ( | ) | [protected] |
Definition at line 224 of file osmod.cpp.
References ExecutorModule::exec, Executor::paramAsLong(), and SleepForMs().
Here is the call graph for this function:| BObjectImp * OSExecutorModule::start_script | ( | ) | [protected] |
Definition at line 262 of file osmod.cpp.
References ScriptDef::config_nodie(), UOExecutorModule::controller_, BObjectImp::copy(), ExecutorModule::exec, ScriptDef::exists(), Executor::findModule(), Executor::getParamImp(), Executor::getStringParam(), ScriptDef::name(), EScriptProgram::pkg, Executor::prog(), and String::value().
Referenced by run_script().
Here is the call graph for this function:
Here is the caller graph for this function:| BObjectImp * OSExecutorModule::start_skill_script | ( | ) | [protected] |
Definition at line 299 of file osmod.cpp.
References ScriptDef::c_str(), PolConfig::cache_interactive_scripts, CanUseSkill(), Character::client, config, ScriptDef::config_nodie(), Attribute::delay_seconds, Attribute::disable_core_checks, Character::disable_skills_until, ScriptDef::empty(), ExecutorModule::exec, ScriptDef::exists(), find_script2(), ref_ptr< T >::get(), getAttributeParam(), getCharacterParam(), Executor::getStringParam(), getUObjectParam(), Character::hidden(), Attribute::name, ScriptDef::name(), EScriptProgram::pkg, poltime(), Executor::prog(), Attribute::script_, send_sysmessage(), Character::start_script(), Character::unhide(), Attribute::unhides, and String::value().
Here is the call graph for this function:| void OSExecutorModule::suspend | ( | ) |
Definition at line 165 of file scrsched.cpp.
References blocked_, sleep_until_clock_, WAIT_SLEEP, and wait_type.
Referenced by UOExecutorModule::internal_SendCompressedGumpMenu(), UOExecutorModule::internal_SendUnCompressedGumpMenu(), UOExecutorModule::mf_PromptInput(), UnicodeExecutorModule::mf_RequestInputUC(), UOExecutorModule::mf_SelectColor(), UOExecutorModule::mf_SelectMenuItem(), UOExecutorModule::mf_SendInstaResDialog(), UOExecutorModule::mf_SendTextEntryGump(), UOExecutorModule::mf_Target(), UOExecutorModule::mf_TargetCoordinates(), UOExecutorModule::mf_TargetMultiPlacement(), and run_script().
Here is the caller graph for this function:| BObjectImp * OSExecutorModule::wait_for_event | ( | ) | [protected] |
Definition at line 235 of file osmod.cpp.
References blocked_, events_, ExecutorModule::exec, Executor::paramAsLong(), polclock(), POLCLOCKS_PER_SEC, sleep_until_clock_, WAIT_EVENT, and wait_type.
Here is the call graph for this function:| polclock_t calc_script_clocksleft | ( | polclock_t | now | ) | [friend] |
Definition at line 459 of file scrsched.cpp.
| void check_blocked | ( | polclock_t * | pclocksleft | ) | [friend] |
Definition at line 420 of file scrsched.cpp.
| void deschedule_executor | ( | UOExecutor * | ex | ) | [friend] |
Definition at line 1062 of file scrsched.cpp.
| void new_check_blocked | ( | void | ) | [friend] |
friend class NPCExecutorModule [friend] |
| void run_ready | ( | void | ) | [friend] |
Definition at line 291 of file scrsched.cpp.
| void step_scripts | ( | void | ) | [friend] |
bool OSExecutorModule::blocked_ [protected] |
Definition at line 102 of file osmod.h.
Referenced by blocked(), check_blocked(), deschedule_executor(), revive(), run_ready(), signal_event(), SleepFor(), SleepForMs(), suspend(), and wait_for_event().
Definition at line 61 of file osmod.h.
Referenced by ClientCreateChar(), ClientCreateChar70160(), ClientCreateCharKR(), is_critical(), list_crit_script(), mf_set_script_option(), run_ready(), and set_critical().
std::queue<BObjectImp*> OSExecutorModule::events_ [protected] |
Definition at line 117 of file osmod.h.
Referenced by clear_event_queue(), events_waiting(), signal_event(), wait_for_event(), and ~OSExecutorModule().
OSFunctionDef OSExecutorModule::function_table [static, protected] |
{
{ "create_debug_context", &OSExecutorModule::create_debug_context },
{ "getprocess", &OSExecutorModule::getprocess },
{ "get_process", &OSExecutorModule::getprocess },
{ "getpid", &OSExecutorModule::getpid },
{ "sleep", &OSExecutorModule::sleep },
{ "sleepms", &OSExecutorModule::sleepms },
{ "wait_for_event", &OSExecutorModule::wait_for_event },
{ "events_waiting", &OSExecutorModule::events_waiting },
{ "start_script", &OSExecutorModule::start_script },
{ "start_skill_script", &OSExecutorModule::start_skill_script },
{ "set_critical", &OSExecutorModule::set_critical },
{ "is_critical", &OSExecutorModule::is_critical },
{ "run_script_to_completion", &OSExecutorModule::run_script_to_completion },
{ "run_script", &OSExecutorModule::run_script },
{ "set_debug", &OSExecutorModule::mf_set_debug },
{ "syslog", &OSExecutorModule::mf_Log },
{ "system_rpm", &OSExecutorModule::mf_system_rpm },
{ "set_priority", &OSExecutorModule::mf_set_priority },
{ "unload_scripts", &OSExecutorModule::mf_unload_scripts },
{ "set_script_option", &OSExecutorModule::mf_set_script_option },
{ "clear_event_queue", &OSExecutorModule::mf_clear_event_queue },
{ "set_event_queue_size", &OSExecutorModule::mf_set_event_queue_size },
{ "OpenURL", &OSExecutorModule::mf_OpenURL },
{ "OpenConnection", &OSExecutorModule::mf_OpenConnection }
}
Definition at line 136 of file osmod.h.
Referenced by execFunc(), functionIndex(), and functionName().
HoldList::iterator OSExecutorModule::hold_itr_ [protected] |
Definition at line 106 of file osmod.h.
Referenced by deschedule_executor(), revive(), and run_ready().
enum { ... } OSExecutorModule::in_hold_list_ [protected] |
Referenced by deschedule_executor(), in_debugger_holdlist(), revive(), revive_debugged(), and run_ready().
unsigned short OSExecutorModule::max_eventqueue_size [protected] |
Definition at line 116 of file osmod.h.
Referenced by mf_set_event_queue_size(), and signal_event().
unsigned int OSExecutorModule::pid_ [protected] |
Definition at line 108 of file osmod.h.
Referenced by getpid(), pid(), and ~OSExecutorModule().
| unsigned char OSExecutorModule::priority |
Definition at line 62 of file osmod.h.
Referenced by mf_set_priority(), Character::run_hit_script(), run_ready(), Character::start_script(), start_textcmd_script(), Item::walk_on(), and UHouse::walk_on().
polclock_t OSExecutorModule::sleep_until_clock_ [protected] |
Definition at line 103 of file osmod.h.
Referenced by calc_script_clocksleft(), check_blocked(), run_ready(), SleepFor(), SleepForMs(), suspend(), and wait_for_event().
enum OSExecutorModule::WAIT_TYPE OSExecutorModule::wait_type [protected] |
Referenced by signal_event(), SleepFor(), SleepForMs(), suspend(), and wait_for_event().
Definition at line 63 of file osmod.h.
Referenced by mf_set_script_option(), and run_ready().