Pol  Revision:3cfda13
npcmod.h
Go to the documentation of this file.
1 
10 #ifndef NPCEMOD_H
11 #define NPCEMOD_H
12 
13 #include <string>
14 
15 #include "../../bscript/execmodl.h"
16 #include "../reftypes.h"
17 #include "../uconst.h"
18 
19 namespace Pol
20 {
21 namespace Bscript
22 {
23 class Executor;
24 template <class T>
25 class TmplExecutorModule;
26 } // namespace Bscript
27 } // namespace Pol
28 
29 namespace Pol
30 {
31 namespace Bscript
32 {
33 class BObjectImp;
34 }
35 namespace Mobile
36 {
37 class NPC;
38 }
39 
40 namespace Module
41 {
42 class OSExecutorModule;
43 
44 class NPCExecutorModule : public Bscript::TmplExecutorModule<NPCExecutorModule>
45 {
46 public:
48  virtual ~NPCExecutorModule();
49 
52 
53 protected:
55 
57 
58  Bscript::BObjectImp* mf_Wander();
59  Bscript::BObjectImp* mf_Self();
60  Bscript::BObjectImp* face();
61  Bscript::BObjectImp* move();
62  Bscript::BObjectImp* mf_WalkToward();
63  Bscript::BObjectImp* mf_RunToward();
64  Bscript::BObjectImp* mf_WalkAwayFrom();
65  Bscript::BObjectImp* mf_RunAwayFrom();
66  Bscript::BObjectImp* mf_TurnToward();
67  Bscript::BObjectImp* mf_TurnAwayFrom();
68 
69  Bscript::BObjectImp* mf_WalkTowardLocation();
70  Bscript::BObjectImp* mf_RunTowardLocation();
71  Bscript::BObjectImp* mf_WalkAwayFromLocation();
72  Bscript::BObjectImp* mf_RunAwayFromLocation();
73  Bscript::BObjectImp* mf_TurnTowardLocation();
74  Bscript::BObjectImp* mf_TurnAwayFromLocation();
75 
76  Bscript::BObjectImp* say();
77  Bscript::BObjectImp* SayUC();
78  Bscript::BObjectImp* position();
79  Bscript::BObjectImp* facing();
80  Bscript::BObjectImp* getproperty( /* propertyname */ );
81  Bscript::BObjectImp* setproperty( /* propertyname propertyvalue */ );
82  Bscript::BObjectImp* makeboundingbox( /* areastring */ );
83  Bscript::BObjectImp* IsLegalMove();
84  Bscript::BObjectImp* CanMove();
85  Bscript::BObjectImp* CreateBackpack();
86  Bscript::BObjectImp* CreateItem();
87  Bscript::BObjectImp* mf_SetOpponent();
88  Bscript::BObjectImp* mf_SetWarMode();
89  Bscript::BObjectImp* mf_SetAnchor();
90 
91  Bscript::BObjectImp* move_self( Core::UFACING facing, bool run, bool adjust_ok = false );
92 
93 private:
94  bool _internal_move( Core::UFACING facing, int run );
95 };
96 }
97 }
98 #endif
OSExecutorModule * os_module
Definition: npcmod.h:54
bool run(int argc, char **argv)
Definition: berror.cpp:12