Pol
Revision:cb584c9
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
:
47
NPCExecutorModule
(
Bscript::Executor
& ex,
Mobile::NPC
& npc );
48
virtual
~
NPCExecutorModule
();
49
50
Core::NpcRef
npcref
;
51
Mobile::NPC
&
npc
;
52
53
protected
:
54
OSExecutorModule
*
os_module
;
55
56
friend
class
Bscript::TmplExecutorModule
<
NPCExecutorModule
>;
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
Pol::Module::NPCExecutorModule::npc
Mobile::NPC & npc
Definition:
npcmod.h:51
Pol::Module::NPCExecutorModule
Definition:
npcmod.h:44
Pol::Mobile::NPC
Definition:
npc.h:85
Pol::Module::OSExecutorModule
Definition:
osmod.h:52
ref_ptr< Mobile::NPC >
Pol::Module::NPCExecutorModule::npcref
Core::NpcRef npcref
Definition:
npcmod.h:50
Pol::Core::UFACING
UFACING
Definition:
uconst.h:40
Pol::Bscript::BObjectImp
Definition:
bobject.h:59
Pol::Core::FilterType::Mobile
Pol::Module::NPCExecutorModule::os_module
OSExecutorModule * os_module
Definition:
npcmod.h:54
Pol::ECompile::run
bool run(int argc, char **argv)
Definition:
ECompileMain.cpp:695
Pol::Bscript::TmplExecutorModule
Definition:
execmodl.h:100
Pol
Definition:
berror.cpp:12
Pol::Core::FilterType::NPC
Pol::Bscript::Executor
Definition:
executor.h:81
pol
module
npcmod.h
Generated on Wed Oct 10 2018 02:42:12 for Pol by
1.8.11