|
Pol
Rev 533
|
#include <npcmod.h>
Inheritance diagram for NPCExecutorModule:
Collaboration diagram for NPCExecutorModule:| NPCExecutorModule::NPCExecutorModule | ( | Executor & | ex, |
| NPC & | npc | ||
| ) |
Definition at line 74 of file npcmod.cpp.
References ExecutorModule::exec, Executor::findModule(), and os_module.
Here is the call graph for this function:| NPCExecutorModule::~NPCExecutorModule | ( | ) | [virtual] |
Definition at line 84 of file npcmod.cpp.
References NPC::ex, ExecutorModule::exec, and npc.
| 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::CanMove | ( | ) | [protected] |
Definition at line 186 of file npcmod.cpp.
References NPC::could_move(), DecodeFacing(), ExecutorModule::exec, facing(), Executor::fparams, Executor::getParamImp(), BObjectImp::isa(), mlog, npc, BObjectImp::OTLong, BObjectImp::OTString, Executor::paramAsString(), Executor::PC, PKTIN_02_FACING_MASK, ExecutorModule::scriptname(), BObjectImp::type(), BObjectImp::typestr(), and BLong::value().
Here is the call graph for this function:| BObjectImp * NPCExecutorModule::CreateBackpack | ( | ) | [protected] |
Definition at line 946 of file npcmod.cpp.
References Item::create(), Character::equip(), Character::equippable(), Item::layer, LAYER_BACKPACK, Character::layer_is_equipped(), npc, UObject::realm, and UOBJ_BACKPACK.
Here is the call graph for this function:| BObjectImp * NPCExecutorModule::CreateItem | ( | ) | [protected] |
Definition at line 963 of file npcmod.cpp.
References UContainer::add(), Character::backpack(), UContainer::can_add(), UContainer::can_add_to_slot(), Item::create(), ExecutorModule::exec, Executor::getLongParam(), npc, UObject::realm, UObject::serial, Item::slot_index(), and BLong::value().
Here is the call 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.
| BObjectImp * NPCExecutorModule::face | ( | ) | [protected] |
Definition at line 354 of file npcmod.cpp.
References DecodeFacing(), ExecutorModule::exec, Character::face(), Executor::getParam(), Executor::getParamImp(), BObjectImp::isa(), mlog, npc, Character::on_facing_changed(), BObjectImp::OTLong, BObjectImp::OTString, Executor::paramAsString(), Executor::PC, PKTIN_02_FACING_MASK, ExecutorModule::scriptname(), BObjectImp::type(), BObjectImp::typestr(), and BLong::value().
Here is the call graph for this function:| BObjectImp * NPCExecutorModule::facing | ( | ) | [protected] |
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.
| BObjectImp * NPCExecutorModule::getproperty | ( | ) | [protected] |
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:| BObjectImp * NPCExecutorModule::IsLegalMove | ( | ) | [protected] |
Definition at line 161 of file npcmod.cpp.
References bounding_box_type, BObjectImp::contains(), DecodeFacing(), ExecutorModule::exec, facing(), Executor::getParamImp(), Character::getpos_ifmove(), npc, BApplicObjBase::object_type(), BObjectImp::OTApplicObj, BObjectImp::OTString, String::value(), and x.
Here is the call graph for this function:| BObjectImp * NPCExecutorModule::makeboundingbox | ( | ) | [protected] |
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:| BObjectImp * NPCExecutorModule::mf_RunAwayFrom | ( | ) | [protected] |
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:| BObjectImp * NPCExecutorModule::mf_RunAwayFromLocation | ( | ) | [protected] |
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:| BObjectImp * NPCExecutorModule::mf_RunToward | ( | ) | [protected] |
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:| BObjectImp * NPCExecutorModule::mf_RunTowardLocation | ( | ) | [protected] |
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:| BObjectImp * NPCExecutorModule::mf_Self | ( | ) | [protected] |
Definition at line 228 of file npcmod.cpp.
References npc.
| BObjectImp * NPCExecutorModule::mf_SetAnchor | ( | ) | [protected] |
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:| BObjectImp * NPCExecutorModule::mf_SetOpponent | ( | ) | [protected] |
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:| BObjectImp * NPCExecutorModule::mf_SetWarMode | ( | ) | [protected] |
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:| BObjectImp * NPCExecutorModule::mf_TurnAwayFrom | ( | ) | [protected] |
Definition at line 578 of file npcmod.cpp.
References direction_away(), ExecutorModule::exec, Character::face(), facing(), UObject::facing, Executor::getParam(), getUObjectParam(), Character::is_visible_to_me(), UObject::ismobile(), npc, and Character::on_facing_changed().
Here is the call graph for this function:| BObjectImp * NPCExecutorModule::mf_TurnAwayFromLocation | ( | ) | [protected] |
Definition at line 704 of file npcmod.cpp.
References direction_away(), ExecutorModule::exec, Character::face(), UObject::facing, Executor::getParam(), npc, Character::on_facing_changed(), UObject::realm, Realm::valid(), x, and UObject::z.
Here is the call graph for this function:| BObjectImp * NPCExecutorModule::mf_TurnToward | ( | ) | [protected] |
Definition at line 548 of file npcmod.cpp.
References direction_toward(), ExecutorModule::exec, Character::face(), facing(), UObject::facing, Executor::getParam(), getUObjectParam(), Character::is_visible_to_me(), UObject::ismobile(), npc, and Character::on_facing_changed().
Here is the call graph for this function:| BObjectImp * NPCExecutorModule::mf_TurnTowardLocation | ( | ) | [protected] |
Definition at line 677 of file npcmod.cpp.
References direction_toward(), ExecutorModule::exec, Character::face(), UObject::facing, Executor::getParam(), npc, Character::on_facing_changed(), UObject::realm, Realm::valid(), x, and UObject::z.
Here is the call graph for this function:| BObjectImp * NPCExecutorModule::mf_WalkAwayFrom | ( | ) | [protected] |
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:| BObjectImp * NPCExecutorModule::mf_WalkAwayFromLocation | ( | ) | [protected] |
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:| BObjectImp * NPCExecutorModule::mf_WalkToward | ( | ) | [protected] |
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:| BObjectImp * NPCExecutorModule::mf_WalkTowardLocation | ( | ) | [protected] |
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:| BObjectImp * NPCExecutorModule::mf_Wander | ( | ) | [protected] |
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:| BObjectImp * NPCExecutorModule::move | ( | ) | [protected] |
Definition at line 398 of file npcmod.cpp.
References bounding_box_type, BObjectImp::contains(), DecodeFacing(), ExecutorModule::exec, facing(), FacingStr(), Executor::getParamImp(), Character::getpos_ifmove(), GetRandomFacing(), BObjectImp::isa(), mlog, Character::move(), move_self(), npc, BApplicObjBase::object_type(), os_module, BObjectImp::OTApplicObj, BObjectImp::OTLong, BObjectImp::OTString, Executor::paramAsString(), Executor::PC, PKTIN_02_FACING_MASK, ExecutorModule::scriptname(), OSExecutorModule::SleepFor(), Character::tellmove(), BObjectImp::type(), BObjectImp::typestr(), BLong::value(), x, NPC::x, and NPC::y.
Here is the call graph for this function:| BObjectImp * NPCExecutorModule::move_self | ( | UFACING | facing, |
| bool | run, | ||
| bool | adjust_ok = false |
||
| ) | [protected] |
Definition at line 289 of file npcmod.cpp.
References _internal_move(), adjustments, NPC::anchor_allows_move(), facing(), Character::move(), N_ADJUST, npc, os_module, NPC::run_speed, OSExecutorModule::SleepForMs(), Character::tellmove(), and NPC::use_adjustments.
Referenced by mf_RunAwayFrom(), mf_RunAwayFromLocation(), mf_RunToward(), mf_RunTowardLocation(), mf_WalkAwayFrom(), mf_WalkAwayFromLocation(), mf_WalkToward(), mf_WalkTowardLocation(), mf_Wander(), and move().
Here is the call graph for this function:
Here is the caller graph for this function:| BObjectImp * NPCExecutorModule::position | ( | ) | [protected] |
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:| BObjectImp * NPCExecutorModule::say | ( | ) | [protected] |
Definition at line 732 of file npcmod.cpp.
References Client::chr, clients, ExecutorModule::exec, for_nearby_npcs(), Executor::getParam(), UObject::graphic, Character::hidden(), in_say_range(), in_whisper_range(), in_yell_range(), Character::is_visible_to_me(), UObject::name(), npc, npc_spoke(), PacketWriterDefs::PacketInterface::offset, Executor::paramAsString(), Client::ready, PktHelper::PacketOut< T >::Send(), UObject::serial_ext, NPC::speech_color_, NPC::speech_font_, SPEECH_MAX_LEN, Character::squelched(), strlower(), TEXTTYPE_NORMAL, TEXTTYPE_WHISPER, TEXTTYPE_YELL, Character::unhide(), PacketWriterDefs::PacketWriter< _id, _size, _sub >::Write(), and PacketWriterDefs::PacketWriter< _id, _size, _sub >::WriteFlipped().
Here is the call graph for this function:| BObjectImp * NPCExecutorModule::SayUC | ( | ) | [protected] |
Definition at line 795 of file npcmod.cpp.
References Client::chr, clients, convertArrayToUC(), UObject::description(), ExecutorModule::exec, for_nearby_npcs(), ExecutorModule::getObjArrayParam(), ExecutorModule::getParam(), ExecutorModule::getStringParam(), UObject::graphic, gwtext, Character::hidden(), in_say_range(), in_whisper_range(), in_yell_range(), String::length(), npc, npc_spoke(), PacketWriterDefs::PacketInterface::offset, Executor::paramAsString(), Client::ready, ObjArray::ref_arr, PktHelper::PacketOut< T >::Send(), UObject::serial_ext, NPC::speech_color_, NPC::speech_font_, SPEECH_MAX_LEN, Character::squelched(), strlower(), strupper(), TEXTTYPE_NORMAL, TEXTTYPE_WHISPER, TEXTTYPE_YELL, Character::unhide(), String::value(), PacketWriterDefs::PacketWriter< _id, _size, _sub >::Write(), and PacketWriterDefs::PacketWriter< _id, _size, _sub >::WriteFlipped().
Here is the call graph for this function:| BObjectImp * NPCExecutorModule::setproperty | ( | ) | [protected] |
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:NPCFunctionDef NPCExecutorModule::function_table [static, protected] |
Definition at line 95 of file npcmod.h.
Referenced by execFunc(), functionIndex(), and functionName().
Definition at line 51 of file npcmod.h.
Referenced by _internal_move(), CanMove(), CreateBackpack(), CreateItem(), face(), facing(), getproperty(), IsLegalMove(), mf_RunAwayFrom(), mf_RunAwayFromLocation(), mf_RunToward(), mf_RunTowardLocation(), mf_Self(), mf_SetAnchor(), mf_SetOpponent(), mf_SetWarMode(), mf_TurnAwayFrom(), mf_TurnAwayFromLocation(), mf_TurnToward(), mf_TurnTowardLocation(), mf_WalkAwayFrom(), mf_WalkAwayFromLocation(), mf_WalkToward(), mf_WalkTowardLocation(), mf_Wander(), move(), move_self(), position(), say(), SayUC(), setproperty(), OSExecutorModule::signal_event(), and ~NPCExecutorModule().
OSExecutorModule* NPCExecutorModule::os_module [protected] |
Definition at line 54 of file npcmod.h.
Referenced by move(), move_self(), and NPCExecutorModule().