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

#include <ScriptMgr.h>

Protected Member Functions

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

Additional Inherited Members

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

Constructor & Destructor Documentation

BattlegroundMapScript::BattlegroundMapScript ( const char *  name,
uint32  mapId 
)
protected
1573 {
1574  if (GetEntry() && !GetEntry()->IsBattleground())
1575  TC_LOG_ERROR("scripts", "BattlegroundMapScript for map %u is invalid.", mapId);
1576 
1578 }
MapEntry const * GetEntry()
Definition: ScriptMgr.h:312
static void AddScript(TScript *const script, bool addToDeleteContainer=true)
Definition: ScriptMgr.cpp:111
bool IsBattleground() const
Definition: DBCStructure.h:861
#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:


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