AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
boss_apothecary_hummel Class Reference
Inheritance diagram for boss_apothecary_hummel:
CreatureScript ScriptObject UpdatableScript< Creature >

Classes

struct  boss_apothecary_hummelAI
 

Public Member Functions

 boss_apothecary_hummel ()
 
bool OnQuestReward (Player *, Creature *creature, const Quest *quest, uint32) override
 
CreatureAIGetAI (Creature *creature) const override
 
- Public Member Functions inherited from CreatureScript
bool IsDatabaseBound () const override
 
virtual bool OnGossipHello (Player *, Creature *)
 
virtual bool OnGossipSelect (Player *, Creature *, uint32, uint32)
 
virtual bool OnGossipSelectCode (Player *, Creature *, uint32, uint32, const char *)
 
virtual bool OnQuestAccept (Player *, Creature *, Quest const *)
 
virtual bool OnQuestSelect (Player *, Creature *, Quest const *)
 
virtual bool OnQuestComplete (Player *, Creature *, Quest const *)
 
virtual bool OnQuestReward (Player *, Creature *, Quest const *, uint32)
 
virtual uint32 GetDialogStatus (Player *, Creature *)
 
virtual CreatureAIGetAI (Creature *) const
 
virtual void OnFfaPvpStateUpdate (Creature *, bool)
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
uint16 GetTotalAvailableHooks ()
 
- Public Member Functions inherited from UpdatableScript< Creature >
virtual void OnUpdate (Creature *, uint32)
 

Additional Inherited Members

- Protected Member Functions inherited from CreatureScript
 CreatureScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 
- Protected Member Functions inherited from UpdatableScript< Creature >
 UpdatableScript ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ boss_apothecary_hummel()

boss_apothecary_hummel::boss_apothecary_hummel ( )
inline
85: CreatureScript("boss_apothecary_hummel") { }
Definition: CreatureScript.h:25

Member Function Documentation

◆ GetAI()

CreatureAI * boss_apothecary_hummel::GetAI ( Creature creature) const
inlineoverridevirtual

Reimplemented from CreatureScript.

276 {
277 return new boss_apothecary_hummelAI(creature);
278 }

◆ OnQuestReward()

bool boss_apothecary_hummel::OnQuestReward ( Player ,
Creature creature,
const Quest quest,
uint32   
)
inlineoverridevirtual

Reimplemented from CreatureScript.

264 {
265 if (quest->GetQuestId() == QUEST_YOUVE_BEEN_SERVED)
266 {
267 if (creature && creature->AI())
268 {
269 creature->AI()->DoAction(ACTION_START_EVENT);
270 }
271 }
272 return true;
273 }
@ QUEST_YOUVE_BEEN_SERVED
Definition: boss_apothecary_hummel.cpp:69
@ ACTION_START_EVENT
Definition: boss_apothecary_hummel.cpp:65
virtual void DoAction(int32)
Definition: UnitAI.h:212
CreatureAI * AI() const
Definition: Creature.h:143
uint32 GetQuestId() const
Definition: QuestDef.h:228

References ACTION_START_EVENT, Creature::AI(), UnitAI::DoAction(), Quest::GetQuestId(), and QUEST_YOUVE_BEEN_SERVED.