|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <CharacterBoost.h>
Public Member Functions | |
| CharacterBooster (WorldSession *session) | |
| uint32 | GetCurrentAction () const |
| uint32 | GetGuidLow () const |
| void | HandleCharacterBoost () |
| bool | IsBoosting (uint32 lowGuid) const |
| void | SetBoostedCharInfo (uint64 guid, uint32 action, uint32 specialization, bool allianceFaction) |
| void | Update (uint32 diff) |
Private Member Functions | |
| std::string | _EquipItems (SQLTransaction &trans, SlotEquipmentMap const *itemsToEquip) const |
| SlotEquipmentMap const * | _GetCharBoostItems (std::vector< std::pair< uint32, uint32 > > &itemsToMail) const |
| uint8 | _GetRace () const |
| void | _HandleCharacterBoost () const |
| void | _LearnSpells (SQLTransaction &trans, uint8 const &raceId, uint8 const &classId) const |
| void | _MailEquipedItems (SQLTransaction &trans) const |
| uint32 | _PrepareMail (SQLTransaction &trans, std::string const &subject, std::string const &body) const |
| void | _SaveBoostedChar (SQLTransaction &trans, std::string const &items, uint8 const &raceId, uint8 const &classId) const |
| void | _SendCharBoostPacket (SlotEquipmentMap const *items) const |
| void | _SendMail (SQLTransaction &trans, std::vector< std::pair< uint32, uint32 > > const &items) const |
| std::string | _SetSpecialization (SQLTransaction &trans, uint8 const &classId) const |
Private Attributes | |
| bool | m_boosting |
| CharacterBoostData | m_charBoostInfo |
| bool | m_sendPacket |
| WorldSession * | m_session |
| uint32 | m_timer |
Definition at line 571 of file CharacterBoost.h.
| CharacterBooster::CharacterBooster | ( | WorldSession * | session | ) |
Definition at line 10 of file CharacterBoost.cpp.
References m_boosting, m_sendPacket, m_session, and m_timer.
|
private |
Definition at line 309 of file CharacterBoost.cpp.
References CHAR_INS_CHAR_INVENTORY, CharacterDatabase, Item::CreateItem(), INVENTORY_SLOT_BAG_END, m_charBoostInfo, PreparedStatement::setUInt32(), PreparedStatement::setUInt8(), and sObjectAccessor.
Referenced by _HandleCharacterBoost().
|
private |
Definition at line 12 of file CharacterBoost.cpp.
References deathKnightEquipmentBlood, deathKnightEquipmentFrost, deathKnightEquipmentUnholy, druidEquipmentBalance, druidEquipmentFeral, druidEquipmentRestoration, hunterEquipment, LEMON_FLAVOUR_PUDING_COUNT, LEMON_FLAVOUR_PUDING_ID, m_charBoostInfo, mageEquipment, monkEquipmentBrewmaster, monkEquipmentMistweaver, monkEquipmentWindwalker, paladinEquipmentHoly, paladinEquipmentProtection, paladinEquipmentRetribution, priestEquipmentDisciplineAndHoly, priestEquipmentShadow, rogueEquipmentAssassionation, rogueEquipmentCombat, shamanEquipmentElemental, shamanEquipmentEnhancement, shamanEquipmentRestoration, SPEC_DEATH_KNIGHT_BLOOD, SPEC_DEATH_KNIGHT_FROST, SPEC_DEATH_KNIGHT_UNHOLY, SPEC_DRUID_BALANCE, SPEC_DRUID_FERAL, SPEC_DRUID_GUARDIAN, SPEC_DRUID_RESTORATION, SPEC_HUNTER_BEAST_MASTERY, SPEC_HUNTER_MARKSMANSHIP, SPEC_HUNTER_SURVIVAL, SPEC_MAGE_ARCANE, SPEC_MAGE_FIRE, SPEC_MAGE_FROST, SPEC_MONK_BREWMASTER, SPEC_MONK_MISTWEAVER, SPEC_MONK_WINDWALKER, SPEC_PALADIN_HOLY, SPEC_PALADIN_PROTECTION, SPEC_PALADIN_RETRIBUTION, SPEC_PRIEST_DISCIPLINE, SPEC_PRIEST_HOLY, SPEC_PRIEST_SHADOW, SPEC_ROGUE_ASSASSINATION, SPEC_ROGUE_COMBAT, SPEC_ROGUE_SUBTLETY, SPEC_SHAMAN_ELEMENTAL, SPEC_SHAMAN_ENHANCEMENT, SPEC_SHAMAN_RESTORATION, SPEC_WARLOCK_AFFLICTION, SPEC_WARLOCK_DEMONOLOGY, SPEC_WARLOCK_DESTRUCTION, SPEC_WARRIOR_ARMS, SPEC_WARRIOR_FURY, SPEC_WARRIOR_PROTECTION, warlockEquipment, warriorEquipmentArms, warriorEquipmentFury, and warriorEquipmentProtection.
Referenced by _HandleCharacterBoost().
|
private |
Definition at line 293 of file CharacterBoost.cpp.
References CHAR_SEL_CHAR_RACE, CharacterDatabase, m_charBoostInfo, RACE_PANDAREN_ALLIANCE, RACE_PANDAREN_HORDE, RACE_PANDAREN_NEUTRAL, and PreparedStatement::setUInt32().
Referenced by _HandleCharacterBoost().
|
private |
Definition at line 368 of file CharacterBoost.cpp.
References _EquipItems(), _GetCharBoostItems(), _GetRace(), _LearnSpells(), _MailEquipedItems(), _SaveBoostedChar(), _SendCharBoostPacket(), _SendMail(), CharacterDatabase, embersilkBags, m_charBoostInfo, m_session, and sChrSpecializationStore.
Referenced by Update().
|
private |
Definition at line 242 of file CharacterBoost.cpp.
References CHAR_INS_CHAR_SPELL, CharacterDatabase, CharBoostSpells, CLASS_PALADIN, CLASS_WARRIOR, m_charBoostInfo, PANDAREN_FACTION_LANGUAGE_COUNT, pandarenLanguageSpellsAlliance, pandarenLanguageSpellsHorde, PLATE_MAIL_ARMOR_SPELL, RACE_PANDAREN_ALLIANCE, RACE_PANDAREN_HORDE, PreparedStatement::setBool(), PreparedStatement::setUInt32(), SWIFT_PURPLE_GRYPGON_SPELL, and SWIFT_PURPLE_WIND_RIDER_SPELL.
Referenced by _HandleCharacterBoost().
|
private |
Definition at line 159 of file CharacterBoost.cpp.
References _PrepareMail(), CHAR_DEL_CHAR_INVENTORY_UNTIL_BAG_SLOT, CHAR_INS_MAIL_ITEM, CHAR_SEL_CHAR_INVENTORY_ITEM_GUID_UNTIL_BAG_SLOT, CharacterDatabase, CHARRACTER_BOOST_EQUIPED_ITEMS_MAIL_BODY, CHARRACTER_BOOST_EQUIPED_ITEMS_MAIL_SUBJECT, EQUIPMENT_SLOT_END, m_charBoostInfo, PreparedStatement::setUInt32(), and PreparedStatement::setUInt8().
Referenced by _HandleCharacterBoost().
|
private |
Definition at line 108 of file CharacterBoost.cpp.
References CHAR_INS_MAIL, CharacterDatabase, DAY, m_charBoostInfo, MAIL_NORMAL, MAIL_STATIONERY_DEFAULT, PreparedStatement::setBool(), PreparedStatement::setInt8(), PreparedStatement::setString(), PreparedStatement::setUInt16(), PreparedStatement::setUInt32(), PreparedStatement::setUInt64(), PreparedStatement::setUInt8(), and sObjectMgr.
Referenced by _MailEquipedItems(), and _SendMail().
|
private |
Definition at line 347 of file CharacterBoost.cpp.
References _SetSpecialization(), AT_LOGIN_FIRST, CHAR_UPD_CHARACTER_BOOST, CharacterDatabase, CONFIG_BOOST_START_LEVEL, CONFIG_BOOST_START_MONEY, m_charBoostInfo, PreparedStatement::setFloat(), PreparedStatement::setString(), PreparedStatement::setUInt16(), PreparedStatement::setUInt32(), PreparedStatement::setUInt64(), PreparedStatement::setUInt8(), startPosition, sWorld, and VALE_OF_ETERNAL_BLOSSOMS_MAP_ID.
Referenced by _HandleCharacterBoost().
|
private |
Definition at line 87 of file CharacterBoost.cpp.
References ByteBuffer::FlushBits(), m_charBoostInfo, m_session, SMSG_BATTLE_PAY_BOOST_ITEMS, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by _HandleCharacterBoost().
|
private |
Definition at line 133 of file CharacterBoost.cpp.
References _PrepareMail(), CHAR_INS_MAIL_ITEM, CharacterDatabase, CHARRACTER_BOOST_EQUIPED_ITEMS_MAIL_BODY, CHARRACTER_BOOST_EQUIPED_ITEMS_MAIL_SUBJECT, Item::CreateItem(), m_charBoostInfo, PreparedStatement::setUInt32(), and sObjectAccessor.
Referenced by _HandleCharacterBoost().
|
private |
Definition at line 201 of file CharacterBoost.cpp.
References CHAR_DEL_CHAR_SPELL_BY_SPELL, CHAR_DEL_CHAR_TALENT, CHAR_SEL_CHAR_TALENT, CharacterDatabase, GetClassSpecializations(), GetSpecializationSpells(), m_charBoostInfo, MAX_TALENT_TABS, and PreparedStatement::setUInt32().
Referenced by _SaveBoostedChar().
|
inline |
Definition at line 576 of file CharacterBoost.h.
References m_charBoostInfo.
|
inline |
Definition at line 577 of file CharacterBoost.h.
References m_charBoostInfo.
| void CharacterBooster::HandleCharacterBoost | ( | ) |
Definition at line 398 of file CharacterBoost.cpp.
References CHARACTER_BOOST, CHARACTER_BOOST_APPLIED, CHARACTER_BOOST_BONUS_TEXT, CHARACTER_BOOST_BONUS_TEXT2, CHARACTER_BOOST_ITEMS, CHARACTER_BOOST_TEXT_ID, m_charBoostInfo, m_sendPacket, m_session, and m_timer.
|
inline |
Definition at line 579 of file CharacterBoost.h.
References m_boosting, and m_charBoostInfo.
| void CharacterBooster::SetBoostedCharInfo | ( | uint64 | guid, |
| uint32 | action, | ||
| uint32 | specialization, | ||
| bool | allianceFaction ) |
Definition at line 422 of file CharacterBoost.cpp.
References GUID_LOPART(), m_boosting, and m_charBoostInfo.
| void CharacterBooster::Update | ( | uint32 | diff | ) |
Definition at line 432 of file CharacterBoost.cpp.
References _HandleCharacterBoost(), m_sendPacket, and m_timer.
|
private |
Definition at line 599 of file CharacterBoost.h.
Referenced by CharacterBooster(), IsBoosting(), and SetBoostedCharInfo().
|
private |
Definition at line 596 of file CharacterBoost.h.
Referenced by _EquipItems(), _GetCharBoostItems(), _GetRace(), _HandleCharacterBoost(), _LearnSpells(), _MailEquipedItems(), _PrepareMail(), _SaveBoostedChar(), _SendCharBoostPacket(), _SendMail(), _SetSpecialization(), GetCurrentAction(), GetGuidLow(), HandleCharacterBoost(), IsBoosting(), and SetBoostedCharInfo().
|
private |
Definition at line 600 of file CharacterBoost.h.
Referenced by CharacterBooster(), HandleCharacterBoost(), and Update().
|
private |
Definition at line 597 of file CharacterBoost.h.
Referenced by _HandleCharacterBoost(), _SendCharBoostPacket(), CharacterBooster(), and HandleCharacterBoost().
|
private |
Definition at line 598 of file CharacterBoost.h.
Referenced by CharacterBooster(), HandleCharacterBoost(), and Update().