TrinityCore
PetStable Class Reference

#include <PetDefines.h>

Classes

struct  PetInfo
 

Public Member Functions

PetInfoGetCurrentPet ()
 
PetInfo const * GetCurrentPet () const
 
Optional< uint32GetCurrentActivePetIndex () const
 
void SetCurrentActivePetIndex (uint32 index)
 
Optional< uint32GetCurrentUnslottedPetIndex () const
 
void SetCurrentUnslottedPetIndex (uint32 index)
 

Public Attributes

Optional< uint32CurrentPetIndex
 
std::array< Optional< PetInfo >, MAX_ACTIVE_PETSActivePets
 
std::array< Optional< PetInfo >, MAX_PET_STABLESStabledPets
 
std::vector< PetInfoUnslottedPets
 

Static Private Attributes

static constexpr uint32 UnslottedPetIndexMask = 0x80000000
 

Detailed Description

Definition at line 133 of file PetDefines.h.

Member Function Documentation

◆ GetCurrentActivePetIndex()

Optional< uint32 > PetStable::GetCurrentActivePetIndex ( ) const
inline

Definition at line 177 of file PetDefines.h.

+ Here is the caller graph for this function:

◆ GetCurrentPet() [1/2]

PetInfo * PetStable::GetCurrentPet ( )
inline

Definition at line 162 of file PetDefines.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCurrentPet() [2/2]

PetInfo const * PetStable::GetCurrentPet ( ) const
inline

Definition at line 163 of file PetDefines.h.

+ Here is the call graph for this function:

◆ GetCurrentUnslottedPetIndex()

Optional< uint32 > PetStable::GetCurrentUnslottedPetIndex ( ) const
inline

Definition at line 179 of file PetDefines.h.

+ Here is the caller graph for this function:

◆ SetCurrentActivePetIndex()

void PetStable::SetCurrentActivePetIndex ( uint32  index)
inline

Definition at line 178 of file PetDefines.h.

+ Here is the caller graph for this function:

◆ SetCurrentUnslottedPetIndex()

void PetStable::SetCurrentUnslottedPetIndex ( uint32  index)
inline

Definition at line 180 of file PetDefines.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ ActivePets

std::array<Optional<PetInfo>, MAX_ACTIVE_PETS> PetStable::ActivePets

Definition at line 158 of file PetDefines.h.

◆ CurrentPetIndex

Optional<uint32> PetStable::CurrentPetIndex

Definition at line 157 of file PetDefines.h.

◆ StabledPets

std::array<Optional<PetInfo>, MAX_PET_STABLES> PetStable::StabledPets

Definition at line 159 of file PetDefines.h.

◆ UnslottedPetIndexMask

constexpr uint32 PetStable::UnslottedPetIndexMask = 0x80000000
staticconstexprprivate

Definition at line 183 of file PetDefines.h.

◆ UnslottedPets

std::vector<PetInfo> PetStable::UnslottedPets

Definition at line 160 of file PetDefines.h.


The documentation for this class was generated from the following file: