Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
Skyfire::Containers Namespace Reference

Functions

template<class Iterator1, class Iterator2>
bool Intersects (Iterator1 first1, Iterator1 last1, Iterator2 first2, Iterator2 last2)
template<class T, class Predicate>
void RandomResizeList (std::list< T > &list, Predicate &predicate, uint32 size)
template<class T>
void RandomResizeList (std::list< T > &list, uint32 size)
template<class C>
C::value_type const & SelectRandomContainerElement (C const &container)

Function Documentation

◆ Intersects()

template<class Iterator1, class Iterator2>
bool Skyfire::Containers::Intersects ( Iterator1 first1,
Iterator1 last1,
Iterator2 first2,
Iterator2 last2 )

Definition at line 56 of file Containers.h.

Referenced by WorldObject::IsPhased().

◆ RandomResizeList() [1/2]

template<class T, class Predicate>
void Skyfire::Containers::RandomResizeList ( std::list< T > & list,
Predicate & predicate,
uint32 size )

First use predicate filter

Definition at line 33 of file Containers.h.

References RandomResizeList().

◆ RandomResizeList() [2/2]

template<class T>
void Skyfire::Containers::RandomResizeList ( std::list< T > & list,
uint32 size )

Definition at line 19 of file Containers.h.

Referenced by boss_earthrager_ptah::boss_earthrager_ptahAI::DamageTaken(), SummonList::DoAction(), spell_scion_of_eternity_arcane_barrage::spell_scion_of_eternity_arcane_barrage_SpellScript::FilterMeleeHoverDiskPassangers(), spell_argaloth_consuming_darkness::spell_argaloth_consuming_darkness_SpellScript::FilterTargets(), spell_blood_queen_bloodbolt::spell_blood_queen_bloodbolt_SpellScript::FilterTargets(), spell_dru_starfall_dummy::spell_dru_starfall_dummy_SpellScript::FilterTargets(), spell_earthrager_ptah_flame_bolt::spell_earthrager_ptah_flame_bolt_SpellScript::FilterTargets(), spell_malygos_arcane_storm::spell_malygos_arcane_storm_SpellScript::FilterTargets(), spell_putricide_unbound_plague::spell_putricide_unbound_plague_SpellScript::FilterTargets(), spell_rotface_vile_gas_trigger::spell_rotface_vile_gas_trigger_SpellScript::FilterTargets(), spell_saviana_conflagration_init::spell_saviana_conflagration_init_SpellScript::FilterTargets(), spell_sindragosa_unchained_magic::spell_sindragosa_unchained_magic_SpellScript::FilterTargets(), boss_zhao_ren::boss_zhao_renAI::GetRandomPlayer(), spell_dreamwalker_summon_suppresser::spell_dreamwalker_summon_suppresser_AuraScript::PeriodicTick(), spell_monk_spinning_fire_blossom::spell_monk_spinning_fire_blossom_SpellScript::PrepareSpellScript(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::ProcessEvent(), RandomResizeList(), spell_svalna_revive_champion::spell_svalna_revive_champion_SpellScript::RemoveAliveTarget(), Spell::SelectImplicitAreaTargets(), Spell::SelectImplicitConeTargets(), UnitAI::SelectTargetList(), spell_malygos_surge_of_power_warning_selector_25::spell_malygos_surge_of_power_warning_selector_25_SpellScript::SendThreeTargets(), boss_moroes::boss_moroesAI::SpawnAdds(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::UpdateAI(), boss_festergut::boss_festergutAI::UpdateAI(), and boss_moam::boss_moamAI::UpdateAI().

◆ SelectRandomContainerElement()

template<class C>
C::value_type const & Skyfire::Containers::SelectRandomContainerElement ( C const & container)

Definition at line 48 of file Containers.h.

Referenced by lfg::LFGQueue::CheckCompatibility(), boss_general_vezax::boss_general_vezaxAI::CheckPlayersInRange(), Spell::EffectDummy(), Spell::EffectEnergize(), boss_lady_deathwhisper::boss_lady_deathwhisperAI::EmpowerCultist(), spell_anraphet_alpha_beams::spell_anraphet_alpha_beams_SpellScript::FilterTargets(), spell_deathbringer_boiling_blood::spell_deathbringer_boiling_blood_SpellScript::FilterTargets(), spell_devourer_of_souls_mirrored_soul_target_selector::spell_devourer_of_souls_mirrored_soul_target_selector_SpellScript::FilterTargets(), spell_dreamwalker_summoner::spell_dreamwalker_summoner_SpellScript::FilterTargets(), spell_dru_t10_restoration_4p_bonus::spell_dru_t10_restoration_4p_bonus_SpellScript::FilterTargets(), spell_frost_giant_death_plague::spell_frost_giant_death_plague_SpellScript::FilterTargets(), spell_frostwarden_handler_order_whelp::spell_frostwarden_handler_order_whelp_SpellScript::FilterTargets(), spell_occuthar_eyes_of_occuthar::spell_occuthar_eyes_of_occuthar_SpellScript::FilterTargets(), spell_occuthar_focused_fire::spell_occuthar_focused_fire_SpellScript::FilterTargets(), spell_paletress_summon_memory::spell_paletress_summon_memory_SpellScript::FilterTargets(), spell_pursue::spell_pursue_SpellScript::FilterTargets(), spell_rotface_mutated_infection::spell_rotface_mutated_infection_SpellScript::FilterTargets(), spell_rotface_vile_gas_trigger::spell_rotface_vile_gas_trigger_SpellScript::FilterTargets(), instance_ahnkahet::instance_ahnkahet_InstanceScript::GetData64(), ObjectMgr::GetRandomArchaeologyFindForDigsite(), Player::GetRandomResearchDigsiteForContinent(), Player::GetRandomResearchProjectForRace(), spell_frostwarden_handler_order_whelp::spell_frostwarden_handler_order_whelp_SpellScript::HandleForcedCast(), AuraEffect::HandlePeriodicDummyAuraTick(), spell_mistress_kiss_area::spell_mistress_kiss_area_SpellScript::PrepareSpellScript(), LootTemplate::LootGroup::Roll(), Unit::SelectNearbyTarget(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::SelectRandomTarget(), spell_putricide_ooze_channel::spell_putricide_ooze_channel_SpellScript::SelectTarget(), spell_the_lich_king_valkyr_target_search::spell_the_lich_king_valkyr_target_search_SpellScript::SelectTarget(), spell_the_lich_king_vile_spirit_move_target_search::spell_the_lich_king_vile_spirit_move_target_search_SpellScript::SelectTarget(), PoolGroup< T >::SpawnObject(), boss_malchezaar::boss_malchezaarAI::SummonInfernal(), boss_algalon_the_observer::boss_algalon_the_observerAI::UpdateAI(), boss_emalon::boss_emalonAI::UpdateAI(), boss_festergut::boss_festergutAI::UpdateAI(), boss_sulfuron::boss_sulfuronAI::UpdateAI(), npc_captain_arnath::npc_captain_arnathAI::UpdateAI(), npc_egg_pile::npc_egg_pileAI::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), and GameObject::Use().