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

Classes

struct  npc_muradin_bronzebeard_iccAI
 

Public Member Functions

 npc_muradin_bronzebeard_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_muradin_bronzebeard_icc()

npc_muradin_bronzebeard_icc::npc_muradin_bronzebeard_icc ( )
inline
786: CreatureScript("npc_muradin_bronzebeard_icc") { }
Definition: CreatureScript.h:25

Member Function Documentation

◆ GetAI()

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

Reimplemented from CreatureScript.

992 {
993 return GetIcecrownCitadelAI<npc_muradin_bronzebeard_iccAI>(creature);
994 }

◆ OnGossipHello()

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

Reimplemented from CreatureScript.

966 {
967 InstanceScript* instance = creature->GetInstanceScript();
969 {
971 SendGossipMenuFor(player, player->GetGossipTextId(10933, creature), creature->GetGUID());
972 }
973
974 return true;
975 }
@ 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_muradin_bronzebeard_icc::OnGossipSelect ( Player player,
Creature creature,
uint32  ,
uint32  action 
)
inlineoverridevirtual

Reimplemented from CreatureScript.

978 {
979 InstanceScript* instance = creature->GetInstanceScript();
981 {
982 ClearGossipMenuFor(player);
983 CloseGossipMenuFor(player);
984 if (action == -ACTION_START_EVENT + 1)
985 creature->AI()->DoAction(ACTION_START_EVENT);
986 }
987
988 return true;
989 }
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.