|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#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"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 | |
| Creature * | GetClosestCreatureWithEntry (WorldObject *source, uint32 entry, float maxSearchRange, bool alive) |
| GameObject * | GetClosestGameObjectWithEntry (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 TSpellSummary * | SpellSummary |
| enum NPCs |
| Enumerator | |
|---|---|
| NPC_BROODLORD | |
| NPC_VOID_REAVER | |
| NPC_JAN_ALAI | |
| NPC_SARTHARION | |
Definition at line 399 of file ScriptedCreature.cpp.
| Creature * GetClosestCreatureWithEntry | ( | WorldObject * | source, |
| uint32 | entry, | ||
| float | maxSearchRange, | ||
| bool | alive ) |
Definition at line 662 of file ScriptedCreature.cpp.
References WorldObject::FindNearestCreature().
Referenced by npc_mrfloppy::npc_mrfloppyAI::EnterCombat(), boss_hodir::boss_hodirAI::FlashFreeze(), SmartScript::GetTargets(), spell_pot_check::spell_pot_check_SpellScript::HandleScriptEffect(), spell_random_ingredient::spell_random_ingredient_SpellScript::HandleScriptEffect(), npc_emily::npc_emilyAI::JustSummoned(), Condition::Meets(), npc_mageguard_dalaran::npc_mageguard_dalaranAI::MoveInLineOfSight(), npc_vics_flying_machine::npc_vics_flying_machineAI::MovementInform(), go_elune_fire::OnGossipHello(), go_naga_brazier::OnGossipHello(), go_amberpine_outhouse::OnGossipSelect(), npc_emily::OnQuestAccept(), spell_fetch_ingredient_aura::spell_fetch_ingredient_aura_AuraScript::OnRemove(), npc_firework_launcher::npc_firework_launcherAI::OnSpellClick(), npc_announcer_toc10::npc_announcer_toc10AI::Reset(), Map::ScriptsProcess(), boss_volkhan::boss_volkhanAI::UpdateAI(), npc_a_special_surprise::npc_a_special_surpriseAI::UpdateAI(), npc_arthas::npc_arthasAI::UpdateAI(), npc_blessed_banner::npc_blessed_bannerAI::UpdateAI(), npc_flame_tsunami::npc_flame_tsunamiAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_warmage_violetstand::npc_warmage_violetstandAI::UpdateAI(), npc_brann_hos::npc_brann_hosAI::WaypointReached(), and npc_emily::npc_emilyAI::WaypointReached().
| GameObject * GetClosestGameObjectWithEntry | ( | WorldObject * | source, |
| uint32 | entry, | ||
| float | maxSearchRange ) |
Definition at line 667 of file ScriptedCreature.cpp.
References WorldObject::FindNearestGameObject().
Referenced by npc_ranshalla::npc_ranshallaAI::DoChannelTorchSpell(), npc_firework::npc_fireworkAI::FindNearestLauncher(), SmartScript::GetTargets(), npc_ranshalla::npc_ranshallaAI::JustDidDialogueStep(), Condition::Meets(), boss_svala::boss_svalaAI::MoveInLineOfSight(), AreaTrigger_at_coilfang_waterfall::OnTrigger(), boss_svala::boss_svalaAI::UpdateAI(), npc_maxx_a_million_escort::npc_maxx_a_million_escortAI::UpdateAI(), npc_maxx_a_million_escort::npc_maxx_a_million_escortAI::WaypointReached(), and npc_muglash::npc_muglashAI::WaypointReached().
| 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().
| void GetGameObjectListWithEntryInGrid | ( | std::list< GameObject * > & | list, |
| WorldObject * | source, | ||
| uint32 | entry, | ||
| float | maxSearchRange ) |
Definition at line 677 of file ScriptedCreature.cpp.
References WorldObject::GetGameObjectListWithEntryInGrid().
Referenced by npc_snufflenose_gopher::npc_snufflenose_gopherAI::DoFindNewTubber(), and npc_ranshalla::npc_ranshallaAI::WaypointReached().
| void GetPlayerListInGrid | ( | std::list< Player * > & | list, |
| WorldObject * | source, | ||
| float | maxSearchRange ) |
Definition at line 682 of file ScriptedCreature.cpp.
References WorldObject::GetPlayerListInGrid().
Referenced by boss_zhao_ren::boss_zhao_renAI::checkParticipants(), npc_jaomin_ro::npc_jaomin_roAI::DamageTaken(), boss_zhao_ren::boss_zhao_renAI::GetRandomPlayer(), boss_zhao_ren::boss_zhao_renAI::JustDied(), npc_aysa_chamber_of_whispers::npc_aysa_chamber_of_whispersAI::UpdateAI(), npc_hogger_elwynn::npc_hogger_elwynnAI::UpdateAI(), npc_hot_air_balloon_vehicle::npc_hot_air_balloon_vehicleAI::UpdateAI(), npc_jaomin_ro::npc_jaomin_roAI::UpdateAI(), npc_master_shang_xi_wood_of_staves::npc_master_shang_xi_wood_of_stavesAI::UpdateAI(), npc_shu_dailo::npc_shu_dailoAI::UpdateAI(), and npc_shu_pool_of_reflection::npc_shu_pool_of_reflectionAI::UpdateAI().
| void GetPositionWithDistInOrientation | ( | Unit * | pUnit, |
| float | dist, | ||
| float | orientation, | ||
| float & | x, | ||
| float & | y ) |
Definition at line 687 of file ScriptedCreature.cpp.
References Position::GetPositionX(), and Position::GetPositionY().
Referenced by npc_transient::npc_transientAI::JustDied(), boss_ancient_stone_keeper::boss_ancient_stone_keeperAI::UpdateAI(), and npc_shu_pool_of_reflection::npc_shu_pool_of_reflectionAI::UpdateAI().
| void GetRandPosFromCenterInDist | ( | float | centerX, |
| float | centerY, | ||
| float | dist, | ||
| float & | x, | ||
| float & | y ) |
Definition at line 692 of file ScriptedCreature.cpp.
|
extern |
Definition at line 158 of file ScriptMgr.cpp.
Referenced by ScriptMgr::FillSpellSummary(), ScriptedAI::SelectSpell(), and ScriptMgr::Unload().