Pol  Revision:cb584c9
syshook.h
Go to the documentation of this file.
1 
9 #ifndef SYSHOOK_H
10 #define SYSHOOK_H
11 
12 #include "../bscript/bobject.h"
13 
14 namespace Pol
15 {
16 namespace Bscript
17 {
18 class BObjectImp;
19 }
20 namespace Clib
21 {
22 class ConfigElem;
23 }
24 namespace Plib
25 {
26 class Package;
27 }
28 namespace Core
29 {
30 class ExportScript;
31 
33 {
34 public:
35  ExportedFunction( ExportScript*, unsigned PC );
37  const std::string& scriptname() const;
38 
39  bool call( Bscript::BObjectImp* p0 ); // throw()
40  bool call( Bscript::BObjectImp* p0, Bscript::BObjectImp* p1 ); // throw()
41  bool call( Bscript::BObjectImp* p0, Bscript::BObjectImp* p1,
42  Bscript::BObjectImp* p2 ); // throw()
44  Bscript::BObjectImp* p3 ); // throw()
45 
46  std::string call_string( Bscript::BObjectImp* p0, Bscript::BObjectImp* p1 ); // throw()
47  std::string call_string( Bscript::BObjectImp* p0, Bscript::BObjectImp* p1,
48  Bscript::BObjectImp* p2 ); // throw()
49 
50  int call_long( Bscript::BObjectImp* p0 ); // throw()
51  int call_long( Bscript::BObjectImp* p0, Bscript::BObjectImp* p1 ); // throw()
54  Bscript::BObjectImp* p2 );
55 
56 private:
58  unsigned PC;
59 };
60 
62 {
63 public:
64  SystemHooks();
65  void unload_system_hooks();
66 
85 };
86 
88  const std::string& descriptor, unsigned nargs,
89  bool complain_if_missing = true );
90 }
91 }
92 #endif
ExportedFunction * speechmul_hook
Definition: syshook.h:74
ExportedFunction * close_customhouse_hook
Definition: syshook.h:81
ExportedFunction * open_spellbook_hook
Definition: syshook.h:68
ExportedFunction * combat_advancement_hook
Definition: syshook.h:70
ExportedFunction * warmode_change
Definition: syshook.h:82
ExportedFunction * attack_hook
Definition: syshook.h:72
ExportedFunction * on_cast_hook
Definition: syshook.h:76
ExportScript * export_script
Definition: syshook.h:57
ExportedFunction * can_decay
Definition: syshook.h:77
ExportedFunction * ouch_hook
Definition: syshook.h:78
ExportedFunction * pushthrough_hook
Definition: syshook.h:73
ExportedFunction * can_trade
Definition: syshook.h:83
ExportedFunction * FindExportedFunction(Clib::ConfigElem &elem, const Plib::Package *pkg, const std::string &descriptor, unsigned nargs, bool complain_if_missing)
Definition: syshook.cpp:344
ExportedFunction * can_die
Definition: syshook.h:79
ExportedFunction * un_hide
Definition: syshook.h:80
ExportedFunction * get_book_page_hook
Definition: syshook.h:69
ExportedFunction * consume_ammunition_hook
Definition: syshook.h:84
Definition: berror.cpp:12
ExportedFunction * parry_advancement_hook
Definition: syshook.h:71
ExportedFunction * check_skill_hook
Definition: syshook.h:67
ExportedFunction * hitmiss_hook
Definition: syshook.h:75