|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
Go to the source code of this file.
Typedefs | |
| typedef std::map< uint32, BattlePetAbilityEffectEntry const * > | BattlePetAbilityEffectByTurnStore |
| typedef std::multimap< uint32, std::pair< uint32, uint8 > > | BattlePetAbilityTurnByAbilityStore |
| typedef std::map< uint8, float > | BattlePetQualityMultiplierStore |
| typedef std::multimap< uint16, BattlePetSpeciesXAbilityEntry const * > | BattlePetSpeciesXAbilityBySpeciesStore |
Functions | |
| float | BattlePetBreedMainStatModifier (uint16 stateId, uint8 breedId) |
| uint32 | BattlePetGetSpeciesAbility (uint16 speciesId, uint8 abilitySlot, uint16 flags, uint8 level) |
| uint32 | BattlePetGetSummonSpell (uint16 speciesId) |
| bool | BattlePetHasSpeciesAbility (uint16 speciesId, uint8 abilitySlot, bool alternateAbility, uint8 level) |
| float | BattlePetQualityMultiplier (uint8 quality) |
| bool | BattlePetSpeciesHasFlag (uint16 speciesId, uint16 flag) |
| float | BattlePetSpeciesMainStat (uint16 stateId, uint16 speciesId) |
| DB2StorageBase const * | GetDB2Storage (uint32 type) |
| void | LoadDB2Stores (std::string const &dataPath) |
| typedef std::map<uint32, BattlePetAbilityEffectEntry const*> BattlePetAbilityEffectByTurnStore |
Definition at line 33 of file DB2Stores.h.
| typedef std::multimap<uint32, std::pair<uint32, uint8> > BattlePetAbilityTurnByAbilityStore |
Definition at line 30 of file DB2Stores.h.
| typedef std::map<uint8, float> BattlePetQualityMultiplierStore |
Definition at line 36 of file DB2Stores.h.
| typedef std::multimap<uint16, BattlePetSpeciesXAbilityEntry const*> BattlePetSpeciesXAbilityBySpeciesStore |
Definition at line 39 of file DB2Stores.h.
Definition at line 251 of file DB2Stores.cpp.
References BATTLE_PET_MAIN_STAT_DIV, BATTLE_PET_MAIN_STAT_OFFSET, BATTLE_PET_STATE_STAT_POWER, BATTLE_PET_STATE_STAT_SPEED, BATTLE_PET_STATE_STAT_STAMINA, BattlePetBreedStateEntry::BreedId, sBattlePetBreedStateStore, BattlePetBreedStateEntry::StateId, and BattlePetBreedStateEntry::Value.
Referenced by BattlePetPowerFromBattleState(), and BattlePet::CalculateStats().
| uint32 BattlePetGetSpeciesAbility | ( | uint16 | speciesId, |
| uint8 | abilitySlot, | ||
| uint16 | flags, | ||
| uint8 | level ) |
Definition at line 334 of file DB2Stores.cpp.
References BattlePetSpeciesXAbilityEntry::AbilityId, BATTLE_PET_ABILITY_SLOT_COUNT, BATTLE_PET_JOURNAL_FLAG_ABILITY_1, BattlePetSpeciesXAbilityEntry::RequiredLevel, sBattlePetSpeciesXAbilityBySpeciesStore, and BattlePetSpeciesXAbilityEntry::SlotId.
Referenced by Skyfire::BattlePetPackets::BuildInitialUpdatePetData(), and WorldSession::HandleBattlePetInput().
Definition at line 294 of file DB2Stores.cpp.
References sBattlePetSpeciesStore, and BattlePetSpeciesEntry::SpellId.
Referenced by WorldSession::HandleBattlePetSummonCompanion(), BattlePetMgr::ResummonLastBattlePet(), and BattlePetMgr::UpdateBattlePetCollectionAchievements().
| bool BattlePetHasSpeciesAbility | ( | uint16 | speciesId, |
| uint8 | abilitySlot, | ||
| bool | alternateAbility, | ||
| uint8 | level ) |
Definition at line 312 of file DB2Stores.cpp.
References BattlePetSpeciesXAbilityEntry::AbilityId, BATTLE_PET_ABILITY_SLOT_COUNT, BattlePetSpeciesXAbilityEntry::RequiredLevel, sBattlePetSpeciesXAbilityBySpeciesStore, and BattlePetSpeciesXAbilityEntry::SlotId.
Referenced by WorldSession::HandleBattlePetSetFlags().
| float BattlePetQualityMultiplier | ( | uint8 | quality | ) |
Definition at line 271 of file DB2Stores.cpp.
References ITEM_QUALITY_EPIC, ITEM_QUALITY_LEGENDARY, ITEM_QUALITY_NORMAL, ITEM_QUALITY_RARE, ITEM_QUALITY_UNCOMMON, and sBattlePetQualityMultiplierStore.
Referenced by BattlePetPowerFromBattleState(), and BattlePet::CalculateStats().
Definition at line 303 of file DB2Stores.cpp.
References BattlePetSpeciesEntry::Flags, and sBattlePetSpeciesStore.
Referenced by BattlePetMgr::CanCreateBattlePet(), BattlePetMgr::GetActivePetBattleTrapStatus(), WorldSession::HandleBattlePetDelete(), WorldSession::HandleBattlePetSetBattleSlot(), and ObjectMgr::LoadQuestObjectives().
Definition at line 231 of file DB2Stores.cpp.
References BATTLE_PET_MAIN_STAT_DIV, BATTLE_PET_MAIN_STAT_VALUE, BATTLE_PET_STATE_STAT_POWER, BATTLE_PET_STATE_STAT_SPEED, BATTLE_PET_STATE_STAT_STAMINA, BattlePetSpeciesStateEntry::Modifier, sBattlePetSpeciesStateStore, BattlePetSpeciesStateEntry::SpeciesId, and BattlePetSpeciesStateEntry::StateId.
Referenced by BattlePetPowerFromBattleState(), and BattlePet::CalculateStats().
| DB2StorageBase const * GetDB2Storage | ( | uint32 | type | ) |
Definition at line 218 of file DB2Stores.cpp.
References DB2Stores.
Referenced by WorldSession::HandleRequestHotfix().
| void LoadDB2Stores | ( | std::string const & | dataPath | ) |
Definition at line 115 of file DB2Stores.cpp.
References BattlePetAbilityTurnEntry::AbilityId, DB2FilesCount, BattlePetAbilityTurnEntry::Id, LoadDB2(), sBattlePetAbilityEffectByTurnStore, sBattlePetAbilityEffectStore, sBattlePetAbilityStateStore, sBattlePetAbilityStore, sBattlePetAbilityTurnByAbilityStore, sBattlePetAbilityTurnStore, sBattlePetBreedQualityStore, sBattlePetBreedSet, sBattlePetBreedStateStore, sBattlePetEffectPropertiesStore, sBattlePetItemXSpeciesStore, sBattlePetQualityMultiplierStore, sBattlePetSpeciesStateStore, sBattlePetSpeciesStore, sBattlePetSpeciesXAbilityBySpeciesStore, sBattlePetSpeciesXAbilityStore, sBattlePetStateStore, sBroadcastTextStore, SF_LOG_ERROR, SF_LOG_INFO, sItemCurrencyCostStore, sItemExtendedCostStore, sItemSparseStore, sItemStore, sItemToBattlePetStore, sKeyChainStore, BattlePetSpeciesXAbilityEntry::SpeciesId, sSceneScriptPackageStore, sSpellReagentsStore, BattlePetAbilityEffectEntry::TurnEntryId, and BattlePetAbilityTurnEntry::TurnIndex.
Referenced by World::SetInitialWorldSettings().
|
extern |
Definition at line 50 of file DB2Stores.cpp.
Referenced by LoadDB2Stores().
|
extern |
|
extern |
|
extern |
|
extern |
Definition at line 49 of file DB2Stores.cpp.
Referenced by BattlePetAbilityEffectForAbility(), and LoadDB2Stores().
|
extern |
|
extern |
|
extern |
Definition at line 47 of file DB2Stores.cpp.
Referenced by BattlePetMgr::Create(), ObjectMgr::LoadBattlePetBreedData(), LoadDB2Stores(), and BattlePetMgr::LoadFromDb().
|
extern |
|
extern |
|
extern |
Definition at line 48 of file DB2Stores.cpp.
Referenced by Player::CastItemUseSpell(), WorldSession::HandleBattlePetLearn(), ObjectMgr::LoadBattlePetItemToSpeciesData(), and LoadDB2Stores().
|
extern |
Definition at line 51 of file DB2Stores.cpp.
Referenced by BattlePetQualityMultiplier(), and LoadDB2Stores().
|
extern |
|
extern |
|
extern |
Definition at line 52 of file DB2Stores.cpp.
Referenced by BattlePetGetSpeciesAbility(), BattlePetHasSpeciesAbility(), and LoadDB2Stores().
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |