AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
MovementHandlerScript Class Reference

#include "MovementHandlerScript.h"

Inheritance diagram for MovementHandlerScript:
ScriptObject

Public Member Functions

virtual void OnPlayerMove (Player *, MovementInfo, uint32)
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
uint16 GetTotalAvailableHooks ()
 

Protected Member Functions

 MovementHandlerScript (const char *name, std::vector< uint16 > enabledHooks=std::vector< uint16 >())
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ MovementHandlerScript()

MovementHandlerScript::MovementHandlerScript ( const char *  name,
std::vector< uint16 enabledHooks = std::vector<uint16>() 
)
protected
27 :
29{
30 // If empty - enable all available hooks.
31 if (enabledHooks.empty())
32 for (uint16 i = 0; i < MOVEMENTHOOK_END; ++i)
33 enabledHooks.emplace_back(i);
34
35 ScriptRegistry<MovementHandlerScript>::AddScript(this, std::move(enabledHooks));
36}
std::uint16_t uint16
Definition: Define.h:108
@ MOVEMENTHOOK_END
Definition: MovementHandlerScript.h:28
static void AddScript(TScript *const script, std::vector< uint16 > enabledHooks={})
Definition: ScriptMgr.h:737
Definition: ScriptObject.h:44

References ScriptRegistry< TScript >::AddScript(), and MOVEMENTHOOK_END.

Member Function Documentation

◆ OnPlayerMove()

virtual void MovementHandlerScript::OnPlayerMove ( Player ,
MovementInfo  ,
uint32   
)
inlinevirtual
38{ }