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
322 {
323 switch (creature->GetOriginalEntry())
324 {
330 break;
336 creature->AI()->DoAction(ACTION_RESET_EVENT);
337 break;
338 case NPC_SISTER_SVALNA: // she never dies or the event is over
339 creature->AI()->DoAction(ACTION_RESET_EVENT);
340 creature->AI()->EnterEvadeMode();
341 creature->AI()->Reset();
342 return;
343 default:
344 return;
345 }
346
347 if (CreatureData const* data = creature->GetCreatureData())
348 creature->SetPosition(data->posX, data->posY, data->posZ, data->orientation);
349 creature->DespawnOrUnsummon();
350
351 creature->SetRespawnTime(5);
352 }
@ ACTION_RESET_EVENT
Definition: icecrown_citadel.cpp:269
@ NPC_CAPTAIN_BRANDON
Definition: icecrown_citadel.h:292
@ NPC_YMIRJAR_BATTLE_MAIDEN
Definition: icecrown_citadel.h:299
@ NPC_YMIRJAR_WARLORD
Definition: icecrown_citadel.h:303
@ NPC_CAPTAIN_RUPERT
Definition: icecrown_citadel.h:294
@ NPC_YMIRJAR_HUNTRESS
Definition: icecrown_citadel.h:302
@ NPC_CROK_SCOURGEBANE
Definition: icecrown_citadel.h:290
@ NPC_SISTER_SVALNA
Definition: icecrown_citadel.h:304
@ NPC_YMIRJAR_FROSTBINDER
Definition: icecrown_citadel.h:301
@ NPC_CAPTAIN_GRONDEL
Definition: icecrown_citadel.h:293
@ NPC_CAPTAIN_ARNATH
Definition: icecrown_citadel.h:291
@ NPC_YMIRJAR_DEATHBRINGER
Definition: pit_of_saron.h:104
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:208
void SetRespawnTime(uint32 respawn)
Definition: Creature.cpp:3775
uint32 GetOriginalEntry() const
Definition: Creature.h:366
void SetPosition(float x, float y, float z, float o)
Definition: Creature.cpp:3154
CreatureData const * GetCreatureData() const
Definition: Creature.h:206
void DespawnOrUnsummon(Milliseconds msTimeToDespawn, Seconds forcedRespawnTimer)
Definition: Creature.cpp:2178
CreatureAI * AI() const
Definition: Creature.h:140
Definition: CreatureData.h:370

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