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

Classes

struct  npc_lady_sylvanas_windrunnerAI
 

Public Member Functions

 npc_lady_sylvanas_windrunner ()
 
bool OnQuestReward (Player *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

◆ npc_lady_sylvanas_windrunner()

npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunner ( )
inline
101: CreatureScript("npc_lady_sylvanas_windrunner") { }
Definition: CreatureScript.h:25

Member Function Documentation

◆ GetAI()

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

Reimplemented from CreatureScript.

240 {
241 return new npc_lady_sylvanas_windrunnerAI(creature);
242 }

◆ OnQuestReward()

bool npc_lady_sylvanas_windrunner::OnQuestReward ( Player player,
Creature creature,
const Quest _Quest,
uint32   
)
inlineoverridevirtual

Reimplemented from CreatureScript.

104 {
105 if (_Quest->GetQuestId() == QUEST_JOURNEY_TO_UNDERCITY)
106 creature->AI()->SetGUID(player->GetGUID(), GUID_EVENT_INVOKER);
107
108 return true;
109 }
@ GUID_EVENT_INVOKER
Definition: zone_undercity.cpp:84
@ QUEST_JOURNEY_TO_UNDERCITY
Definition: zone_undercity.cpp:47
virtual void SetGUID(ObjectGuid, int32=0)
Definition: UnitAI.h:215
CreatureAI * AI() const
Definition: Creature.h:140
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
uint32 GetQuestId() const
Definition: QuestDef.h:228

References Creature::AI(), Object::GetGUID(), Quest::GetQuestId(), GUID_EVENT_INVOKER, QUEST_JOURNEY_TO_UNDERCITY, and UnitAI::SetGUID().