Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
ScriptedCreature.cpp File Reference
#include "Cell.h"
#include "CellImpl.h"
#include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "Item.h"
#include "ObjectMgr.h"
#include "ScriptedCreature.h"
#include "ScriptMgr.h"
#include "Spell.h"
#include "TemporarySummon.h"
Include dependency graph for ScriptedCreature.cpp:

Go to the source code of this file.

Enumerations

enum  NPCs { NPC_BROODLORD = 12017 , NPC_VOID_REAVER = 19516 , NPC_JAN_ALAI = 23578 , NPC_SARTHARION = 28860 }

Functions

CreatureGetClosestCreatureWithEntry (WorldObject *source, uint32 entry, float maxSearchRange, bool alive)
GameObjectGetClosestGameObjectWithEntry (WorldObject *source, uint32 entry, float maxSearchRange)
void GetCreatureListWithEntryInGrid (std::list< Creature * > &list, WorldObject *source, uint32 entry, float maxSearchRange)
void GetGameObjectListWithEntryInGrid (std::list< GameObject * > &list, WorldObject *source, uint32 entry, float maxSearchRange)
void GetPlayerListInGrid (std::list< Player * > &list, WorldObject *source, float maxSearchRange)
void GetPositionWithDistInOrientation (Unit *pUnit, float dist, float orientation, float &x, float &y)
void GetRandPosFromCenterInDist (float centerX, float centerY, float dist, float &x, float &y)

Variables

struct TSpellSummarySpellSummary

Enumeration Type Documentation

◆ NPCs

enum NPCs
Enumerator
NPC_BROODLORD 
NPC_VOID_REAVER 
NPC_JAN_ALAI 
NPC_SARTHARION 

Definition at line 399 of file ScriptedCreature.cpp.

Function Documentation

◆ GetClosestCreatureWithEntry()

Creature * GetClosestCreatureWithEntry ( WorldObject * source,
uint32 entry,
float maxSearchRange,
bool alive )

◆ GetClosestGameObjectWithEntry()

◆ GetCreatureListWithEntryInGrid()

void GetCreatureListWithEntryInGrid ( std::list< Creature * > & list,
WorldObject * source,
uint32 entry,
float maxSearchRange )

Definition at line 672 of file ScriptedCreature.cpp.

References WorldObject::GetCreatureListWithEntryInGrid().

Referenced by instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::CheckLichKingAvailability(), boss_temple_guardian_anhuur::boss_temple_guardian_anhuurAI::CleanStalkers(), boss_earthrager_ptah::boss_earthrager_ptahAI::Cleanup(), boss_earthrager_ptah::boss_earthrager_ptahAI::DamageTaken(), boss_temple_guardian_anhuur::boss_temple_guardian_anhuurAI::DamageTaken(), boss_xevozz::boss_xevozzAI::DespawnSphere(), boss_professor_putricide::boss_professor_putricideAI::DoAction(), npc_high_overlord_saurfang_icc::npc_high_overlord_saurfangAI::DoAction(), npc_muradin_bronzebeard_icc::npc_muradin_bronzebeard_iccAI::DoAction(), npc_yogg_saron_keeper::npc_yogg_saron_keeperAI::DoAction(), instance_blackrock_spire::instance_blackrock_spireMapScript::Dragonspireroomstore(), npc_blackhand_incarcerator::npc_blackhand_incarceratorAI::EnterCombat(), spell_frostwarden_handler_order_whelp::spell_frostwarden_handler_order_whelp_SpellScript::HandleForcedCast(), spell_putricide_unstable_experiment::spell_putricide_unstable_experiment_SpellScript::HandleScript(), npc_egg_pile::npc_egg_pileAI::JustDied(), npc_high_overlord_saurfang_icc::npc_high_overlord_saurfangAI::MovementInform(), npc_muradin_bronzebeard_icc::npc_muradin_bronzebeard_iccAI::MovementInform(), npc_valkyr_shadowguard::npc_valkyr_shadowguardAI::MovementInform(), go_large_gjalerbron_cage::OnGossipHello(), go_veil_skith_cage::OnGossipHello(), at_icc_saurfang_portal::OnTrigger(), spell_dreamwalker_summon_suppresser::spell_dreamwalker_summon_suppresser_AuraScript::PeriodicTick(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::ProcessEvent(), npc_yogg_saron_keeper::npc_yogg_saron_keeperAI::Reset(), boss_hodir::boss_hodirAI::UpdateAI(), boss_pyroguard_emberseer::boss_pyroguard_emberseerAI::UpdateAI(), boss_svala::boss_svalaAI::UpdateAI(), boss_temple_guardian_anhuur::boss_temple_guardian_anhuurAI::UpdateAI(), boss_the_lich_king::boss_the_lich_kingAI::UpdateAI(), npc_warmage_coldarra::npc_warmage_coldarraAI::UpdateAI(), and npc_warmage_violetstand::npc_warmage_violetstandAI::UpdateAI().

◆ GetGameObjectListWithEntryInGrid()

void GetGameObjectListWithEntryInGrid ( std::list< GameObject * > & list,
WorldObject * source,
uint32 entry,
float maxSearchRange )

◆ GetPlayerListInGrid()

◆ GetPositionWithDistInOrientation()

void GetPositionWithDistInOrientation ( Unit * pUnit,
float dist,
float orientation,
float & x,
float & y )

◆ GetRandPosFromCenterInDist()

void GetRandPosFromCenterInDist ( float centerX,
float centerY,
float dist,
float & x,
float & y )

Definition at line 692 of file ScriptedCreature.cpp.

References frand(), and M_PI.

Variable Documentation

◆ SpellSummary

struct TSpellSummary* SpellSummary
extern