TrinityCore
Loading...
Searching...
No Matches
ScriptedCreature.h File Reference
#include "CommonHelpers.h"
#include "CreatureAI.h"
#include "Creature.h"
#include "DBCEnums.h"
#include "EventMap.h"
#include "TaskScheduler.h"
+ Include dependency graph for ScriptedCreature.h:

Go to the source code of this file.

Classes

class  SummonList
 
class  EntryCheckPredicate
 
class  DummyEntryCheckPredicate
 
struct  ScriptedAI
 
class  BossAI
 
class  WorldBossAI
 

Functions

Creature * GetClosestCreatureWithEntry (WorldObject *source, uint32 entry, float maxSearchRange, bool alive=true)
 
Creature * GetClosestCreatureWithOptions (WorldObject *source, float maxSearchRange, FindCreatureOptions const &options)
 
GameObject * GetClosestGameObjectWithEntry (WorldObject *source, uint32 entry, float maxSearchRange, bool spawnedOnly=true)
 
template<typename Container >
void GetCreatureListWithEntryInGrid (Container &container, WorldObject *source, uint32 entry, float maxSearchRange)
 
template<typename Container >
void GetCreatureListWithOptionsInGrid (Container &container, WorldObject *source, float maxSearchRange, FindCreatureOptions const &options)
 
template<typename Container >
void GetGameObjectListWithEntryInGrid (Container &container, WorldObject *source, uint32 entry, float maxSearchRange)
 
template<typename Container >
void GetPlayerListInGrid (Container &container, WorldObject *source, float maxSearchRange, bool alive=true)
 

Function Documentation

◆ GetClosestCreatureWithEntry()

◆ GetClosestCreatureWithOptions()

Creature * GetClosestCreatureWithOptions ( WorldObject *  source,
float  maxSearchRange,
FindCreatureOptions const &  options 
)
inline

Definition at line 395 of file ScriptedCreature.h.

References WorldObject::FindNearestCreatureWithOptions().

Referenced by boss_janalai::AllEggsWereHatched(), npc_amanishi_hatcher::AreEggsHatchedA(), npc_amanishi_hatcher::AreEggsHatchedB(), spell_freed_killcredit_set_them_free< CreatureId >::HandleHitTarget(), npc_kayn_sunfury_ashtongue_intro_private::JustAppeared(), boss_aqusirr::JustDied(), conversation_the_invasion_begins::OnCreate(), conversation_an_unlikely_informant::OnCreate(), conversation_the_new_classington_estate::OnCreate(), Scripts::EasternKingdoms::StormwindCity::conversation_start_council_tides_of_war::OnCreate(), Scripts::EasternKingdoms::StormwindCity::conversation_quest_ancient_curses_accept::OnCreate(), Scripts::KhazAlgar::CampaignsVisionsOfAShadowedSun::conversation_vereesas_tale::OnCreate(), conversation_natalia_pearces_accept_precious_gems::OnCreate(), conversation_natalia_pearces_complete_precious_gems::OnCreate(), conversation_dawn_accept_the_expedition_awaits::OnCreate(), conversation_boralus_cyrus_meets_genn::OnCreate(), conversation_cyrus_crestfall_shaking_hands::OnCreate(), npc_7th_legion_magus_sanctum_of_the_sages::OnGossipSelect(), Scripts::EasternKingdoms::StormwindCity::player_conv_after_movie_tides_of_war::OnMovieComplete(), npc_kayn_sunfury_ashtongue_intro::OnQuestAccept(), Scripts::EasternKingdoms::StormwindCity::npc_anduin_wrynn_nation_of_kultiras::OnQuestAccept(), scene_enter_the_illidari_ashtongue::OnSceneStart(), scene_enter_the_illidari_coilskar::OnSceneStart(), at_hall_of_shadows_call_of_the_uncrowned_clone_milton::OnUnitEnter(), and conversation_guards_intro_standing_accused::SummonPersonalCloneFromClosestCreatureWithOptions().

◆ GetClosestGameObjectWithEntry()

◆ GetCreatureListWithEntryInGrid()

template<typename Container >
void GetCreatureListWithEntryInGrid ( Container &  container,
WorldObject *  source,
uint32  entry,
float  maxSearchRange 
)
inline

Definition at line 406 of file ScriptedCreature.h.

References WorldObject::GetCreatureListWithEntryInGrid().

Referenced by spell_ahune_summoning_rhyme_aura::AfterApply(), boss_temple_guardian_anhuur::CleanStalkers(), boss_earthrager_ptah::Cleanup(), instance_dire_maul::instance_dire_maul_InstanceMapScript::CrystalCreatureStore(), boss_earthrager_ptah::DamageTaken(), boss_temple_guardian_anhuur::DamageTaken(), boss_anduin_wrynn::DamageTaken(), boss_amalgam_of_souls::DespawnSoulEchoes(), boss_mandokir::DoAction(), npc_high_overlord_saurfang_icc::DoAction(), npc_muradin_bronzebeard_icc::DoAction(), boss_professor_putricide::DoAction(), CoolestFriendBaseAI::DoAction(), npc_yogg_saron_keeper::npc_yogg_saron_keeperAI::DoAction(), npc_sironas::npc_sironasAI::DoAction(), npc_medivh_bm::DoDespawnSpawns(), boss_lady_vashj::DoDespawnSummons(), DoDespawnSummons(), npc_ahune_bunny::DoResetCreatures(), DoResetPortals(), instance_blackrock_spire::instance_blackrock_spireMapScript::Dragonspireroomstore(), npc_sparring_partner_exiles_reach::GetRandomSparPoint(), npc_high_overlord_saurfang_icc::GuardBroadcast(), npc_muradin_bronzebeard_icc::GuardBroadcast(), spell_frostwarden_handler_order_whelp::HandleForcedCast(), spell_putricide_unstable_experiment::HandleScript(), spell_edna_earth_shatterer::HandleScriptEffect(), spell_dreamwalker_summon_suppresser::HandleSummon(), boss_golemagg::JustDied(), boss_anetheron::JustDied(), npc_egg_pile::npc_egg_pileAI::JustDied(), npc_gunship::npc_gunshipAI::JustDied(), boss_warlord_kalithresh::JustDied(), npc_blackhand_incarcerator::JustEngagedWith(), boss_keleseth::KillSkeletons(), npc_valkyr_shadowguard::MovementInform(), boss_lava_guard_gordoth::MovementInform(), boss_illidan_stormrage::MovementInform(), npc_sparring_partner_combat_training::MovementInform(), go_veil_skith_cage::go_veil_skith_cageAI::OnGossipHello(), at_icc_saurfang_portal::OnTrigger(), boss_the_candle_king::RemoveWaxStatues(), npc_yogg_saron_keeper::npc_yogg_saron_keeperAI::Reset(), npc_commander_eligor_dawnbringer::StoreTargets(), npc_silverpine_grand_executor_mortuus::SummonPortalsFromOrgrimmar(), boss_pyroguard_emberseer::UpdateAI(), boss_janalai::UpdateAI(), npc_tiger_matriarch_credit::UpdateAI(), boss_temple_guardian_anhuur::UpdateAI(), npc_andorov::UpdateAI(), boss_the_lich_king::UpdateAI(), boss_hodir::UpdateAI(), boss_svala::UpdateAI(), boss_illidan_stormrage::UpdateAI(), boss_lady_vashj::UpdateAI(), boss_leotheras_the_blind::UpdateAI(), npc_ahune_bunny::UpdateAI(), and npc_brewfest_reveler_2::UpdateAI().

◆ GetCreatureListWithOptionsInGrid()

template<typename Container >
void GetCreatureListWithOptionsInGrid ( Container &  container,
WorldObject *  source,
float  maxSearchRange,
FindCreatureOptions const &  options 
)
inline

◆ GetGameObjectListWithEntryInGrid()

template<typename Container >
void GetGameObjectListWithEntryInGrid ( Container &  container,
WorldObject *  source,
uint32  entry,
float  maxSearchRange 
)
inline

◆ GetPlayerListInGrid()

template<typename Container >
void GetPlayerListInGrid ( Container &  container,
WorldObject *  source,
float  maxSearchRange,
bool  alive = true 
)
inline