AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
PetStable Class Reference

#include "PetDefines.h"

Classes

struct  PetInfo
 

Public Member Functions

PetInfo const * GetUnslottedHunterPet () const
 

Public Attributes

Optional< PetInfoCurrentPet
 
std::array< Optional< PetInfo >, MAX_PET_STABLESStabledPets
 
uint32 MaxStabledPets = 0
 
std::vector< PetInfoUnslottedPets
 

Detailed Description

Member Function Documentation

◆ GetUnslottedHunterPet()

PetInfo const * PetStable::GetUnslottedHunterPet ( ) const
inline
231 {
232 return UnslottedPets.size() == 1 && UnslottedPets[0].Type == HUNTER_PET ? &UnslottedPets[0] : nullptr;
233 }
@ HUNTER_PET
Definition: PetDefines.h:32
std::vector< PetInfo > UnslottedPets
Definition: PetDefines.h:228

References HUNTER_PET, and UnslottedPets.

Referenced by Player::CanPetResurrect(), spell_hun_tame_beast::CheckCast(), Unit::InitTamedPet(), Player::IsExistPet(), WorldSession::SendStablePet(), and Player::SummonPet().

Member Data Documentation

◆ CurrentPet

◆ MaxStabledPets

◆ StabledPets

◆ UnslottedPets