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

#include "ScriptMgr.h"

Inheritance diagram for AllGameObjectScript:
ScriptObject

Public Member Functions

virtual void OnGameObjectAddWorld (GameObject *)
 This hook runs after add game object in world.
 
virtual void OnGameObjectSaveToDB (GameObject *)
 This hook runs after the game object iis saved to the database.
 
virtual void OnGameObjectRemoveWorld (GameObject *)
 This hook runs after remove game object in world.
 
virtual void OnGameObjectUpdate (GameObject *, uint32)
 This hook runs after remove game object in world.
 
virtual bool CanGameObjectGossipHello (Player *, GameObject *)
 
virtual bool CanGameObjectGossipSelect (Player *, GameObject *, uint32, uint32)
 
virtual bool CanGameObjectGossipSelectCode (Player *, GameObject *, uint32, uint32, const char *)
 
virtual bool CanGameObjectQuestAccept (Player *, GameObject *, Quest const *)
 
virtual bool CanGameObjectQuestReward (Player *, GameObject *, Quest const *, uint32)
 
virtual void OnGameObjectDestroyed (GameObject *, Player *)
 
virtual void OnGameObjectDamaged (GameObject *, Player *)
 
virtual void OnGameObjectLootStateChanged (GameObject *, uint32, Unit *)
 
virtual void OnGameObjectStateChanged (GameObject *, uint32)
 
virtual GameObjectAIGetGameObjectAI (GameObject *) const
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 

Protected Member Functions

 AllGameObjectScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name)
 
virtual ~ScriptObject ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ AllGameObjectScript()

AllGameObjectScript::AllGameObjectScript ( const char *  name)
protected
594 : ScriptObject(name)
595{
597}
Definition: ScriptMgr.h:108
static void AddScript(TScript *const script)
Definition: ScriptMgr.h:2720

References ScriptRegistry< TScript >::AddScript().

Member Function Documentation

◆ CanGameObjectGossipHello()

virtual bool AllGameObjectScript::CanGameObjectGossipHello ( Player ,
GameObject  
)
inlinevirtual
688{ return false; }

Referenced by ScriptMgr::OnGossipHello().

◆ CanGameObjectGossipSelect()

virtual bool AllGameObjectScript::CanGameObjectGossipSelect ( Player ,
GameObject ,
uint32  ,
uint32   
)
inlinevirtual
691{ return false; }

Referenced by ScriptMgr::OnGossipSelect().

◆ CanGameObjectGossipSelectCode()

virtual bool AllGameObjectScript::CanGameObjectGossipSelectCode ( Player ,
GameObject ,
uint32  ,
uint32  ,
const char *   
)
inlinevirtual
694{ return false; }

Referenced by ScriptMgr::OnGossipSelectCode().

◆ CanGameObjectQuestAccept()

virtual bool AllGameObjectScript::CanGameObjectQuestAccept ( Player ,
GameObject ,
Quest const *   
)
inlinevirtual
697{ return false; }

Referenced by ScriptMgr::OnQuestAccept().

◆ CanGameObjectQuestReward()

virtual bool AllGameObjectScript::CanGameObjectQuestReward ( Player ,
GameObject ,
Quest const *  ,
uint32   
)
inlinevirtual
700{ return false; }

Referenced by ScriptMgr::OnQuestReward().

◆ GetGameObjectAI()

virtual GameObjectAI * AllGameObjectScript::GetGameObjectAI ( GameObject ) const
inlinevirtual
715{ return nullptr; }

Referenced by ScriptMgr::GetGameObjectAI().

◆ OnGameObjectAddWorld()

virtual void AllGameObjectScript::OnGameObjectAddWorld ( GameObject )
inlinevirtual

This hook runs after add game object in world.

Parameters
goContains information about the GameObject
666{ }

Referenced by ScriptMgr::OnGameObjectAddWorld().

◆ OnGameObjectDamaged()

virtual void AllGameObjectScript::OnGameObjectDamaged ( GameObject ,
Player  
)
inlinevirtual
706{ }

Referenced by ScriptMgr::OnGameObjectDamaged().

◆ OnGameObjectDestroyed()

virtual void AllGameObjectScript::OnGameObjectDestroyed ( GameObject ,
Player  
)
inlinevirtual
703{ }

Referenced by ScriptMgr::OnGameObjectDestroyed().

◆ OnGameObjectLootStateChanged()

virtual void AllGameObjectScript::OnGameObjectLootStateChanged ( GameObject ,
uint32  ,
Unit  
)
inlinevirtual

◆ OnGameObjectRemoveWorld()

virtual void AllGameObjectScript::OnGameObjectRemoveWorld ( GameObject )
inlinevirtual

This hook runs after remove game object in world.

Parameters
goContains information about the GameObject
678{ }

Referenced by ScriptMgr::OnGameObjectRemoveWorld().

◆ OnGameObjectSaveToDB()

virtual void AllGameObjectScript::OnGameObjectSaveToDB ( GameObject )
inlinevirtual

This hook runs after the game object iis saved to the database.

Parameters
goContains information about the GameObject
672{ }

Referenced by ScriptMgr::OnGameObjectSaveToDB().

◆ OnGameObjectStateChanged()

virtual void AllGameObjectScript::OnGameObjectStateChanged ( GameObject ,
uint32   
)
inlinevirtual

◆ OnGameObjectUpdate()

virtual void AllGameObjectScript::OnGameObjectUpdate ( GameObject ,
uint32   
)
inlinevirtual

This hook runs after remove game object in world.

Parameters
goContains information about the GameObject
685{ }

Referenced by ScriptMgr::OnGameObjectUpdate().