AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
FrostwingGauntletRespawner Class Reference

Public Member Functions

void operator() (Creature *creature)
 

Detailed Description

Member Function Documentation

◆ operator()()

void FrostwingGauntletRespawner::operator() ( Creature creature)
inline
321 {
322 switch (creature->GetOriginalEntry())
323 {
329 break;
335 creature->AI()->DoAction(ACTION_RESET_EVENT);
336 break;
337 case NPC_SISTER_SVALNA: // she never dies or the event is over
338 creature->AI()->DoAction(ACTION_RESET_EVENT);
339 creature->AI()->EnterEvadeMode();
340 creature->AI()->Reset();
341 return;
342 default:
343 return;
344 }
345
346 if (CreatureData const* data = creature->GetCreatureData())
347 creature->SetPosition(data->posX, data->posY, data->posZ, data->orientation);
348 creature->DespawnOrUnsummon();
349
350 creature->SetRespawnTime(5);
351 }
@ NPC_YMIRJAR_DEATHBRINGER
Definition: pit_of_saron.h:104
@ ACTION_RESET_EVENT
Definition: icecrown_citadel.cpp:268
@ NPC_CAPTAIN_BRANDON
Definition: icecrown_citadel.h:298
@ NPC_YMIRJAR_BATTLE_MAIDEN
Definition: icecrown_citadel.h:305
@ NPC_YMIRJAR_WARLORD
Definition: icecrown_citadel.h:309
@ NPC_CAPTAIN_RUPERT
Definition: icecrown_citadel.h:300
@ NPC_YMIRJAR_HUNTRESS
Definition: icecrown_citadel.h:308
@ NPC_CROK_SCOURGEBANE
Definition: icecrown_citadel.h:296
@ NPC_SISTER_SVALNA
Definition: icecrown_citadel.h:310
@ NPC_YMIRJAR_FROSTBINDER
Definition: icecrown_citadel.h:307
@ NPC_CAPTAIN_GRONDEL
Definition: icecrown_citadel.h:299
@ NPC_CAPTAIN_ARNATH
Definition: icecrown_citadel.h:297
virtual void DoAction(int32)
Definition: UnitAI.h:212
virtual void Reset()
Definition: UnitAI.h:206
virtual void EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER)
Definition: CreatureAI.cpp:197
void SetRespawnTime(uint32 respawn)
Definition: Creature.cpp:3762
uint32 GetOriginalEntry() const
Definition: Creature.h:367
void SetPosition(float x, float y, float z, float o)
Definition: Creature.cpp:3149
CreatureData const * GetCreatureData() const
Definition: Creature.h:207
void DespawnOrUnsummon(Milliseconds msTimeToDespawn, Seconds forcedRespawnTimer)
Definition: Creature.cpp:2173
CreatureAI * AI() const
Definition: Creature.h:143
Definition: CreatureData.h:373

References ACTION_RESET_EVENT, Creature::AI(), Creature::DespawnOrUnsummon(), UnitAI::DoAction(), CreatureAI::EnterEvadeMode(), Creature::GetCreatureData(), Creature::GetOriginalEntry(), NPC_CAPTAIN_ARNATH, NPC_CAPTAIN_BRANDON, NPC_CAPTAIN_GRONDEL, NPC_CAPTAIN_RUPERT, NPC_CROK_SCOURGEBANE, NPC_SISTER_SVALNA, NPC_YMIRJAR_BATTLE_MAIDEN, NPC_YMIRJAR_DEATHBRINGER, NPC_YMIRJAR_FROSTBINDER, NPC_YMIRJAR_HUNTRESS, NPC_YMIRJAR_WARLORD, UnitAI::Reset(), Creature::SetPosition(), and Creature::SetRespawnTime().