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

Classes

struct  boss_doomrelAI
 

Public Member Functions

 boss_doomrel ()
 
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

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

Member Function Documentation

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

Reimplemented from CreatureScript.

256  {
257  return GetInstanceAI<boss_doomrelAI>(creature);
258  }
bool boss_doomrel::OnGossipHello ( Player player,
Creature creature 
)
inlineoverridevirtual

Reimplemented from CreatureScript.

149  {
151  player->SEND_GOSSIP_MENU(2601, creature->GetGUID());
152 
153  return true;
154  }
Definition: ScriptedGossip.h:71
#define GOSSIP_ITEM_CHALLENGE
Definition: boss_tomb_of_seven.cpp:117
Definition: ScriptedGossip.h:73
ObjectGuid const & GetGUID() const
Definition: Object.h:105
Definition: GossipDef.h:59

+ Here is the call graph for this function:

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

Reimplemented from CreatureScript.

126  {
127  player->PlayerTalkClass->ClearMenus();
128  switch (action)
129  {
130  case GOSSIP_ACTION_INFO_DEF+1:
132  player->SEND_GOSSIP_MENU(2605, creature->GetGUID());
133  break;
134  case GOSSIP_ACTION_INFO_DEF+2:
135  player->CLOSE_GOSSIP_MENU();
136  //start event here
137  creature->setFaction(FACTION_HOSTILE);
139  creature->AI()->AttackStart(player);
140  InstanceScript* instance = creature->GetInstanceScript();
141  if (instance)
142  instance->SetGuidData(DATA_EVENSTARTER, player->GetGUID());
143  break;
144  }
145  return true;
146  }
#define GOSSIP_SELECT_DOOMREL
Definition: boss_tomb_of_seven.cpp:118
Definition: ScriptedGossip.h:71
InstanceScript * GetInstanceScript()
Definition: Object.cpp:1540
Definition: blackrock_depths.h:54
virtual void SetGuidData(uint32, ObjectGuid)
Definition: ZoneScript.h:45
Definition: Unit.h:681
void setFaction(uint32 faction)
Definition: Unit.h:1467
CreatureAI * AI() const
Definition: Creature.h:525
Definition: ScriptedGossip.h:73
void RemoveFlag(uint16 index, uint32 oldFlag)
Definition: Object.cpp:1214
ObjectGuid const & GetGUID() const
Definition: Object.h:105
Definition: blackrock_depths.h:27
Definition: UpdateFields.h:109
Definition: GossipDef.h:59
Definition: InstanceScript.h:141
virtual void AttackStart(Unit *)
Definition: UnitAI.cpp:29

+ Here is the call graph for this function:


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