TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
npc_weegli_blastfuse Class Reference

Classes

struct  npc_weegli_blastfuseAI
 

Public Member Functions

 npc_weegli_blastfuse ()
 
bool OnGossipSelect (Player *player, Creature *creature, uint32, uint32 action) override
 
bool OnGossipHello (Player *player, Creature *creature) override
 
CreatureAIGetAI (Creature *creature) const override
 
- Public Member Functions inherited from CreatureScript
virtual bool OnDummyEffect (Unit *, uint32, SpellEffIndex, Creature *)
 
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 OnQuestReward (Player *, Creature *, Quest const *, uint32)
 
virtual uint32 GetDialogStatus (Player *, Creature *)
 
- Public Member Functions inherited from UnitScript
virtual void OnHeal (Unit *, Unit *, uint32 &)
 
virtual void OnDamage (Unit *, Unit *, uint32 &)
 
virtual void ModifyPeriodicDamageAurasTick (Unit *, Unit *, uint32 &)
 
virtual void ModifyMeleeDamage (Unit *, Unit *, uint32 &)
 
virtual void ModifySpellDamageTaken (Unit *, Unit *, int32 &)
 
- Public Member Functions inherited from ScriptObject
const std::string & GetName () const
 
- 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 UnitScript
 UnitScript (const char *name, bool addToScripts=true)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name)
 
virtual ~ScriptObject ()
 
- Protected Member Functions inherited from UpdatableScript< Creature >
 UpdatableScript ()
 
virtual ~UpdatableScript ()
 

Constructor & Destructor Documentation

npc_weegli_blastfuse::npc_weegli_blastfuse ( )
inline
266 : CreatureScript("npc_weegli_blastfuse") { }
CreatureScript(const char *name)
Definition: ScriptMgr.cpp:1586

Member Function Documentation

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

Reimplemented from CreatureScript.

302  {
303  return GetInstanceAI<npc_weegli_blastfuseAI>(creature);
304  }
bool npc_weegli_blastfuse::OnGossipHello ( Player player,
Creature creature 
)
inlineoverridevirtual

Reimplemented from CreatureScript.

281  {
282  if (InstanceScript* instance = creature->GetInstanceScript())
283  {
284  switch (instance->GetData(EVENT_PYRAMID))
285  {
288  player->SEND_GOSSIP_MENU(1514, creature->GetGUID()); //if event can proceed to end
289  break;
290  case PYRAMID_NOT_STARTED:
291  player->SEND_GOSSIP_MENU(1511, creature->GetGUID()); //if event not started
292  break;
293  default:
294  player->SEND_GOSSIP_MENU(1513, creature->GetGUID()); //if event are in progress
295  }
296  return true;
297  }
298  return false;
299  }
Definition: ScriptedGossip.h:71
InstanceScript * GetInstanceScript()
Definition: Object.cpp:1540
Definition: zulfarrak.h:54
#define GOSSIP_WEEGLI
Definition: zulfarrak.cpp:261
Definition: zulfarrak.h:35
Definition: ScriptedGossip.h:73
ObjectGuid const & GetGUID() const
Definition: Object.h:105
Definition: GossipDef.h:59
Definition: InstanceScript.h:141
Definition: zulfarrak.h:46

+ Here is the call graph for this function:

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

Reimplemented from CreatureScript.

269  {
270  player->PlayerTalkClass->ClearMenus();
271  if (action == GOSSIP_ACTION_INFO_DEF+1)
272  {
273  player->CLOSE_GOSSIP_MENU();
274  //here we make him run to door, set the charge and run away off to nowhere
275  creature->AI()->DoAction(0);
276  }
277  return true;
278  }
Definition: ScriptedGossip.h:71
CreatureAI * AI() const
Definition: Creature.h:525
virtual void DoAction(int32)
Definition: UnitAI.h:138

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: