Pol  Revision:cb584c9
uoexec.h
Go to the documentation of this file.
1 
8 #ifndef __UOEXEC_H
9 #define __UOEXEC_H
10 
11 #ifndef __BSCRIPT_EXECUTOR_H
12 #include "../bscript/executor.h"
13 #endif
14 
15 #include <string>
16 #include <time.h>
17 
18 #include "../clib/compilerspecifics.h"
19 #include "../clib/rawtypes.h"
20 #include "../clib/weakptr.h"
21 
22 namespace Pol
23 {
24 namespace Module
25 {
26 class OSExecutorModule;
27 }
28 namespace Core
29 {
30 // const int SCRIPT_RUNAWAY_INTERVAL = 5000;
31 
33 {
35 
36 public: // soon to be private ;)
38 
39 public:
40  UOExecutor();
41  virtual ~UOExecutor();
42  virtual size_t sizeEstimate() const POL_OVERRIDE;
43 
44  bool suspend();
45  bool revive();
46 
47  std::string state();
48 
49  u64 instr_cycles;
50  u64 sleep_cycles;
51  time_t start_time;
52 
53  u64 warn_runaway_on_cycle;
54  u64 runaway_cycles;
55 
56  unsigned int eventmask;
57  unsigned short area_size;
58  unsigned short speech_size;
59 
60  bool can_access_offline_mobiles;
61  bool auxsvc_assume_string;
63 
64  UOExecutor *pParent, *pChild;
65 };
66 }
67 }
68 #endif
#define POL_OVERRIDE
STL namespace.
Bscript::Executor base
Definition: uoexec.h:34
unsigned long long u64
Definition: rawtypes.h:38
Definition: berror.cpp:12
Module::OSExecutorModule * os_module
Definition: uoexec.h:37