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 ()
BObjectImpbroadcast ()
BObjectImpcreate_item_in_container ()
BObjectImpfind_objtype_in_container ()
bool is_reserved_to_me (Item *item)
BObjectImpmf_Accessible ()
BObjectImpmf_AddAmount ()
BObjectImpmf_AddMenuItem ()
BObjectImpmf_ApplyConstraint ()
BObjectImpmf_AssignRectToWeatherRegion ()
BObjectImpmf_Attach ()
BObjectImpmf_CanWalk ()
BObjectImpmf_CheckLineOfSight ()
BObjectImpmf_CheckLosAt ()
BObjectImpmf_CheckLosBetween ()
BObjectImpmf_CloseGump ()
BObjectImpmf_CloseTradeWindow ()
BObjectImpmf_CloseWindow ()
BObjectImpmf_ConsumeReagents ()
BObjectImpmf_ConsumeSubstance ()
BObjectImpmf_CoordinateDistance ()
BObjectImpmf_CoordinateDistanceEuclidean ()
BObjectImpmf_CreateAccount ()
BObjectImpmf_CreateItemAtLocation ()
BObjectImpmf_CreateItemCopyAtLocation ()
BObjectImpmf_CreateItemInBackpack ()
BObjectImpmf_CreateItemInContainer ()
BObjectImpmf_CreateItemInInventory ()
BObjectImpmf_CreateMenu ()
BObjectImpmf_CreateMultiAtLocation ()
BObjectImpmf_CreateNpcFromTemplate ()
BObjectImpmf_DestroyItem ()
BObjectImpmf_DestroyMulti ()
BObjectImpmf_Detach ()
BObjectImpmf_DisableEvents ()
BObjectImpmf_DisconnectClient ()
BObjectImpmf_Distance ()
BObjectImpmf_DistanceEuclidean ()
BObjectImpmf_EnableEvents ()
BObjectImpmf_EnumerateItemsInContainer ()
BObjectImpmf_EnumerateOnlineCharacters ()
BObjectImpmf_EquipFromTemplate ()
BObjectImpmf_EquipItem ()
BObjectImpmf_EraseGlobalProperty ()
BObjectImpmf_EraseObjProperty ()
BObjectImpmf_FindAccount ()
BObjectImpmf_FindObjtypeInContainer ()
BObjectImpmf_FindPath ()
BObjectImpmf_FindSubstance ()
BObjectImpmf_GetAmount ()
BObjectImpmf_GetCommandHelp ()
BObjectImpmf_GetCoordsInLine ()
BObjectImpmf_GetEquipmentByLayer ()
BObjectImpmf_GetFacing ()
BObjectImpmf_GetGlobalProperty ()
BObjectImpmf_GetGlobalPropertyNames ()
BObjectImpmf_GetHarvestDifficulty ()
BObjectImpmf_GetMapInfo ()
BObjectImpmf_GetMenuObjTypes ()
BObjectImpmf_GetMultiDimensions ()
BObjectImpmf_GetObjProperty ()
BObjectImpmf_GetObjPropertyNames ()
BObjectImpmf_GetObjType ()
BObjectImpmf_GetObjtypeByName ()
BObjectImpmf_GetPosition ()
BObjectImpmf_GetRegionLightLevelAtLocation ()
BObjectImpmf_GetRegionName ()
BObjectImpmf_GetRegionNameAtLocation ()
BObjectImpmf_GetRegionString ()
BObjectImpmf_GetSpellDifficulty ()
BObjectImpmf_GetStandingHeight ()
BObjectImpmf_GetStandingLayers ()
BObjectImpmf_GetStats ()
BObjectImpmf_GetStatus ()
BObjectImpmf_GetWorldHeight ()
BObjectImpmf_GrantPrivilege ()
BObjectImpmf_HarvestResource ()
BObjectImpmf_IsStackable ()
BObjectImpmf_ListAccounts ()
BObjectImpmf_ListEquippedItems ()
BObjectImpmf_ListGhostsNearLocation ()
BObjectImpmf_ListHostiles ()
BObjectImpmf_ListItemsAtLocation ()
BObjectImpmf_ListItemsNearLocation ()
BObjectImpmf_ListItemsNearLocationOfType ()
BObjectImpmf_ListItemsNearLocationWithFlag ()
BObjectImpmf_ListMobilesInLineOfSight ()
BObjectImpmf_ListMobilesNearLocation ()
BObjectImpmf_ListMobilesNearLocationEx ()
BObjectImpmf_ListMultisInBox ()
BObjectImpmf_ListObjectsInBox ()
BObjectImpmf_ListStaticsAtLocation ()
BObjectImpmf_ListStaticsInBox ()
BObjectImpmf_ListStaticsNearLocation ()
BObjectImpmf_MoveItemToContainer ()
BObjectImpmf_MoveItemToSecureTradeWin ()
BObjectImpmf_MoveObjectToLocation ()
BObjectImpmf_OpenPaperdoll ()
BObjectImpmf_PerformAction ()
BObjectImpmf_PlayAnimation ()
BObjectImpmf_PlayLightningBoltEffect ()
BObjectImpmf_PlayMovingEffect ()
BObjectImpmf_PlayMovingEffect_Ex ()
BObjectImpmf_PlayMovingEffectXyz ()
BObjectImpmf_PlayMovingEffectXyz_Ex ()
BObjectImpmf_PlayMusic ()
BObjectImpmf_PlayObjectCenteredEffect ()
BObjectImpmf_PlayObjectCenteredEffect_Ex ()
BObjectImpmf_PlaySoundEffect ()
BObjectImpmf_PlaySoundEffectPrivate ()
BObjectImpmf_PlaySoundEffectXYZ ()
BObjectImpmf_PlayStationaryEffect ()
BObjectImpmf_PlayStationaryEffect_Ex ()
BObjectImpmf_PolCore ()
BObjectImpmf_PrintTextAbove ()
BObjectImpmf_PrivateTextAbove ()
BObjectImpmf_PromptInput ()
BObjectImpmf_Range ()
BObjectImpmf_ReadGameClock ()
BObjectImpmf_RegisterForSpeechEvents ()
BObjectImpmf_ReleaseItem ()
BObjectImpmf_ReserveItem ()
BObjectImpmf_RestartScript ()
BObjectImpmf_Resurrect ()
BObjectImpmf_RevokePrivilege ()
BObjectImpmf_SaveWorldState ()
BObjectImpmf_SecureTradeWin ()
BObjectImpmf_SelectColor ()
BObjectImpmf_SelectMenuItem ()
BObjectImpmf_SendBuyWindow ()
BObjectImpmf_SendCharacterRaceChanger ()
BObjectImpmf_SendCharProfile ()
BObjectImpmf_SendEvent ()
BObjectImpmf_SendGumpMenu ()
BObjectImpmf_SendHousingTool ()
BObjectImpmf_SendInstaResDialog ()
BObjectImpmf_SendOpenBook ()
BObjectImpmf_SendOpenSpecialContainer ()
BObjectImpmf_SendOverallSeason ()
BObjectImpmf_SendPacket ()
BObjectImpmf_SendQuestArrow ()
BObjectImpmf_SendSellWindow ()
BObjectImpmf_SendSkillWindow ()
BObjectImpmf_SendStatus ()
BObjectImpmf_SendStringAsTipWindow ()
BObjectImpmf_SendSysMessage ()
BObjectImpmf_SendTextEntryGump ()
BObjectImpmf_SendViewContainer ()
BObjectImpmf_SetGlobalProperty ()
BObjectImpmf_SetName ()
BObjectImpmf_SetObjProperty ()
BObjectImpmf_SetRegionLightLevel ()
BObjectImpmf_SetRegionWeatherLevel ()
BObjectImpmf_SetScriptController ()
BObjectImpmf_Shutdown ()
BObjectImpmf_SpeakPowerWords ()
BObjectImpmf_StartSpellEffect ()
BObjectImpmf_SubtractAmount ()
BObjectImpmf_SystemFindObjectBySerial ()
BObjectImpmf_Target ()
BObjectImpmf_TargetCancel ()
BObjectImpmf_TargetCoordinates ()
BObjectImpmf_TargetMultiPlacement ()
BObjectImpmf_UpdateItem ()
BObjectImpmf_UpdateMobile ()
BObjectImpmf_UseItem ()
BObjectImpsend_open_special_container ()

Public Attributes

Characterattached_chr_
Characterattached_npc_
CharacterRef controller_
Charactergump_chr
Charactermenu_selection_chr
Characterprompt_chr
bool registered_for_speech_events
std::vector< ItemRefreserved_items_
Characterresurrect_chr
Characterselcolor_chr
Charactertarget_cursor_chr
int target_options
Charactertextentry_chr
UOExecutoruoexec

Protected Member Functions

virtual BObjectImpexecFunc (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)
BObjectImpinternal_MoveBoat (UBoat *boat, xcoord x, ycoord y, zcoord z, int flags, Realm *newrealm)
BObjectImpinternal_MoveCharacter (Character *chr, xcoord x, ycoord y, zcoord z, int flags, Realm *newrealm)
BObjectImpinternal_MoveContainer (UContainer *container, xcoord x, ycoord y, zcoord z, int flags, Realm *newrealm)
BObjectImpinternal_MoveItem (Item *item, xcoord x, ycoord y, zcoord z, int flags, Realm *newrealm)
BObjectImpinternal_SendCompressedGumpMenu (Character *chr, ObjArray *layout_arr, ObjArray *data_arr, int x, int y)
BObjectImpinternal_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 &)
UOExecutorModuleoperator= (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: