Pol  Revision:cb584c9
scrsched.cpp File Reference
#include "scrsched.h"
#include <ctime>
#include <exception>
#include <format/format.h>
#include "../bscript/berror.h"
#include "../bscript/bobject.h"
#include "../clib/logfacility.h"
#include "../clib/passert.h"
#include "../clib/refptr.h"
#include "../plib/systemstate.h"
#include "globals/script_internals.h"
#include "globals/state.h"
#include "module/attributemod.h"
#include "module/basiciomod.h"
#include "module/basicmod.h"
#include "module/boatmod.h"
#include "module/cfgmod.h"
#include "module/clmod.h"
#include "module/datastore.h"
#include "module/filemod.h"
#include "module/guildmod.h"
#include "module/httpmod.h"
#include "module/mathmod.h"
#include "module/osmod.h"
#include "module/partymod.h"
#include "module/polsystemmod.h"
#include "module/sqlmod.h"
#include "module/storagemod.h"
#include "module/unimod.h"
#include "module/uomod.h"
#include "module/utilmod.h"
#include "module/vitalmod.h"
#include "polsig.h"
#include "profile.h"
#include "scrdef.h"
#include "scrstore.h"
#include "uoexec.h"

Go to the source code of this file.

Namespaces

 Pol
 
 Pol::Core
 

Functions

void Pol::Core::add_common_exmods (Core::UOExecutor &ex)
 
polclock_t Pol::Core::calc_script_clocksleft (polclock_t now)
 
bool Pol::Core::call_script (const ScriptDef &script, Bscript::BObjectImp *param0)
 
bool Pol::Core::call_script (const ScriptDef &script, Bscript::BObjectImp *param0, Bscript::BObjectImp *param1)
 
bool Pol::Core::call_script (const ScriptDef &script, Bscript::BObjectImp *param0, Bscript::BObjectImp *param1, Bscript::BObjectImp *param2)
 
bool Pol::Core::call_script (const ScriptDef &script, Bscript::BObjectImp *param0, Bscript::BObjectImp *param1, Bscript::BObjectImp *param2, Bscript::BObjectImp *param3)
 
bool Pol::Core::call_script (const ScriptDef &script, Bscript::BObjectImp *param0, Bscript::BObjectImp *param1, Bscript::BObjectImp *param2, Bscript::BObjectImp *param3, Bscript::BObjectImp *param4)
 
bool Pol::Core::call_script (const ScriptDef &script, Bscript::BObjectImp *param0, Bscript::BObjectImp *param1, Bscript::BObjectImp *param2, Bscript::BObjectImp *param3, Bscript::BObjectImp *param4, Bscript::BObjectImp *param5)
 
bool Pol::Core::call_script (const ScriptDef &script, Bscript::BObjectImp *param0, Bscript::BObjectImp *param1, Bscript::BObjectImp *param2, Bscript::BObjectImp *param3, Bscript::BObjectImp *param4, Bscript::BObjectImp *param5, Bscript::BObjectImp *param6)
 
void Pol::Core::check_blocked (polclock_t *pclocksleft)
 
UOExecutor * Pol::Core::create_full_script_executor ()
 
UOExecutor * Pol::Core::create_script_executor ()
 
bool Pol::Core::find_uoexec (unsigned int pid, UOExecutor **pp_uoexec)
 
void Pol::Core::list_crit_script (UOExecutor *uoexec)
 
void Pol::Core::list_crit_scripts (const char *desc, const ExecList &ls)
 
void Pol::Core::list_crit_scripts ()
 
void Pol::Core::list_script (UOExecutor *uoexec)
 
void Pol::Core::list_scripts (const char *desc, const ExecList &ls)
 
void Pol::Core::list_scripts ()
 
BObjectImp * Pol::Core::run_executor_to_completion (UOExecutor &ex, const ScriptDef &script)
 
void Pol::Core::run_ready (void)
 
bool Pol::Core::run_script_to_completion (const char *filename, Bscript::BObjectImp *parameter)
 
bool Pol::Core::run_script_to_completion (const char *filename)
 
Bscript::BObjectImp * Pol::Core::run_script_to_completion (const ScriptDef &script)
 
Bscript::BObjectImp * Pol::Core::run_script_to_completion (const ScriptDef &script, Bscript::BObjectImp *param1)
 
Bscript::BObjectImp * Pol::Core::run_script_to_completion (const ScriptDef &script, Bscript::BObjectImp *param1, Bscript::BObjectImp *param2)
 
Bscript::BObjectImp * Pol::Core::run_script_to_completion (const ScriptDef &script, Bscript::BObjectImp *param1, Bscript::BObjectImp *param2, Bscript::BObjectImp *param3)
 
Bscript::BObjectImp * Pol::Core::run_script_to_completion (const ScriptDef &script, Bscript::BObjectImp *param1, Bscript::BObjectImp *param2, Bscript::BObjectImp *param3, Bscript::BObjectImp *param4)
 
Bscript::BObjectImp * Pol::Core::run_script_to_completion (const ScriptDef &script, Bscript::BObjectImp *param1, Bscript::BObjectImp *param2, Bscript::BObjectImp *param3, Bscript::BObjectImp *param4, Bscript::BObjectImp *param5)
 
Bscript::BObjectImp * Pol::Core::run_script_to_completion (const ScriptDef &script, Bscript::BObjectImp *param1, Bscript::BObjectImp *param2, Bscript::BObjectImp *param3, Bscript::BObjectImp *param4, Bscript::BObjectImp *param5, Bscript::BObjectImp *param6)
 
Bscript::BObjectImp * Pol::Core::run_script_to_completion (const ScriptDef &script, Bscript::BObjectImp *param1, Bscript::BObjectImp *param2, Bscript::BObjectImp *param3, Bscript::BObjectImp *param4, Bscript::BObjectImp *param5, Bscript::BObjectImp *param6, Bscript::BObjectImp *param7)
 
bool Pol::Core::run_script_to_completion_worker (UOExecutor &ex, Bscript::EScriptProgram *prog)
 
void Pol::Core::schedule_executor (UOExecutor *ex)
 
void Pol::Core::start_script (const char *filename, Bscript::BObjectImp *param0, Bscript::BObjectImp *param1)
 
Module::UOExecutorModule * Pol::Core::start_script (const ScriptDef &script, Bscript::BObjectImp *param)
 
Module::UOExecutorModule * Pol::Core::start_script (const ScriptDef &script, Bscript::BObjectImp *param0, Bscript::BObjectImp *param1, Bscript::BObjectImp *param2, Bscript::BObjectImp *param3)
 
Module::UOExecutorModule * Pol::Core::start_script (ref_ptr< Bscript::EScriptProgram > program, Bscript::BObjectImp *param)
 
void Pol::Core::step_scripts (polclock_t *clocksleft, bool *pactivity)
 

Detailed Description

History
  • 2005/09/16 Shinigami: added scripts_thread_script* to support better debugging
  • 2006/05/11 Shinigami: better logging in ::signal_event()
  • 2006/05/27 Shinigami: fixed a smaller cout-bug
  • 2006/09/17 Shinigami: ::signal_event() will return error on full evene queue
  • 2006/09/23 Shinigami: Script_Cycles, Sleep_Cycles and Script_passes uses 64bit now
  • 2009/07/28 MuadDib: Packet Struct Refactoring
  • 2009/09/03 MuadDib: Relocation of boat related cpp/h
  • 2010/02/04 Turley: "Event queue full" cerr only if loglevel>=11 polcfg.discard_old_events discards oldest event if queue is full

Definition in file scrsched.cpp.