Pol  Revision:cb584c9
exscrobj.h
Go to the documentation of this file.
1 
8 #ifndef EXSCROBJ_H
9 #define EXSCROBJ_H
10 
11 
12 #ifndef BSCRIPT_BOBJECT_H
13 #include "../bscript/bobject.h"
14 #endif
15 
16 #include "../clib/compilerspecifics.h"
17 #include "../clib/rawtypes.h"
18 #include "../clib/weakptr.h"
19 
20 namespace Pol
21 {
22 namespace Bscript
23 {
24 class Executor;
25 } // namespace Bscript
26 } // namespace Pol
27 
28 namespace Pol
29 {
30 namespace Core
31 {
32 class UOExecutor;
33 
34 extern Bscript::BApplicObjType scriptexobjimp_type;
36 class ScriptExObjImp : public Bscript::BApplicObj<ScriptExPtr>
37 {
39 
40 public:
41  explicit ScriptExObjImp( UOExecutor* uoexec );
42  virtual const char* typeOf() const POL_OVERRIDE;
43  virtual u8 typeOfInt() const POL_OVERRIDE;
44  virtual Bscript::BObjectImp* copy() const POL_OVERRIDE;
45  virtual Bscript::BObjectImp* call_method( const char* methodname,
46  Bscript::Executor& ex ) POL_OVERRIDE;
47  virtual Bscript::BObjectImp* call_method_id( const int id, Bscript::Executor& ex,
48  bool forcebuiltin = false ) POL_OVERRIDE;
49  virtual Bscript::BObjectRef get_member( const char* membername ) POL_OVERRIDE;
50  virtual Bscript::BObjectRef get_member_id( const int id ) POL_OVERRIDE;
51 };
52 }
53 }
54 #endif
unsigned char u8
Definition: rawtypes.h:25
#define POL_OVERRIDE
Bscript::BApplicObj< ScriptExPtr > base
Definition: exscrobj.h:38
BApplicObjType scriptexobjimp_type
Definition: exscrobj.cpp:41
weak_ptr< UOExecutor > ScriptExPtr
Definition: exscrobj.h:35
Definition: berror.cpp:12