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

Classes

struct  npc_high_overlord_saurfangAI
 

Public Member Functions

 npc_high_overlord_saurfang_icc ()
 
bool OnGossipHello (Player *player, Creature *creature) override
 
bool OnGossipSelect (Player *player, Creature *creature, uint32, uint32 action) 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_high_overlord_saurfang_icc()

npc_high_overlord_saurfang_icc::npc_high_overlord_saurfang_icc ( )
inline
524: CreatureScript("npc_high_overlord_saurfang_icc") { }
Definition: CreatureScript.h:25

Member Function Documentation

◆ GetAI()

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

Reimplemented from CreatureScript.

778 {
779 return GetIcecrownCitadelAI<npc_high_overlord_saurfangAI>(creature);
780 }

◆ OnGossipHello()

bool npc_high_overlord_saurfang_icc::OnGossipHello ( Player player,
Creature creature 
)
inlineoverridevirtual

Reimplemented from CreatureScript.

752 {
753 InstanceScript* instance = creature->GetInstanceScript();
755 {
757 SendGossipMenuFor(player, player->GetGossipTextId(10953, creature), creature->GetGUID());
758 }
759
760 return true;
761 }
@ DATA_DEATHBRINGER_SAURFANG
Definition: icecrown_citadel.h:89
@ ACTION_START_EVENT
Definition: boss_deathbringer_saurfang.cpp:193
void SendGossipMenuFor(Player *player, uint32 npcTextID, ObjectGuid const guid)
Definition: ScriptedGossip.cpp:45
void AddGossipItemFor(Player *player, uint32 icon, std::string const &text, uint32 sender, uint32 action)
Definition: ScriptedGossip.cpp:28
@ GOSSIP_SENDER_INFO
Definition: ScriptedGossip.h:72
@ IN_PROGRESS
Definition: InstanceScript.h:58
@ DONE
Definition: InstanceScript.h:60
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:112
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1203
uint32 GetGossipTextId(uint32 menuId, WorldObject *source)
Definition: PlayerGossip.cpp:404
Definition: InstanceScript.h:142
EncounterState GetBossState(uint32 id) const
Definition: InstanceScript.h:235

References ACTION_START_EVENT, AddGossipItemFor(), DATA_DEATHBRINGER_SAURFANG, DONE, InstanceScript::GetBossState(), Player::GetGossipTextId(), Object::GetGUID(), WorldObject::GetInstanceScript(), GOSSIP_SENDER_INFO, IN_PROGRESS, and SendGossipMenuFor().

◆ OnGossipSelect()

bool npc_high_overlord_saurfang_icc::OnGossipSelect ( Player player,
Creature creature,
uint32  ,
uint32  action 
)
inlineoverridevirtual

Reimplemented from CreatureScript.

764 {
765 InstanceScript* instance = creature->GetInstanceScript();
767 {
768 ClearGossipMenuFor(player);
769 CloseGossipMenuFor(player);
770 if (action == -ACTION_START_EVENT)
771 creature->AI()->DoAction(ACTION_START_EVENT);
772 }
773
774 return true;
775 }
void ClearGossipMenuFor(Player *player)
Definition: ScriptedGossip.cpp:22
void CloseGossipMenuFor(Player *player)
Definition: ScriptedGossip.cpp:56
virtual void DoAction(int32)
Definition: UnitAI.h:212
CreatureAI * AI() const
Definition: Creature.h:140

References ACTION_START_EVENT, Creature::AI(), ClearGossipMenuFor(), CloseGossipMenuFor(), DATA_DEATHBRINGER_SAURFANG, UnitAI::DoAction(), DONE, InstanceScript::GetBossState(), WorldObject::GetInstanceScript(), and IN_PROGRESS.