TrinityCore
PetDefines.h File Reference
#include "Define.h"
#include "Optional.h"
#include <array>
#include <string>
#include <vector>
+ Include dependency graph for PetDefines.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PetStable
 
struct  PetStable::PetInfo
 

Macros

#define MAX_ACTIVE_PETS   5
 
#define MAX_PET_STABLES   200
 
#define PET_FOLLOW_DIST   1.0f
 
#define PET_FOLLOW_ANGLE   float(M_PI)
 

Enumerations

enum  PetType : uint8 { SUMMON_PET = 0 , HUNTER_PET = 1 , MAX_PET_TYPE = 4 }
 
enum  PetSaveMode : int16 {
  PET_SAVE_AS_DELETED = -2 , PET_SAVE_AS_CURRENT = -3 , PET_SAVE_FIRST_ACTIVE_SLOT = 0 , PET_SAVE_LAST_ACTIVE_SLOT = PET_SAVE_FIRST_ACTIVE_SLOT + MAX_ACTIVE_PETS ,
  PET_SAVE_FIRST_STABLE_SLOT = 5 , PET_SAVE_LAST_STABLE_SLOT = PET_SAVE_FIRST_STABLE_SLOT + MAX_PET_STABLES , PET_SAVE_NOT_IN_SLOT = -1
}
 
enum  PetStableFlags : uint8 { PET_STABLE_ACTIVE = 0x1 , PET_STABLE_INACTIVE = 0x2 }
 
enum  PetSpellState { PETSPELL_UNCHANGED = 0 , PETSPELL_CHANGED = 1 , PETSPELL_NEW = 2 , PETSPELL_REMOVED = 3 }
 
enum  PetSpellType { PETSPELL_NORMAL = 0 , PETSPELL_FAMILY = 1 , PETSPELL_TALENT = 2 }
 
enum class  PetActionFeedback : uint8 {
  None = 0 , Dead = 1 , NoTarget = 2 , InvalidTarget = 3 ,
  NoPath = 4
}
 
enum  PetTalk { PET_TALK_SPECIAL_SPELL = 0 , PET_TALK_ATTACK = 1 }
 
enum class  PetTameResult : uint8 {
  Ok = 0 , InvalidCreature = 1 , TooMany = 2 , CreatureAlreadyOwned = 3 ,
  NotTameable = 4 , AnotherSummonActive = 5 , UnitsCantTame = 6 , NoPetAvailable = 7 ,
  InternalError = 8 , TooHighLevel = 9 , Dead = 10 , NotDead = 11 ,
  CantControlExotic = 12 , InvalidSlot = 13 , EliteTooHighLevel = 14
}
 
enum class  StableResult : uint8 {
  NotEnoughMoney = 1 , InvalidSlot = 3 , StableSuccess = 8 , UnstableSuccess = 9 ,
  BuySlotSuccess = 10 , CantControlExotic = 11 , InternalError = 12
}
 

Functions

constexpr bool IsActivePetSlot (PetSaveMode slot)
 
constexpr bool IsStabledPetSlot (PetSaveMode slot)
 

Variables

constexpr uint32 CALL_PET_SPELL_ID = 883
 
constexpr uint32 PET_SUMMONING_DISORIENTATION = 32752
 

Macro Definition Documentation

◆ MAX_ACTIVE_PETS

#define MAX_ACTIVE_PETS   5

Definition at line 36 of file PetDefines.h.

◆ MAX_PET_STABLES

#define MAX_PET_STABLES   200

Definition at line 37 of file PetDefines.h.

◆ PET_FOLLOW_ANGLE

#define PET_FOLLOW_ANGLE   float(M_PI)

Definition at line 98 of file PetDefines.h.

◆ PET_FOLLOW_DIST

#define PET_FOLLOW_DIST   1.0f

Definition at line 97 of file PetDefines.h.

Enumeration Type Documentation

◆ PetActionFeedback

enum class PetActionFeedback : uint8
strong
Enumerator
None 
Dead 
NoTarget 
InvalidTarget 
NoPath 

Definition at line 82 of file PetDefines.h.

◆ PetSaveMode

Enumerator
PET_SAVE_AS_DELETED 
PET_SAVE_AS_CURRENT 
PET_SAVE_FIRST_ACTIVE_SLOT 
PET_SAVE_LAST_ACTIVE_SLOT 
PET_SAVE_FIRST_STABLE_SLOT 
PET_SAVE_LAST_STABLE_SLOT 
PET_SAVE_NOT_IN_SLOT 

Definition at line 40 of file PetDefines.h.

◆ PetSpellState

Enumerator
PETSPELL_UNCHANGED 
PETSPELL_CHANGED 
PETSPELL_NEW 
PETSPELL_REMOVED 

Definition at line 67 of file PetDefines.h.

◆ PetSpellType

Enumerator
PETSPELL_NORMAL 
PETSPELL_FAMILY 
PETSPELL_TALENT 

Definition at line 75 of file PetDefines.h.

◆ PetStableFlags

Enumerator
PET_STABLE_ACTIVE 
PET_STABLE_INACTIVE 

Definition at line 61 of file PetDefines.h.

◆ PetTalk

enum PetTalk
Enumerator
PET_TALK_SPECIAL_SPELL 
PET_TALK_ATTACK 

Definition at line 91 of file PetDefines.h.

◆ PetTameResult

enum class PetTameResult : uint8
strong
Enumerator
Ok 
InvalidCreature 
TooMany 
CreatureAlreadyOwned 
NotTameable 
AnotherSummonActive 
UnitsCantTame 
NoPetAvailable 
InternalError 
TooHighLevel 
Dead 
NotDead 
CantControlExotic 
InvalidSlot 
EliteTooHighLevel 

Definition at line 100 of file PetDefines.h.

◆ PetType

enum PetType : uint8
Enumerator
SUMMON_PET 
HUNTER_PET 
MAX_PET_TYPE 

Definition at line 29 of file PetDefines.h.

◆ StableResult

enum class StableResult : uint8
strong
Enumerator
NotEnoughMoney 
InvalidSlot 
StableSuccess 
UnstableSuccess 
BuySlotSuccess 
CantControlExotic 
InternalError 

Definition at line 119 of file PetDefines.h.

Function Documentation

◆ IsActivePetSlot()

constexpr bool IsActivePetSlot ( PetSaveMode  slot)
constexpr

Definition at line 51 of file PetDefines.h.

+ Here is the caller graph for this function:

◆ IsStabledPetSlot()

constexpr bool IsStabledPetSlot ( PetSaveMode  slot)
constexpr

Definition at line 56 of file PetDefines.h.

+ Here is the caller graph for this function:

Variable Documentation

◆ CALL_PET_SPELL_ID

constexpr uint32 CALL_PET_SPELL_ID = 883
constexpr

Definition at line 130 of file PetDefines.h.

◆ PET_SUMMONING_DISORIENTATION

constexpr uint32 PET_SUMMONING_DISORIENTATION = 32752
constexpr

Definition at line 131 of file PetDefines.h.