![]() |
TrinityCore
|
#include <PetDefines.h>
Classes | |
| struct | PetInfo |
Public Member Functions | |
| PetInfo * | GetCurrentPet () |
| PetInfo const * | GetCurrentPet () const |
| Optional< uint32 > | GetCurrentActivePetIndex () const |
| void | SetCurrentActivePetIndex (uint32 index) |
| Optional< uint32 > | GetCurrentUnslottedPetIndex () const |
| void | SetCurrentUnslottedPetIndex (uint32 index) |
Public Attributes | |
| Optional< uint32 > | CurrentPetIndex |
| std::array< Optional< PetInfo >, MAX_ACTIVE_PETS > | ActivePets |
| std::array< Optional< PetInfo >, MAX_PET_STABLES > | StabledPets |
| std::vector< PetInfo > | UnslottedPets |
Static Private Attributes | |
| static constexpr uint32 | UnslottedPetIndexMask = 0x80000000 |
Definition at line 144 of file PetDefines.h.
Definition at line 188 of file PetDefines.h.
References CurrentPetIndex, and UnslottedPetIndexMask.
Referenced by GetCurrentPet(), Pet::GetLoadPetInfo(), Unit::InitTamedPet(), Pet::SavePetToDB(), and Player::SetPetSlot().
|
inline |
Definition at line 173 of file PetDefines.h.
References GetCurrentPet().
Referenced by GetCurrentPet(), WorldSession::HandlePetRename(), Pet::LoadPetFromDB(), Pet::SavePetToDB(), and Player::SummonPet().
|
inline |
Definition at line 174 of file PetDefines.h.
References ActivePets, CurrentPetIndex, GetCurrentActivePetIndex(), GetCurrentUnslottedPetIndex(), and UnslottedPets.
Definition at line 190 of file PetDefines.h.
References CurrentPetIndex, and UnslottedPetIndexMask.
Referenced by GetCurrentPet().
|
inline |
Definition at line 189 of file PetDefines.h.
References CurrentPetIndex.
Referenced by Unit::InitTamedPet(), and Pet::LoadPetFromDB().
|
inline |
Definition at line 191 of file PetDefines.h.
References CurrentPetIndex, and UnslottedPetIndexMask.
Referenced by Pet::LoadPetFromDB(), and Player::SummonPet().
| std::array<Optional<PetInfo>, MAX_ACTIVE_PETS> PetStable::ActivePets |
Definition at line 169 of file PetDefines.h.
Referenced by Spell::CheckCast(), Spell::EffectResurrectPet(), GetCurrentPet(), Pet::GetLoadPetInfo(), Unit::InitTamedPet(), Pet::LoadPetFromDB(), and Player::SetPetSlot().
Definition at line 168 of file PetDefines.h.
Referenced by GetCurrentActivePetIndex(), GetCurrentPet(), GetCurrentUnslottedPetIndex(), Pet::LoadPetFromDB(), SetCurrentActivePetIndex(), SetCurrentUnslottedPetIndex(), Player::SetPetSlot(), and Player::SummonPet().
| std::array<Optional<PetInfo>, MAX_PET_STABLES> PetStable::StabledPets |
Definition at line 170 of file PetDefines.h.
Referenced by Pet::GetLoadPetInfo(), and Player::SetPetSlot().
|
staticconstexprprivate |
Definition at line 194 of file PetDefines.h.
Referenced by GetCurrentActivePetIndex(), GetCurrentUnslottedPetIndex(), and SetCurrentUnslottedPetIndex().
| std::vector<PetInfo> PetStable::UnslottedPets |
Definition at line 171 of file PetDefines.h.
Referenced by GetCurrentPet(), Pet::GetLoadPetInfo(), Pet::LoadPetFromDB(), and Player::SummonPet().