TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
MapScript< TMap > Class Template Reference

#include <ScriptMgr.h>

Public Member Functions

MapEntry constGetEntry ()
 
virtual void OnCreate (TMap *)
 
virtual void OnDestroy (TMap *)
 
virtual void OnLoadGridMap (TMap *, GridMap *, uint32, uint32)
 
virtual void OnUnloadGridMap (TMap *, GridMap *, uint32, uint32)
 
virtual void OnPlayerEnter (TMap *, Player *)
 
virtual void OnPlayerLeave (TMap *, Player *)
 
- Public Member Functions inherited from UpdatableScript< TMap >
virtual void OnUpdate (TMap *, uint32)
 

Protected Member Functions

 MapScript (uint32 mapId)
 
- Protected Member Functions inherited from UpdatableScript< TMap >
 UpdatableScript ()
 
virtual ~UpdatableScript ()
 

Private Attributes

MapEntry const_mapEntry
 

Constructor & Destructor Documentation

template<class TMap>
MapScript< TMap >::MapScript ( uint32  mapId)
inlineprotected
303  : _mapEntry(sMapStore.LookupEntry(mapId))
304  {
305  if (!_mapEntry)
306  TC_LOG_ERROR("scripts", "Invalid MapScript for %u; no such map ID.", mapId);
307  }
MapEntry const * _mapEntry
Definition: ScriptMgr.h:298
DBCStorage< MapEntry > sMapStore(Mapfmt)
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207

Member Function Documentation

template<class TMap>
MapEntry const* MapScript< TMap >::GetEntry ( )
inline
312 { return _mapEntry; }
MapEntry const * _mapEntry
Definition: ScriptMgr.h:298
template<class TMap>
virtual void MapScript< TMap >::OnCreate ( TMap *  )
inlinevirtual
315 { }
template<class TMap>
virtual void MapScript< TMap >::OnDestroy ( TMap *  )
inlinevirtual
318 { }
template<class TMap>
virtual void MapScript< TMap >::OnLoadGridMap ( TMap *  ,
GridMap ,
uint32  ,
uint32   
)
inlinevirtual
321 { }
template<class TMap>
virtual void MapScript< TMap >::OnPlayerEnter ( TMap *  ,
Player  
)
inlinevirtual
327 { }
template<class TMap>
virtual void MapScript< TMap >::OnPlayerLeave ( TMap *  ,
Player  
)
inlinevirtual
330 { }
template<class TMap>
virtual void MapScript< TMap >::OnUnloadGridMap ( TMap *  ,
GridMap ,
uint32  ,
uint32   
)
inlinevirtual
324 { }

Member Data Documentation

template<class TMap>
MapEntry const* MapScript< TMap >::_mapEntry
private

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