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

Classes

struct  npc_tirions_gambit_tirionAI
 

Public Member Functions

 npc_tirions_gambit_tirion ()
 
bool OnGossipSelect (Player *player, Creature *creature, uint32, uint32) 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
 
- 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)
 
virtual ~ScriptObject ()=default
 
- Protected Member Functions inherited from UpdatableScript< Creature >
 UpdatableScript ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ npc_tirions_gambit_tirion()

npc_tirions_gambit_tirion::npc_tirions_gambit_tirion ( )
inline
682: CreatureScript("npc_tirions_gambit_tirion") {}
Definition: CreatureScript.h:25

Member Function Documentation

◆ GetAI()

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

Reimplemented from CreatureScript.

1034 {
1035 return new npc_tirions_gambit_tirionAI(creature);
1036 }

◆ OnGossipSelect()

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

Reimplemented from CreatureScript.

685 {
686 CloseGossipMenuFor(player);
687 creature->AI()->DoAction(ACTION_START_EVENT);
688 return true;
689 }
void CloseGossipMenuFor(Player *player)
Definition: ScriptedGossip.cpp:56
@ ACTION_START_EVENT
Definition: zone_icecrown.cpp:648
virtual void DoAction(int32)
Definition: UnitAI.h:201
CreatureAI * AI() const
Definition: Creature.h:136

References ACTION_START_EVENT, Creature::AI(), CloseGossipMenuFor(), and UnitAI::DoAction().