TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
InstanceMapScript Class Reference

#include <ScriptMgr.h>

Public Member Functions

virtual InstanceScriptGetInstanceScript (InstanceMap *) const
 
- Public Member Functions inherited from ScriptObject
const std::string & GetName () const
 
- Public Member Functions inherited from MapScript< InstanceMap >
MapEntry constGetEntry ()
 
virtual void OnCreate (InstanceMap *)
 
virtual void OnDestroy (InstanceMap *)
 
virtual void OnLoadGridMap (InstanceMap *, GridMap *, uint32, uint32)
 
virtual void OnUnloadGridMap (InstanceMap *, GridMap *, uint32, uint32)
 
virtual void OnPlayerEnter (InstanceMap *, Player *)
 
virtual void OnPlayerLeave (InstanceMap *, Player *)
 
- Public Member Functions inherited from UpdatableScript< InstanceMap >
virtual void OnUpdate (InstanceMap *, uint32)
 

Protected Member Functions

 InstanceMapScript (const char *name, uint32 mapId)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name)
 
virtual ~ScriptObject ()
 
- Protected Member Functions inherited from MapScript< InstanceMap >
 MapScript (uint32 mapId)
 
- Protected Member Functions inherited from UpdatableScript< InstanceMap >
 UpdatableScript ()
 
virtual ~UpdatableScript ()
 

Constructor & Destructor Documentation

InstanceMapScript::InstanceMapScript ( const char *  name,
uint32  mapId 
)
protected
1563  : ScriptObject(name), MapScript<InstanceMap>(mapId)
1564 {
1565  if (GetEntry() && !GetEntry()->IsDungeon())
1566  TC_LOG_ERROR("scripts", "InstanceMapScript for map %u is invalid.", mapId);
1567 
1569 }
MapEntry const * GetEntry()
Definition: ScriptMgr.h:312
static void AddScript(TScript *const script, bool addToDeleteContainer=true)
Definition: ScriptMgr.cpp:111
bool IsDungeon() const
Definition: DBCStructure.h:857
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207
ScriptObject(const char *name)
Definition: ScriptMgr.h:159

+ Here is the call graph for this function:

Member Function Documentation

virtual InstanceScript* InstanceMapScript::GetInstanceScript ( InstanceMap ) const
inlinevirtual

Reimplemented in instance_icecrown_citadel, instance_ulduar, instance_violet_hold, instance_halls_of_reflection, instance_trial_of_the_crusader, instance_naxxramas, instance_uldaman, instance_blackrock_spire, instance_stratholme, instance_serpent_shrine, instance_culling_of_stratholme, instance_gundrak, instance_oculus, instance_blood_furnace, instance_ruby_sanctum, instance_zulaman, instance_ahnkahet, instance_pit_of_saron, instance_blackwing_lair, instance_magtheridons_lair, instance_deadmines, instance_halls_of_origination, instance_stonecore, instance_sunwell_plateau, instance_magisters_terrace, instance_utgarde_keep, instance_black_temple, instance_halls_of_stone, instance_zulgurub, instance_arcatraz, instance_utgarde_pinnacle, instance_nexus, instance_molten_core, instance_razorfen_downs, instance_steam_vault, instance_drak_tharon_keep, instance_scarlet_monastery, instance_halls_of_lightning, instance_shadow_labyrinth, instance_vault_of_archavon, instance_gruuls_lair, instance_the_eye, instance_forge_of_souls, instance_obsidian_sanctum, instance_baradin_hold, instance_ruins_of_ahnqiraj, instance_the_botanica, instance_zulfarrak, instance_mechanar, instance_sethekk_halls, instance_ramparts, instance_the_black_morass, instance_shadowfang_keep, instance_blackrock_depths, instance_blackrock_caverns, instance_karazhan, instance_azjol_nerub, instance_hyjal, instance_sunken_temple, instance_blackfathom_deeps, instance_old_hillsbrad, instance_firelands, instance_shattered_halls, instance_onyxias_lair, instance_razorfen_kraul, instance_wailing_caverns, instance_trial_of_the_champion, instance_auchenai_crypts, instance_mana_tombs, instance_temple_of_ahnqiraj, instance_eye_of_eternity, instance_the_slave_pens, instance_the_stockade, instance_dire_maul, instance_maraudon, instance_ragefire_chasm, instance_the_underbog, instance_gnomeregan, and instance_scholomance.

349 { return NULL; }
arena_t NULL
Definition: jemalloc_internal.h:624

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