Pol  Rev 533
UOExecutorModule Class Reference

#include <uomod.h>

+ Inheritance diagram for UOExecutorModule:
+ Collaboration diagram for UOExecutorModule:

List of all members.

Public Member Functions

 UOExecutorModule (UOExecutor &exec)
 ~UOExecutorModule ()
BObjectImp * broadcast ()
BObjectImp * create_item_in_container ()
BObjectImp * find_objtype_in_container ()
bool is_reserved_to_me (Item *item)
BObjectImp * mf_Accessible ()
BObjectImp * mf_AddAmount ()
BObjectImp * mf_AddMenuItem ()
BObjectImp * mf_ApplyConstraint ()
BObjectImp * mf_AssignRectToWeatherRegion ()
BObjectImp * mf_Attach ()
BObjectImp * mf_CanWalk ()
BObjectImp * mf_CheckLineOfSight ()
BObjectImp * mf_CheckLosAt ()
BObjectImp * mf_CheckLosBetween ()
BObjectImp * mf_CloseGump ()
BObjectImp * mf_CloseTradeWindow ()
BObjectImp * mf_CloseWindow ()
BObjectImp * mf_ConsumeReagents ()
BObjectImp * mf_ConsumeSubstance ()
BObjectImp * mf_CoordinateDistance ()
BObjectImp * mf_CoordinateDistanceEuclidean ()
BObjectImp * mf_CreateAccount ()
BObjectImp * mf_CreateItemAtLocation ()
BObjectImp * mf_CreateItemCopyAtLocation ()
BObjectImp * mf_CreateItemInBackpack ()
BObjectImp * mf_CreateItemInContainer ()
BObjectImp * mf_CreateItemInInventory ()
BObjectImp * mf_CreateMenu ()
BObjectImp * mf_CreateMultiAtLocation ()
BObjectImp * mf_CreateNpcFromTemplate ()
BObjectImp * mf_DestroyItem ()
BObjectImp * mf_DestroyMulti ()
BObjectImp * mf_Detach ()
BObjectImp * mf_DisableEvents ()
BObjectImp * mf_DisconnectClient ()
BObjectImp * mf_Distance ()
BObjectImp * mf_DistanceEuclidean ()
BObjectImp * mf_EnableEvents ()
BObjectImp * mf_EnumerateItemsInContainer ()
BObjectImp * mf_EnumerateOnlineCharacters ()
BObjectImp * mf_EquipFromTemplate ()
BObjectImp * mf_EquipItem ()
BObjectImp * mf_EraseGlobalProperty ()
BObjectImp * mf_EraseObjProperty ()
BObjectImp * mf_FindAccount ()
BObjectImp * mf_FindObjtypeInContainer ()
BObjectImp * mf_FindPath ()
BObjectImp * mf_FindSubstance ()
BObjectImp * mf_GetAmount ()
BObjectImp * mf_GetCommandHelp ()
BObjectImp * mf_GetCoordsInLine ()
BObjectImp * mf_GetEquipmentByLayer ()
BObjectImp * mf_GetFacing ()
BObjectImp * mf_GetGlobalProperty ()
BObjectImp * mf_GetGlobalPropertyNames ()
BObjectImp * mf_GetHarvestDifficulty ()
BObjectImp * mf_GetMapInfo ()
BObjectImp * mf_GetMenuObjTypes ()
BObjectImp * mf_GetMultiDimensions ()
BObjectImp * mf_GetObjProperty ()
BObjectImp * mf_GetObjPropertyNames ()
BObjectImp * mf_GetObjType ()
BObjectImp * mf_GetObjtypeByName ()
BObjectImp * mf_GetPosition ()
BObjectImp * mf_GetRegionLightLevelAtLocation ()
BObjectImp * mf_GetRegionName ()
BObjectImp * mf_GetRegionNameAtLocation ()
BObjectImp * mf_GetRegionString ()
BObjectImp * mf_GetSpellDifficulty ()
BObjectImp * mf_GetStandingHeight ()
BObjectImp * mf_GetStandingLayers ()
BObjectImp * mf_GetStats ()
BObjectImp * mf_GetStatus ()
BObjectImp * mf_GetWorldHeight ()
BObjectImp * mf_GrantPrivilege ()
BObjectImp * mf_HarvestResource ()
BObjectImp * mf_IsStackable ()
BObjectImp * mf_ListAccounts ()
BObjectImp * mf_ListEquippedItems ()
BObjectImp * mf_ListGhostsNearLocation ()
BObjectImp * mf_ListHostiles ()
BObjectImp * mf_ListItemsAtLocation ()
BObjectImp * mf_ListItemsNearLocation ()
BObjectImp * mf_ListItemsNearLocationOfType ()
BObjectImp * mf_ListItemsNearLocationWithFlag ()
BObjectImp * mf_ListMobilesInLineOfSight ()
BObjectImp * mf_ListMobilesNearLocation ()
BObjectImp * mf_ListMobilesNearLocationEx ()
BObjectImp * mf_ListMultisInBox ()
BObjectImp * mf_ListObjectsInBox ()
BObjectImp * mf_ListStaticsAtLocation ()
BObjectImp * mf_ListStaticsInBox ()
BObjectImp * mf_ListStaticsNearLocation ()
BObjectImp * mf_MoveItemToContainer ()
BObjectImp * mf_MoveItemToSecureTradeWin ()
BObjectImp * mf_MoveObjectToLocation ()
BObjectImp * mf_OpenPaperdoll ()
BObjectImp * mf_PerformAction ()
BObjectImp * mf_PlayAnimation ()
BObjectImp * mf_PlayLightningBoltEffect ()
BObjectImp * mf_PlayMovingEffect ()
BObjectImp * mf_PlayMovingEffect_Ex ()
BObjectImp * mf_PlayMovingEffectXyz ()
BObjectImp * mf_PlayMovingEffectXyz_Ex ()
BObjectImp * mf_PlayMusic ()
BObjectImp * mf_PlayObjectCenteredEffect ()
BObjectImp * mf_PlayObjectCenteredEffect_Ex ()
BObjectImp * mf_PlaySoundEffect ()
BObjectImp * mf_PlaySoundEffectPrivate ()
BObjectImp * mf_PlaySoundEffectXYZ ()
BObjectImp * mf_PlayStationaryEffect ()
BObjectImp * mf_PlayStationaryEffect_Ex ()
BObjectImp * mf_PolCore ()
BObjectImp * mf_PrintTextAbove ()
BObjectImp * mf_PrivateTextAbove ()
BObjectImp * mf_PromptInput ()
BObjectImp * mf_Range ()
BObjectImp * mf_ReadGameClock ()
BObjectImp * mf_RegisterForSpeechEvents ()
BObjectImp * mf_ReleaseItem ()
BObjectImp * mf_ReserveItem ()
BObjectImp * mf_RestartScript ()
BObjectImp * mf_Resurrect ()
BObjectImp * mf_RevokePrivilege ()
BObjectImp * mf_SaveWorldState ()
BObjectImp * mf_SecureTradeWin ()
BObjectImp * mf_SelectColor ()
BObjectImp * mf_SelectMenuItem ()
BObjectImp * mf_SendBuyWindow ()
BObjectImp * mf_SendCharacterRaceChanger ()
BObjectImp * mf_SendCharProfile ()
BObjectImp * mf_SendEvent ()
BObjectImp * mf_SendGumpMenu ()
BObjectImp * mf_SendHousingTool ()
BObjectImp * mf_SendInstaResDialog ()
BObjectImp * mf_SendOpenBook ()
BObjectImp * mf_SendOpenSpecialContainer ()
BObjectImp * mf_SendOverallSeason ()
BObjectImp * mf_SendPacket ()
BObjectImp * mf_SendQuestArrow ()
BObjectImp * mf_SendSellWindow ()
BObjectImp * mf_SendSkillWindow ()
BObjectImp * mf_SendStatus ()
BObjectImp * mf_SendStringAsTipWindow ()
BObjectImp * mf_SendSysMessage ()
BObjectImp * mf_SendTextEntryGump ()
BObjectImp * mf_SendViewContainer ()
BObjectImp * mf_SetGlobalProperty ()
BObjectImp * mf_SetName ()
BObjectImp * mf_SetObjProperty ()
BObjectImp * mf_SetRegionLightLevel ()
BObjectImp * mf_SetRegionWeatherLevel ()
BObjectImp * mf_SetScriptController ()
BObjectImp * mf_Shutdown ()
BObjectImp * mf_SpeakPowerWords ()
BObjectImp * mf_StartSpellEffect ()
BObjectImp * mf_SubtractAmount ()
BObjectImp * mf_SystemFindObjectBySerial ()
BObjectImp * mf_Target ()
BObjectImp * mf_TargetCancel ()
BObjectImp * mf_TargetCoordinates ()
BObjectImp * mf_TargetMultiPlacement ()
BObjectImp * mf_UpdateItem ()
BObjectImp * mf_UpdateMobile ()
BObjectImp * mf_UseItem ()
BObjectImp * send_open_special_container ()

Public Attributes

Character * attached_chr_
Character * attached_npc_
CharacterRef controller_
Character * gump_chr
Character * menu_selection_chr
Character * prompt_chr
bool registered_for_speech_events
std::vector< ItemRef > reserved_items_
Character * resurrect_chr
Character * selcolor_chr
Character * target_cursor_chr
int target_options
Character * textentry_chr
UOExecutor & uoexec

Protected Member Functions

virtual BObjectImp * execFunc (unsigned idx)
virtual int functionIndex (const char *func)
virtual std::string functionName (unsigned idx)
bool getDynamicMenuParam (unsigned param, Menu *&menu)
bool getStaticOrDynamicMenuParam (unsigned param, Menu *&menu)
void internal_InBoxAreaChecks (unsigned short &x1, unsigned short &y1, short &z1, unsigned short &x2, unsigned short &y2, short &z2, Realm *realm)
BObjectImp * internal_MoveBoat (UBoat *boat, xcoord x, ycoord y, zcoord z, int flags, Realm *newrealm)
BObjectImp * internal_MoveCharacter (Character *chr, xcoord x, ycoord y, zcoord z, int flags, Realm *newrealm)
BObjectImp * internal_MoveContainer (UContainer *container, xcoord x, ycoord y, zcoord z, int flags, Realm *newrealm)
BObjectImp * internal_MoveItem (Item *item, xcoord x, ycoord y, zcoord z, int flags, Realm *newrealm)
BObjectImp * internal_SendCompressedGumpMenu (Character *chr, ObjArray *layout_arr, ObjArray *data_arr, int x, int y)
BObjectImp * internal_SendUnCompressedGumpMenu (Character *chr, ObjArray *layout_arr, ObjArray *data_arr, int x, int y)

Static Protected Attributes

static UOFunctionDef function_table []

Private Member Functions

 UOExecutorModule (const UOExecutorModule &)
UOExecutorModule & operator= (const UOExecutorModule &)

Detailed Description

Definition at line 70 of file uomod.h.


Constructor & Destructor Documentation

Definition at line 165 of file uomod.cpp.


Member Function Documentation

Definition at line 495 of file uomod.cpp.

References ExecutorModule::exec, ExecutorModule::getParam(), and Executor::paramAsString().

+ Here is the call graph for this function:

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

Implements ExecutorModule.

Definition at line 5967 of file uomod.cpp.

References callMemberFunction, and function_table.

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

Implements ExecutorModule.

Definition at line 5949 of file uomod.cpp.

References arsize, funcmap, funcmap_init, UOFunctionDef::funcname, and function_table.

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

Implements ExecutorModule.

Definition at line 5972 of file uomod.cpp.

References UOFunctionDef::funcname, and function_table.

bool UOExecutorModule::getDynamicMenuParam ( unsigned  param,
Menu *&  menu 
) [protected]

Definition at line 1575 of file uomod.cpp.

References ExecutorModule::getApplicObjParam(), menu_type, and BApplicObj< T >::value().

Referenced by mf_AddMenuItem().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool UOExecutorModule::getStaticOrDynamicMenuParam ( unsigned  param,
Menu *&  menu 
) [protected]

Definition at line 1590 of file uomod.cpp.

References String::data(), find_menu(), ExecutorModule::getParamImp(), BObjectImp::isa(), menu_type, mlog, BApplicObjBase::object_type(), BObjectImp::OTApplicObj, BObjectImp::OTString, and BApplicObj< T >::value().

Referenced by mf_GetMenuObjTypes(), and mf_SelectMenuItem().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void UOExecutorModule::internal_InBoxAreaChecks ( unsigned short &  x1,
unsigned short &  y1,
short &  z1,
unsigned short &  x2,
unsigned short &  y2,
short &  z2,
Realm *  realm 
) [protected]

Definition at line 2315 of file uomod.cpp.

References Realm::height(), Realm::width(), WORLD_MAX_Z, and WORLD_MIN_Z.

Referenced by mf_ListMultisInBox(), mf_ListObjectsInBox(), and mf_ListStaticsInBox().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

BObjectImp * UOExecutorModule::internal_MoveBoat ( UBoat *  boat,
xcoord  x,
ycoord  y,
zcoord  z,
int  flags,
Realm *  newrealm 
) [protected]

Definition at line 113 of file uomod4.cpp.

References clients, ConstForEach(), UMulti::multidef(), UBoat::navigable(), UObject::realm, send_remove_object_if_inrange(), x, and UObject::z.

Referenced by mf_MoveObjectToLocation().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

BObjectImp * UOExecutorModule::internal_MoveContainer ( UContainer *  container,
xcoord  x,
ycoord  y,
zcoord  z,
int  flags,
Realm *  newrealm 
) [protected]

Definition at line 133 of file uomod4.cpp.

References UContainer::for_each_item(), internal_MoveItem(), BObjectImp::isa(), BObjectImp::OTError, UObject::realm, and setrealm().

Referenced by mf_MoveObjectToLocation().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Definition at line 1002 of file uomod.cpp.

References ExecutorModule::exec, find_legal_item(), getCharacterParam(), getItemParam(), and UObject::serial.

+ Here is the call graph for this function:

Definition at line 242 of file uomod.cpp.

References attached_chr_, ExecutorModule::exec, getCharacterParam(), Character::script_ex, and uoexec.

+ Here is the call graph for this function:

Definition at line 2962 of file uomod.cpp.

References ExecutorModule::exec, getUObjectParam(), Realm::has_los(), UObject::realm, and UObject::toplevel_owner().

+ Here is the call graph for this function:

Definition at line 2977 of file uomod.cpp.

References ExecutorModule::exec, ExecutorModule::getParam(), getUObjectParam(), Realm::has_los(), UObject::realm, Realm::valid(), and x.

+ Here is the call graph for this function:

Definition at line 584 of file uomod.cpp.

References cancel_trade(), ExecutorModule::exec, getCharacterParam(), and Character::trading_with.

+ Here is the call graph for this function:

Definition at line 3501 of file uomod.cpp.

References ExecutorModule::getParam(), and pol_distance().

+ Here is the call graph for this function:

Definition at line 3512 of file uomod.cpp.

References ExecutorModule::getParam().

+ Here is the call graph for this function:

Definition at line 1735 of file uomod.cpp.

References String::data(), ExecutorModule::getStringParam(), Menu::menu_id, strzcpy, and Menu::title.

+ Here is the call graph for this function:

Definition at line 3226 of file uomod.cpp.

References UOExecutor::eventmask, ExecutorModule::getParam(), and uoexec.

+ Here is the call graph for this function:

Definition at line 3459 of file uomod.cpp.

References ExecutorModule::exec, getUObjectParam(), UObject::toplevel_owner(), UObject::x, and UObject::y.

+ Here is the call graph for this function:

Definition at line 3483 of file uomod.cpp.

References ExecutorModule::exec, getUObjectParam(), UObject::toplevel_owner(), UObject::x, and UObject::y.

+ Here is the call graph for this function:

Definition at line 3152 of file uomod.cpp.

References ObjArray::addElement(), and clients.

+ Here is the call graph for this function:

Definition at line 1886 of file uomod.cpp.

References PropertyList::eraseprop(), ExecutorModule::getStringParam(), global_properties, and String::value().

+ Here is the call graph for this function:

Definition at line 1898 of file uomod2.cpp.

References String::data(), find_account(), and ExecutorModule::getStringParam().

+ Here is the call graph for this function:

Definition at line 1017 of file uomod.cpp.

References ExecutorModule::exec, Item::getamount(), and getItemParam().

+ Here is the call graph for this function:

Definition at line 3524 of file uomod.cpp.

References ObjArray::addElement(), BStruct::addMember(), and ExecutorModule::getParam().

+ Here is the call graph for this function:

Definition at line 3596 of file uomod.cpp.

References ExecutorModule::getParam(), and x.

+ Here is the call graph for this function:

Definition at line 1900 of file uomod.cpp.

References ObjArray::addElement(), PropertyList::getpropnames(), and global_properties.

+ Here is the call graph for this function:

Definition at line 1674 of file uomod.cpp.

References append_objtypes(), and getStaticOrDynamicMenuParam().

+ Here is the call graph for this function:

Definition at line 1829 of file uomod.cpp.

References ObjArray::addElement(), ExecutorModule::exec, UObject::getpropnames(), and getUObjectParam().

+ Here is the call graph for this function:

Definition at line 982 of file uomod.cpp.

References ExecutorModule::exec, getCharacterParam(), getItemParam(), and UObject::objtype_.

+ Here is the call graph for this function:

Definition at line 4483 of file uomod.cpp.

References String::data(), get_objtype_byname(), and ExecutorModule::getStringParam().

+ Here is the call graph for this function:

Definition at line 3089 of file uomod.cpp.

References BStruct::addMember(), ExecutorModule::exec, getUObjectParam(), UObject::x, UObject::y, and UObject::z.

+ Here is the call graph for this function:

Definition at line 4292 of file uomod.cpp.

References USpell::difficulty(), ExecutorModule::getParam(), spells2, and VALID_SPELL_ID().

+ Here is the call graph for this function:

Definition at line 5538 of file uomod.cpp.

References Item::can_add_to_self(), ExecutorModule::exec, getItemParam(), UObject::objtype_, and Item::stackable().

+ Here is the call graph for this function:

Definition at line 1919 of file uomod2.cpp.

References accounts, and ObjArray::addElement().

+ Here is the call graph for this function:

Definition at line 4801 of file uomod.cpp.

References Character::client, ExecutorModule::exec, getCharacterParam(), Character::has_active_client(), and send_paperdoll().

+ Here is the call graph for this function:

Definition at line 1440 of file uomod.cpp.

References ExecutorModule::exec, getCharacterParam(), ExecutorModule::getParam(), and send_action_to_inrange().

+ Here is the call graph for this function:

Definition at line 2244 of file uomod.cpp.

References ExecutorModule::exec, getUObjectParam(), and play_lightning_bolt_effect().

+ Here is the call graph for this function:

Definition at line 1912 of file uomod.cpp.

References ExecutorModule::exec, ExecutorModule::getParam(), getUObjectParam(), play_moving_effect(), and UObject::realm.

+ Here is the call graph for this function:

Definition at line 1532 of file uomod.cpp.

References Character::client, ExecutorModule::exec, getCharacterParam(), ExecutorModule::getParam(), and send_midi().

+ Here is the call graph for this function:

Definition at line 1469 of file uomod.cpp.

References ExecutorModule::exec, ExecutorModule::getParam(), getUObjectParam(), and play_sound_effect().

+ Here is the call graph for this function:

Definition at line 1850 of file uomod2.cpp.

Definition at line 4131 of file uomod.cpp.

References read_gameclock().

+ Here is the call graph for this function:

Definition at line 4745 of file uomod.cpp.

References ExecutorModule::exec, getItemParam(), Item::inuse(), and reserved_items_.

+ Here is the call graph for this function:

Definition at line 4723 of file uomod.cpp.

References ExecutorModule::exec, getItemParam(), Item::inuse(), is_reserved_to_me(), and reserved_items_.

+ Here is the call graph for this function:

Definition at line 3890 of file uomod.cpp.

References UObject::CLASS_NPC, ExecutorModule::exec, getCharacterParam(), UObject::isa(), and NPC::restart_script().

+ Here is the call graph for this function:

Definition at line 3072 of file uomod.cpp.

References ExecutorModule::exec, ExecutorModule::getStringParam(), getUObjectParam(), UObject::setname(), and String::value().

+ Here is the call graph for this function:

Definition at line 4866 of file uomod.cpp.

References exit_signalled, and signal_catch_thread().

+ Here is the call graph for this function:

Definition at line 4267 of file uomod.cpp.

References USpell::cast(), ExecutorModule::exec, getCharacterParam(), ExecutorModule::getParam(), spells2, and VALID_SPELL_ID().

+ Here is the call graph for this function:

Definition at line 5591 of file uomod.cpp.

References ExecutorModule::exec, getItemParam(), and send_item_to_inrange().

+ Here is the call graph for this function:

UOExecutorModule& UOExecutorModule::operator= ( const UOExecutorModule &  ) [private]

Member Data Documentation

Definition at line 312 of file uomod.h.

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

Definition at line 288 of file uomod.h.

Referenced by handle_script_cursor(), and mf_Target().


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