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

Classes

struct  npc_shadowfang_prisonerAI
 

Public Member Functions

 npc_shadowfang_prisoner ()
 
CreatureAIGetAI (Creature *creature) const override
 
bool OnGossipSelect (Player *player, Creature *creature, uint32, uint32 action) override
 
bool OnGossipHello (Player *player, Creature *creature) 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_shadowfang_prisoner::npc_shadowfang_prisoner ( )
inline
71 : CreatureScript("npc_shadowfang_prisoner") { }
CreatureScript(const char *name)
Definition: ScriptMgr.cpp:1586

Member Function Documentation

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

Reimplemented from CreatureScript.

74  {
75  return GetInstanceAI<npc_shadowfang_prisonerAI>(creature);
76  }
bool npc_shadowfang_prisoner::OnGossipHello ( Player player,
Creature creature 
)
inlineoverridevirtual

Reimplemented from CreatureScript.

92  {
93  InstanceScript* instance = creature->GetInstanceScript();
94 
95  if (instance && instance->GetData(TYPE_FREE_NPC) != DONE && instance->GetData(TYPE_RETHILGORE) == DONE)
97 
98  player->SEND_GOSSIP_MENU(player->GetGossipTextId(creature), creature->GetGUID());
99 
100  return true;
101  }
Definition: ScriptedGossip.h:71
InstanceScript * GetInstanceScript()
Definition: Object.cpp:1540
virtual uint32 GetData(uint32) const
Definition: ZoneScript.h:51
Definition: inflate.h:49
Definition: shadowfang_keep.h:26
#define GOSSIP_ITEM_DOOR
Definition: shadowfang_keep.cpp:66
Definition: ScriptedGossip.h:73
Definition: shadowfang_keep.h:27
ObjectGuid const & GetGUID() const
Definition: Object.h:105
Definition: GossipDef.h:59
Definition: InstanceScript.h:141

+ Here is the call graph for this function:

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

Reimplemented from CreatureScript.

79  {
80  player->PlayerTalkClass->ClearMenus();
81  if (action == GOSSIP_ACTION_INFO_DEF+1)
82  {
83  player->CLOSE_GOSSIP_MENU();
84 
86  pEscortAI->Start(false, false);
87  }
88  return true;
89  }
Definition: ScriptedEscortAI.h:52
Definition: ScriptedGossip.h:71
#define CAST_AI(a, b)
Definition: ScriptedCreature.h:28
CreatureAI * AI() const
Definition: Creature.h:525
Definition: shadowfang_keep.cpp:103

+ Here is the call graph for this function:


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