Pol  Rev 533
ExportScript Class Reference

#include <syshookscript.h>

+ Collaboration diagram for ExportScript:

List of all members.

Public Member Functions

 ExportScript (const Package *pkg, std::string scriptname)
 ExportScript (const ScriptDef &isd)
bool call (unsigned PC, BObjectImp *p0)
bool call (unsigned PC, BObjectImp *p0, BObjectImp *p1)
bool call (unsigned PC, BObjectImp *p0, BObjectImp *p1, BObjectImp *p2)
bool call (unsigned PC, BObjectImp *p0, BObjectImp *p1, BObjectImp *p2, BObjectImp *p3)
BObjectImpcall (unsigned PC, BObjectImp *p0, std::vector< BObjectRef > &pmore)
BObject call (unsigned PC, BObjectImp *p0, BObjectImpRefVec &pmore)
int call_long (unsigned PC, BObjectImp *p0)
int call_long (unsigned PC, BObjectImp *p0, BObjectImp *p1)
BObject call_object (unsigned PC, BObjectImp *p0, BObjectImp *p1)
BObject call_object (unsigned PC, BObjectImp *p0, BObjectImp *p1, BObjectImp *p2)
std::string call_string (unsigned PC, BObjectImp *p0, BObjectImp *p1)
std::string call_string (unsigned PC, BObjectImp *p0, BObjectImp *p1, BObjectImp *p2)
bool FindExportedFunction (const std::string &name, unsigned args, unsigned &PC) const
bool FindExportedFunction (const char *name, unsigned args, unsigned &PC) const
bool Initialize ()
void LoadStack (BackupStruct &backup)
void SaveStack (BackupStruct &backup)
const std::string & scriptname () const

Private Attributes

ScriptDef sd
UOExecutor uoexec

Friends

class SystemHook

Detailed Description

Definition at line 21 of file syshookscript.h.


Constructor & Destructor Documentation

ExportScript::ExportScript ( const Package pkg,
std::string  scriptname 
)

Definition at line 20 of file systemhookscript.cpp.

References ScriptDef::config(), and sd.

+ Here is the call graph for this function:

Definition at line 27 of file systemhookscript.cpp.


Member Function Documentation

bool ExportScript::call ( unsigned  PC,
BObjectImp p0 
)

Definition at line 214 of file systemhookscript.cpp.

References Executor::error(), Executor::exec(), Executor::initForFnCall(), LoadStack(), Executor::pushArg(), SaveStack(), uoexec, and Executor::ValueStack.

Referenced by ExportedFunction::call(), NPC::custom_script_method(), and Character::custom_script_method().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool ExportScript::call ( unsigned  PC,
BObjectImp p0,
BObjectImp p1 
)

Definition at line 174 of file systemhookscript.cpp.

References Executor::error(), Executor::exec(), Executor::initForFnCall(), LoadStack(), Executor::pushArg(), SaveStack(), uoexec, and Executor::ValueStack.

+ Here is the call graph for this function:

bool ExportScript::call ( unsigned  PC,
BObjectImp p0,
BObjectImp p1,
BObjectImp p2 
)

Definition at line 132 of file systemhookscript.cpp.

References Executor::error(), Executor::exec(), Executor::initForFnCall(), LoadStack(), Executor::pushArg(), SaveStack(), uoexec, and Executor::ValueStack.

+ Here is the call graph for this function:

bool ExportScript::call ( unsigned  PC,
BObjectImp p0,
BObjectImp p1,
BObjectImp p2,
BObjectImp p3 
)

Definition at line 88 of file systemhookscript.cpp.

References Executor::error(), Executor::exec(), Executor::initForFnCall(), LoadStack(), Executor::pushArg(), SaveStack(), uoexec, and Executor::ValueStack.

+ Here is the call graph for this function:

BObjectImp * ExportScript::call ( unsigned  PC,
BObjectImp p0,
std::vector< BObjectRef > &  pmore 
)

Definition at line 429 of file systemhookscript.cpp.

References Executor::error(), Executor::exec(), Executor::initForFnCall(), LoadStack(), Executor::pushArg(), SaveStack(), uoexec, and Executor::ValueStack.

+ Here is the call graph for this function:

BObject ExportScript::call ( unsigned  PC,
BObjectImp p0,
BObjectImpRefVec pmore 
)

Definition at line 473 of file systemhookscript.cpp.

References Executor::error(), Executor::exec(), Executor::initForFnCall(), LoadStack(), Executor::pushArg(), SaveStack(), uoexec, and Executor::ValueStack.

+ Here is the call graph for this function:

int ExportScript::call_long ( unsigned  PC,
BObjectImp p0 
)

Definition at line 332 of file systemhookscript.cpp.

References Executor::error(), Executor::exec(), Executor::initForFnCall(), BObjectImp::isa(), LoadStack(), BObjectImp::OTLong, Executor::pushArg(), SaveStack(), uoexec, BLong::value(), and Executor::ValueStack.

Referenced by ExportedFunction::call_long().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

BObject ExportScript::call_object ( unsigned  PC,
BObjectImp p0,
BObjectImp p1 
)

Definition at line 516 of file systemhookscript.cpp.

References Executor::error(), Executor::exec(), Executor::initForFnCall(), LoadStack(), Executor::pushArg(), SaveStack(), uoexec, and Executor::ValueStack.

Referenced by ExportedFunction::call_object().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

BObject ExportScript::call_object ( unsigned  PC,
BObjectImp p0,
BObjectImp p1,
BObjectImp p2 
)

Definition at line 556 of file systemhookscript.cpp.

References Executor::error(), Executor::exec(), Executor::initForFnCall(), LoadStack(), Executor::pushArg(), SaveStack(), uoexec, and Executor::ValueStack.

+ Here is the call graph for this function:

std::string ExportScript::call_string ( unsigned  PC,
BObjectImp p0,
BObjectImp p1 
)

Definition at line 251 of file systemhookscript.cpp.

References Executor::error(), Executor::exec(), Executor::initForFnCall(), LoadStack(), Executor::pushArg(), SaveStack(), uoexec, and Executor::ValueStack.

Referenced by ExportedFunction::call_string().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string ExportScript::call_string ( unsigned  PC,
BObjectImp p0,
BObjectImp p1,
BObjectImp p2 
)

Definition at line 291 of file systemhookscript.cpp.

References Executor::error(), Executor::exec(), Executor::initForFnCall(), LoadStack(), Executor::pushArg(), SaveStack(), uoexec, and Executor::ValueStack.

+ Here is the call graph for this function:

bool ExportScript::FindExportedFunction ( const std::string &  name,
unsigned  args,
unsigned &  PC 
) const

Definition at line 43 of file systemhookscript.cpp.

References EScriptProgram::exported_functions, Executor::prog(), scriptname(), and uoexec.

Referenced by NPC::custom_script_method(), Character::custom_script_method(), FindExportedFunction(), and hook().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool ExportScript::FindExportedFunction ( const char *  name,
unsigned  args,
unsigned &  PC 
) const

Definition at line 65 of file systemhookscript.cpp.

References EScriptProgram::exported_functions, Executor::prog(), scriptname(), and uoexec.

+ Here is the call graph for this function:

Definition at line 32 of file systemhookscript.cpp.

References BObject::isTrue(), run_executor_to_completion(), sd, and uoexec.

Referenced by FindExportScript(), ItemDesc::ItemDesc(), load_general_entry(), load_system_hooks(), and NpcTemplate::NpcTemplate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Definition at line 616 of file systemhookscript.cpp.

References Executor::initForFnCall(), BackupStruct::Locals, Executor::Locals2, BackupStruct::PC, uoexec, BackupStruct::ValueStack, and Executor::ValueStack.

Referenced by call(), call_long(), call_object(), and call_string().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Definition at line 596 of file systemhookscript.cpp.

References BackupStruct::Locals, Executor::Locals2, BackupStruct::PC, Executor::PC, uoexec, BackupStruct::ValueStack, and Executor::ValueStack.

Referenced by call(), call_long(), call_object(), and call_string().

+ Here is the caller graph for this function:

const std::string & ExportScript::scriptname ( ) const

Definition at line 38 of file systemhookscript.cpp.

References ScriptDef::name(), and sd.

Referenced by FindExportedFunction(), FindExportedFunction(), FindExportScript(), hook(), ItemDesc::PopulateStruct(), and ExportedFunction::scriptname().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


Friends And Related Function Documentation

friend class SystemHook [friend]

Definition at line 57 of file syshookscript.h.


Member Data Documentation

Definition at line 60 of file syshookscript.h.

Referenced by ExportScript(), Initialize(), and scriptname().


The documentation for this class was generated from the following files: