Pol  Rev 533
NPCExecutorModule Class Reference

#include <npcmod.h>

+ Inheritance diagram for NPCExecutorModule:
+ Collaboration diagram for NPCExecutorModule:

List of all members.

Public Member Functions

 NPCExecutorModule (Executor &ex, NPC &npc)
virtual ~NPCExecutorModule ()

Public Attributes

NPCnpc
NPCRef npcref

Protected Member Functions

bool _internal_move (UFACING facing, int run)
BObjectImpCanMove ()
BObjectImpCreateBackpack ()
BObjectImpCreateItem ()
virtual BObjectImpexecFunc (unsigned idx)
BObjectImpface ()
BObjectImpfacing ()
virtual int functionIndex (const char *func)
virtual std::string functionName (unsigned idx)
BObjectImpgetproperty ()
BObjectImpIsLegalMove ()
BObjectImpmakeboundingbox ()
BObjectImpmf_RunAwayFrom ()
BObjectImpmf_RunAwayFromLocation ()
BObjectImpmf_RunToward ()
BObjectImpmf_RunTowardLocation ()
BObjectImpmf_Self ()
BObjectImpmf_SetAnchor ()
BObjectImpmf_SetOpponent ()
BObjectImpmf_SetWarMode ()
BObjectImpmf_TurnAwayFrom ()
BObjectImpmf_TurnAwayFromLocation ()
BObjectImpmf_TurnToward ()
BObjectImpmf_TurnTowardLocation ()
BObjectImpmf_WalkAwayFrom ()
BObjectImpmf_WalkAwayFromLocation ()
BObjectImpmf_WalkToward ()
BObjectImpmf_WalkTowardLocation ()
BObjectImpmf_Wander ()
BObjectImpmove ()
BObjectImpmove_self (UFACING facing, bool run, bool adjust_ok=false)
BObjectImpposition ()
BObjectImpsay ()
BObjectImpSayUC ()
BObjectImpsetproperty ()

Protected Attributes

OSExecutorModuleos_module

Static Protected Attributes

static NPCFunctionDef function_table []

Detailed Description

Definition at line 44 of file npcmod.h.


Constructor & Destructor Documentation

Definition at line 74 of file npcmod.cpp.

References ExecutorModule::exec, Executor::findModule(), and os_module.

+ Here is the call graph for this function:

Definition at line 84 of file npcmod.cpp.

References NPC::ex, ExecutorModule::exec, and npc.


Member Function Documentation

bool NPCExecutorModule::_internal_move ( UFACING  facing,
int  run 
) [inline, protected]

Definition at line 267 of file npcmod.cpp.

References NPC::could_move(), facing(), Character::move(), npc, and Character::tellmove().

Referenced by move_self().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

BObjectImp * NPCExecutorModule::execFunc ( unsigned  idx) [protected, virtual]

Implements ExecutorModule.

Definition at line 137 of file npcmod.cpp.

References callMemberFunction, and function_table.

Definition at line 904 of file npcmod.cpp.

References UObject::facing, FacingStr(), and npc.

Referenced by _internal_move(), CanMove(), IsLegalMove(), mf_TurnAwayFrom(), mf_TurnToward(), move(), and move_self().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int NPCExecutorModule::functionIndex ( const char *  func) [protected, virtual]

Implements ExecutorModule.

Definition at line 127 of file npcmod.cpp.

References arsize, and function_table.

std::string NPCExecutorModule::functionName ( unsigned  idx) [protected, virtual]

Implements ExecutorModule.

Definition at line 142 of file npcmod.cpp.

References NPCFunctionDef::funcname, and function_table.

Definition at line 909 of file npcmod.cpp.

References ExecutorModule::exec, UObject::getprop(), Executor::getStringParam(), npc, BObjectImp::unpack(), and String::value().

+ Here is the call graph for this function:

Definition at line 997 of file npcmod.cpp.

References EXPLICIT_CAST, ExecutorModule::getParamImp(), ISTRINGSTREAM, BObjectImp::OTString, and String::value().

+ Here is the call graph for this function:

Definition at line 529 of file npcmod.cpp.

References direction_away(), ExecutorModule::exec, getUObjectParam(), Character::is_visible_to_me(), UObject::ismobile(), move_self(), and npc.

+ Here is the call graph for this function:

Definition at line 660 of file npcmod.cpp.

References direction_away(), ExecutorModule::exec, Executor::getParam(), move_self(), npc, UObject::realm, Realm::valid(), x, and UObject::z.

+ Here is the call graph for this function:

Definition at line 491 of file npcmod.cpp.

References direction_toward(), ExecutorModule::exec, getUObjectParam(), Character::is_visible_to_me(), UObject::ismobile(), move_self(), and npc.

+ Here is the call graph for this function:

Definition at line 625 of file npcmod.cpp.

References direction_toward(), ExecutorModule::exec, Executor::getParam(), move_self(), npc, UObject::realm, Realm::valid(), x, and UObject::z.

+ Here is the call graph for this function:

Definition at line 228 of file npcmod.cpp.

References npc.

Definition at line 233 of file npcmod.cpp.

References NPC::anchor, NPC::dstart, NPC::enabled, ExecutorModule::getParam(), npc, NPC::psub, UObject::realm, Realm::valid(), x, NPC::x, and NPC::y.

+ Here is the call graph for this function:

Definition at line 1020 of file npcmod.cpp.

References ExecutorModule::exec, getCharacterParam(), npc, and Character::set_opponent().

+ Here is the call graph for this function:

Definition at line 1036 of file npcmod.cpp.

References ExecutorModule::exec, Executor::getParam(), npc, and Character::set_warmode().

+ Here is the call graph for this function:

Definition at line 510 of file npcmod.cpp.

References direction_away(), ExecutorModule::exec, getUObjectParam(), Character::is_visible_to_me(), UObject::ismobile(), move_self(), and npc.

+ Here is the call graph for this function:

Definition at line 643 of file npcmod.cpp.

References direction_away(), ExecutorModule::exec, Executor::getParam(), move_self(), npc, UObject::realm, Realm::valid(), x, and UObject::z.

+ Here is the call graph for this function:

Definition at line 470 of file npcmod.cpp.

References direction_toward(), ExecutorModule::exec, getUObjectParam(), Character::is_visible_to_me(), UObject::ismobile(), move_self(), and npc.

+ Here is the call graph for this function:

Definition at line 608 of file npcmod.cpp.

References direction_toward(), ExecutorModule::exec, Executor::getParam(), move_self(), npc, UObject::realm, Realm::valid(), x, and UObject::z.

+ Here is the call graph for this function:

Definition at line 333 of file npcmod.cpp.

References UObject::facing, move_self(), npc, PKTIN_02_FACING_MASK, and random_int().

+ Here is the call graph for this function:

Definition at line 893 of file npcmod.cpp.

References BStruct::addMember(), npc, NPC::x, NPC::y, and UObject::z.

+ Here is the call graph for this function:

Definition at line 930 of file npcmod.cpp.

References ExecutorModule::exec, ExecutorModule::getParamImp(), Executor::getStringParam(), npc, BObjectImp::pack(), UObject::setprop(), and String::value().

+ Here is the call graph for this function:


Member Data Documentation

Definition at line 95 of file npcmod.h.

Referenced by execFunc(), functionIndex(), and functionName().

Definition at line 50 of file npcmod.h.

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: