AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "CreatureData.h"
Public Member Functions | |
CreatureModel const * | GetModelByIdx (uint32 idx) const |
CreatureModel const * | GetRandomValidModel () const |
CreatureModel const * | GetFirstValidModel () const |
CreatureModel const * | GetModelWithDisplayId (uint32 displayId) const |
CreatureModel const * | GetFirstInvisibleModel () const |
CreatureModel const * | GetFirstVisibleModel () const |
SkillType | GetRequiredLootSkill () const |
bool | IsExotic () const |
bool | IsTameable (bool exotic) const |
bool | HasFlagsExtra (uint32 flag) const |
void | InitializeQueryData () |
CreatureModel const * CreatureTemplate::GetFirstInvisibleModel | ( | ) | const |
References CreatureModel::DefaultInvisibleModel, and sObjectMgr.
Referenced by ObjectMgr::ChooseDisplayId(), and Unit::PatchValuesUpdate().
CreatureModel const * CreatureTemplate::GetFirstValidModel | ( | ) | const |
Referenced by Creature::InitEntry().
CreatureModel const * CreatureTemplate::GetFirstVisibleModel | ( | ) | const |
References CreatureModel::DefaultVisibleModel, and sObjectMgr.
Referenced by Unit::PatchValuesUpdate().
CreatureModel const * CreatureTemplate::GetModelByIdx | ( | uint32 | idx | ) | const |
Referenced by WorldSession::HandleCreatureQueryOpcode(), and InitializeQueryData().
CreatureModel const * CreatureTemplate::GetModelWithDisplayId | ( | uint32 | displayId | ) | const |
Referenced by ObjectMgr::ChooseDisplayId().
CreatureModel const * CreatureTemplate::GetRandomValidModel | ( | ) | const |
References CreatureModel::Probability, and Acore::Containers::SelectRandomWeightedContainerElement().
Referenced by ObjectMgr::ChooseDisplayId(), and ObjectMgr::GetTaxiMountDisplayId().
|
inline |
References CREATURE_TYPE_FLAG_SKIN_WITH_ENGINEERING, CREATURE_TYPE_FLAG_SKIN_WITH_HERBALISM, CREATURE_TYPE_FLAG_SKIN_WITH_MINING, SKILL_ENGINEERING, SKILL_HERBALISM, SKILL_MINING, SKILL_SKINNING, and type_flags.
Referenced by Spell::CheckCast(), and Spell::EffectSkinning().
|
inline |
References flags_extra.
Referenced by Creature::CanAssistTo(), Unit::DealMeleeDamage(), CreatureAI::EnterEvadeMode(), and Creature::Respawn().
void CreatureTemplate::InitializeQueryData | ( | ) |
References Entry, family, GetModelByIdx(), IconName, WorldPacket::Initialize(), KillCredit, ModHealth, ModMana, movementId, Name, queryData, RacialLeader, rank, SMSG_CREATURE_QUERY_RESPONSE, SubName, type, and type_flags.
|
inline |
References CREATURE_TYPE_FLAG_TAMEABLE_EXOTIC, and type_flags.
|
inline |
References CREATURE_TYPE_BEAST, CREATURE_TYPE_FLAG_TAMEABLE, CREATURE_TYPE_FLAG_TAMEABLE_EXOTIC, family, type, and type_flags.
Referenced by Spell::CheckCast(), npc_commandscript::HandleNpcTameCommand(), WorldSession::HandleStableSwapPet(), WorldSession::HandleUnstablePet(), and Pet::LoadPetFromDB().
std::string CreatureTemplate::AIName |
Referenced by ObjectMgr::CheckCreatureTemplate().
uint32 CreatureTemplate::BaseAttackTime |
Referenced by ObjectMgr::CheckCreatureTemplate(), Guardian::InitStatsForLevel(), and Creature::UpdateEntry().
float CreatureTemplate::BaseVariance |
Referenced by Creature::CalculateMinMaxDamage().
float CreatureTemplate::DamageModifier |
Referenced by Creature::CalculateMinMaxDamage().
float CreatureTemplate::detection_range |
Referenced by Creature::UpdateEntry().
uint32 CreatureTemplate::DifficultyEntry[MAX_DIFFICULTY - 1] |
Referenced by ObjectMgr::CheckCreatureTemplate(), Creature::CreateFromProto(), and Creature::InitEntry().
uint32 CreatureTemplate::dmgschool |
uint32 CreatureTemplate::dynamicflags |
Referenced by ObjectMgr::AddCreData(), ObjectMgr::ChooseCreatureFlags(), and Creature::SaveToDB().
uint32 CreatureTemplate::Entry |
Referenced by ObjectMgr::CheckCreatureTemplate(), Pet::CreateBaseAtTamed(), Creature::CreateFromProto(), list_commandscript::HandleListCreatureCommand(), npc_commandscript::HandleNpcTameCommand(), pet_commandscript::HandlePetCreateCommand(), InitializeQueryData(), Guardian::InitStatsForLevel(), Player::KilledMonster(), SpellMgr::LoadPetDefaultSpells(), and Player::RewardReputation().
uint32 CreatureTemplate::expansion |
uint32 CreatureTemplate::faction |
uint32 CreatureTemplate::family |
Referenced by Spell::AddUnitTarget(), ObjectMgr::CheckCreatureTemplate(), Pet::CreateBaseAtCreature(), Pet::CreateBaseAtCreatureInfo(), Player::CreatePet(), ObjectMgr::GeneratePetName(), Pet::GetNativeObjectScale(), WorldSession::HandleCreatureQueryOpcode(), learn_commandscript::HandleLearnAllMyPetTalentsCommand(), pet_commandscript::HandlePetCreateCommand(), ArenaSpectator::HandleResetCommand(), spell_warl_demonic_empowerment::HandleScriptEffect(), Pet::HaveInDiet(), InitializeQueryData(), IsTameable(), Pet::LearnPetPassives(), Player::LearnPetTalent(), LoadPetDefaultSpells_helper(), Player::PetSpellInitialize(), Player::RemovePet(), Pet::resetTalents(), and Player::SummonPet().
uint32 CreatureTemplate::flags_extra |
Referenced by Unit::ApplyDiminishingToDuration(), Unit::Attack(), ObjectMgr::CheckCreatureTemplate(), ObjectMgr::ChooseDisplayId(), Spell::DoSpellHitOnUnit(), Acore::XP::Gain(), WorldSession::HandleSellItemOpcode(), HasFlagsExtra(), Creature::IsAvoidingAOE(), Creature::IsCivilian(), Creature::IsDamageEnoughForLootingAndReward(), Creature::IsDungeonBoss(), Creature::IsGuard(), Player::isHonorOrXPTarget(), Creature::IsImmuneToKnockback(), Unit::isSpellBlocked(), Creature::IsTrigger(), Unit::Kill(), ObjectMgr::LoadCreatures(), Unit::MeleeSpellHitResult(), Unit::PatchValuesUpdate(), Unit::RollMeleeOutcomeAgainst(), Creature::UpdateEntry(), Creature::UpdateMovementFlags(), and Player::UpdateWeaponSkill().
uint32 CreatureTemplate::GossipMenuId |
Referenced by ObjectMgr::CheckCreatureTemplate(), Player::GetDefaultGossipMenuForSource(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleQuestgiverHelloOpcode(), npc_thrall_old_hillsbrad::OnGossipHello(), npc_artorius::OnGossipHello(), npc_simone::OnGossipHello(), npc_nelson::OnGossipHello(), npc_franklin::OnGossipHello(), npc_taxi::OnGossipHello(), npc_tirion_fordring_tft::npc_tirion_fordringAI::sGossipSelect(), and npc_harrison_jones::npc_harrison_jonesAI::sGossipSelect().
float CreatureTemplate::HoverHeight |
Referenced by ObjectMgr::CheckCreatureTemplate(), and Creature::InitEntry().
std::string CreatureTemplate::IconName |
uint32 CreatureTemplate::KillCredit[MAX_KILL_CREDIT] |
uint32 CreatureTemplate::lootid |
uint32 CreatureTemplate::maxgold |
Referenced by Unit::Kill().
uint8 CreatureTemplate::maxlevel |
Referenced by ObjectMgr::AddCreData(), and Creature::SelectLevel().
uint32 CreatureTemplate::MechanicImmuneMask |
Referenced by npc_commandscript::HandleNpcInfoCommand(), and Creature::HasMechanicTemplateImmunity().
uint32 CreatureTemplate::mingold |
Referenced by Unit::Kill().
uint8 CreatureTemplate::minlevel |
Referenced by ObjectMgr::AddCreData(), and Creature::SelectLevel().
float CreatureTemplate::ModArmor |
Referenced by CreatureBaseStats::GenerateArmor().
std::vector<CreatureModel> CreatureTemplate::Models |
float CreatureTemplate::ModExperience |
Referenced by Acore::XP::Gain().
float CreatureTemplate::ModHealth |
float CreatureTemplate::ModMana |
CreatureMovementData CreatureTemplate::Movement |
Referenced by ObjectMgr::CheckCreatureTemplate(), and Creature::GetMovementTemplate().
uint32 CreatureTemplate::movementId |
Referenced by WorldSession::HandleCreatureQueryOpcode(), and InitializeQueryData().
uint32 CreatureTemplate::MovementType |
Referenced by ObjectMgr::AddCreData(), ObjectMgr::CheckCreatureTemplate(), and Creature::InitEntry().
std::string CreatureTemplate::Name |
Referenced by ObjectMgr::GeneratePetName(), WorldSession::HandleCreatureQueryOpcode(), list_commandscript::HandleListCreatureCommand(), tele_commandscript::HandleTeleNameNpcIdCommand(), tele_commandscript::HandleTeleNameNpcSpawnIdCommand(), Creature::InitEntry(), InitializeQueryData(), and WorldSession::SendPetNameQuery().
uint32 CreatureTemplate::npcflag |
uint32 CreatureTemplate::PetSpellDataId |
uint32 CreatureTemplate::pickpocketLootId |
Referenced by SpellInfo::CheckTarget(), npc_commandscript::HandleNpcInfoCommand(), and Player::SendLoot().
WorldPacket CreatureTemplate::queryData |
Referenced by InitializeQueryData().
bool CreatureTemplate::RacialLeader |
Referenced by WorldSession::HandleCreatureQueryOpcode(), InitializeQueryData(), and Creature::IsRacialLeader().
uint32 CreatureTemplate::RangeAttackTime |
Referenced by ObjectMgr::CheckCreatureTemplate(), and Creature::UpdateEntry().
float CreatureTemplate::RangeVariance |
Referenced by Creature::CalculateMinMaxDamage().
uint32 CreatureTemplate::rank |
bool CreatureTemplate::RegenHealth |
Referenced by Creature::UpdateEntry().
int32 CreatureTemplate::resistance[MAX_SPELL_SCHOOL] |
float CreatureTemplate::scale |
uint32 CreatureTemplate::ScriptID |
Referenced by ObjectMgr::CheckCreatureTemplate().
uint32 CreatureTemplate::SkinLootId |
float CreatureTemplate::speed_flight |
Referenced by Creature::InitEntry().
float CreatureTemplate::speed_run |
Referenced by Battleground::AddCreature(), ObjectMgr::CheckCreatureTemplate(), Creature::InitEntry(), boss_onyxia::MovementInform(), boss_sindragosa::boss_sindragosaAI::MovementInform(), npc_hor_leader_second::npc_hor_leader_secondAI::MoveToNextStopPoint(), boss_nightbane::Reset(), boss_onyxia::Reset(), boss_sindragosa::boss_sindragosaAI::Reset(), Battlefield::SpawnCreature(), npc_hor_lich_king::npc_hor_lich_kingAI::UpdateAI(), npc_hor_leader_second::npc_hor_leader_secondAI::UpdateAI(), and Unit::UpdateSpeed().
float CreatureTemplate::speed_swim |
Referenced by Creature::InitEntry().
float CreatureTemplate::speed_walk |
uint32 CreatureTemplate::spells[MAX_CREATURE_SPELLS] |
uint8 CreatureTemplate::SpellSchoolImmuneMask |
Referenced by npc_commandscript::HandleNpcInfoCommand().
std::string CreatureTemplate::SubName |
Referenced by WorldSession::HandleCreatureQueryOpcode(), and InitializeQueryData().
uint32 CreatureTemplate::trainer_class |
uint32 CreatureTemplate::trainer_race |
Referenced by ObjectMgr::CheckCreatureTemplate(), and Creature::IsValidTrainerForPlayer().
uint32 CreatureTemplate::trainer_spell |
Referenced by ObjectMgr::CheckCreatureTemplate(), and Creature::IsValidTrainerForPlayer().
uint32 CreatureTemplate::trainer_type |
uint32 CreatureTemplate::type |
Referenced by Vehicle::ApplyAllImmunities(), ObjectMgr::CheckCreatureTemplate(), Pet::CreateBaseAtTamed(), Unit::GetCreatureType(), WorldSession::HandleCreatureQueryOpcode(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), InitializeQueryData(), Pet::IsPermanentPetFor(), IsTameable(), Unit::RemoveCharmedBy(), Unit::SetCharmedBy(), and Player::SummonPet().
uint32 CreatureTemplate::type_flags |
Referenced by Unit::_IsValidAttackTarget(), npc_escortAI::AssistPlayerInCombatAgainst(), FollowerAI::AssistPlayerInCombatAgainst(), SmartAI::AssistPlayerInCombatAgainst(), Creature::Create(), Player::GetNPCIfCanInteractWith(), GetRequiredLootSkill(), WorldSession::HandleCreatureQueryOpcode(), InitializeQueryData(), IsExotic(), Unit::IsInPartyWith(), Unit::IsInRaidWith(), IsTameable(), and Creature::isWorldBoss().
uint32 CreatureTemplate::unit_class |
uint32 CreatureTemplate::unit_flags |
Referenced by ObjectMgr::AddCreData(), ObjectMgr::ChooseCreatureFlags(), and Creature::SaveToDB().
uint32 CreatureTemplate::unit_flags2 |
Referenced by Creature::UpdateEntry().
uint32 CreatureTemplate::VehicleId |
Referenced by ObjectMgr::CheckCreatureTemplate(), and Creature::CreateFromProto().