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
785: 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.

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

◆ OnGossipHello()

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

Reimplemented from CreatureScript.

965 {
966 InstanceScript* instance = creature->GetInstanceScript();
968 {
970 SendGossipMenuFor(player, player->GetGossipTextId(10933, creature), creature->GetGUID());
971 }
972
973 return true;
974 }
@ IN_PROGRESS
Definition: InstanceScript.h:58
@ DONE
Definition: InstanceScript.h:60
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
@ DATA_DEATHBRINGER_SAURFANG
Definition: icecrown_citadel.h:95
@ ACTION_START_EVENT
Definition: boss_deathbringer_saurfang.cpp:192
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
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.

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

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