Pol  Revision:cb584c9
Pol::Module::NPCExecutorModule Class Reference

#include <npcmod.h>

+ Inheritance diagram for Pol::Module::NPCExecutorModule:

Public Member Functions

 NPCExecutorModule (Bscript::Executor &ex, Mobile::NPC &npc)
virtual ~NPCExecutorModule ()
- Public Member Functions inherited from Pol::Bscript::ExecutorModule
virtual ~ExecutorModule ()=default
BApplicObjBasegetApplicObjParam (unsigned param, const BApplicObjType *object_type)
void * getApplicPtrParam (unsigned param, const BApplicObjType *pointer_type)
bool getObjArrayParam (unsigned param, ObjArray *&pobjarr)
bool getParam (unsigned param, int &value)
bool getParam (unsigned param, int &value, int maxval)
bool getParam (unsigned param, int &value, int minval, int maxval)
bool getParam (unsigned param, unsigned &value)
bool getParam (unsigned param, short &value)
bool getParam (unsigned param, short &value, short maxval)
bool getParam (unsigned param, short &value, short minval, short maxval)
bool getParam (unsigned param, unsigned short &value)
bool getParam (unsigned param, unsigned short &value, unsigned short maxval)
bool getParam (unsigned param, unsigned short &value, unsigned short minval, unsigned short maxval)
BObjectImpgetParamImp (unsigned param)
BObjectImpgetParamImp (unsigned param, BObjectImp::BObjectType type)
bool getParamImp (unsigned param, BObjectImp *&imp)
bool getRealParam (unsigned param, double &value)
const StringgetStringParam (unsigned param)
bool getStringParam (unsigned param, const String *&pstr)
const std::string & scriptname () const

Public Attributes

Core::NpcRef npcref
- Public Attributes inherited from Pol::Bscript::ExecutorModule

Protected Member Functions

Bscript::BObjectImpCanMove ()
Bscript::BObjectImpCreateBackpack ()
Bscript::BObjectImpCreateItem ()
Bscript::BObjectImpface ()
Bscript::BObjectImpfacing ()
Bscript::BObjectImpgetproperty ()
Bscript::BObjectImpIsLegalMove ()
Bscript::BObjectImpmakeboundingbox ()
Bscript::BObjectImpmf_RunAwayFrom ()
Bscript::BObjectImpmf_RunAwayFromLocation ()
Bscript::BObjectImpmf_RunToward ()
Bscript::BObjectImpmf_RunTowardLocation ()
Bscript::BObjectImpmf_Self ()
Bscript::BObjectImpmf_SetAnchor ()
Bscript::BObjectImpmf_SetOpponent ()
Bscript::BObjectImpmf_SetWarMode ()
Bscript::BObjectImpmf_TurnAwayFrom ()
Bscript::BObjectImpmf_TurnAwayFromLocation ()
Bscript::BObjectImpmf_TurnToward ()
Bscript::BObjectImpmf_TurnTowardLocation ()
Bscript::BObjectImpmf_WalkAwayFrom ()
Bscript::BObjectImpmf_WalkAwayFromLocation ()
Bscript::BObjectImpmf_WalkToward ()
Bscript::BObjectImpmf_WalkTowardLocation ()
Bscript::BObjectImpmf_Wander ()
Bscript::BObjectImpmove ()
Bscript::BObjectImpmove_self (Core::UFACING facing, bool run, bool adjust_ok=false)
Bscript::BObjectImpposition ()
Bscript::BObjectImpsay ()
Bscript::BObjectImpSayUC ()
Bscript::BObjectImpsetproperty ()
- Protected Member Functions inherited from Pol::Bscript::TmplExecutorModule< NPCExecutorModule >
 TmplExecutorModule (const char *modname, Executor &exec)
virtual BObjectImpexecFunc (unsigned idx) POL_OVERRIDE
virtual int functionIndex (const std::string &funcname) POL_OVERRIDE
virtual std::string functionName (unsigned idx) POL_OVERRIDE
- Protected Member Functions inherited from Pol::Bscript::ExecutorModule
 ExecutorModule (const char *moduleName, Executor &iExec)

Protected Attributes

- Protected Attributes inherited from Pol::Bscript::ExecutorModule
boost_utils::function_name_flystring moduleName

Private Member Functions

bool _internal_move (Core::UFACING facing, int run)


class Bscript::TmplExecutorModule< NPCExecutorModule >

Detailed Description

Definition at line 44 of file npcmod.h.

Constructor & Destructor Documentation

Pol::Module::NPCExecutorModule::NPCExecutorModule ( Bscript::Executor ex,
Mobile::NPC npc 
Pol::Module::NPCExecutorModule::~NPCExecutorModule ( )

Definition at line 94 of file npcmod.cpp.

References Pol::Mobile::NPC::ex, Pol::Bscript::ExecutorModule::exec, and npc.

Member Function Documentation

bool Pol::Module::NPCExecutorModule::_internal_move ( Core::UFACING  facing,
int  run 
BObjectImp * Pol::Module::NPCExecutorModule::mf_Self ( )

Definition at line 181 of file npcmod.cpp.

References npc.

Referenced by Pol::Bscript::TmplExecutorModule< T >::function_table().

BObjectImp * Pol::Module::NPCExecutorModule::mf_SetOpponent ( )
BObjectImp * Pol::Module::NPCExecutorModule::mf_SetWarMode ( )
BObjectImp * Pol::Module::NPCExecutorModule::mf_Wander ( )
BObjectImp * Pol::Module::NPCExecutorModule::position ( )

Friends And Related Function Documentation

Definition at line 56 of file npcmod.h.

Member Data Documentation

Core::NpcRef Pol::Module::NPCExecutorModule::npcref

Definition at line 50 of file npcmod.h.

OSExecutorModule* Pol::Module::NPCExecutorModule::os_module

Definition at line 54 of file npcmod.h.

Referenced by move(), move_self(), and NPCExecutorModule().

The documentation for this class was generated from the following files: