TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
PetDefines.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_PET_STABLES   4
 
#define PET_FOLLOW_DIST   1.0f
 
#define PET_FOLLOW_ANGLE   float(M_PI/2)
 

Enumerations

enum  PetType { SUMMON_PET = 0, HUNTER_PET = 1, MAX_PET_TYPE = 4 }
 
enum  PetSaveMode {
  PET_SAVE_AS_DELETED = -1, PET_SAVE_AS_CURRENT = 0, PET_SAVE_FIRST_STABLE_SLOT = 1, PET_SAVE_LAST_STABLE_SLOT = MAX_PET_STABLES,
  PET_SAVE_NOT_IN_SLOT = 100
}
 
enum  HappinessState { UNHAPPY = 1, CONTENT = 2, HAPPY = 3 }
 
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  ActionFeedback { FEEDBACK_NONE = 0, FEEDBACK_PET_DEAD = 1, FEEDBACK_NOTHING_TO_ATT = 2, FEEDBACK_CANT_ATT_TARGET = 3 }
 
enum  PetTalk { PET_TALK_SPECIAL_SPELL = 0, PET_TALK_ATTACK = 1 }
 

Macro Definition Documentation

#define MAX_PET_STABLES   4
#define PET_FOLLOW_ANGLE   float(M_PI/2)
#define PET_FOLLOW_DIST   1.0f

Enumeration Type Documentation

Enumerator
FEEDBACK_NONE 
FEEDBACK_PET_DEAD 
FEEDBACK_NOTHING_TO_ATT 
FEEDBACK_CANT_ATT_TARGET 
64 {
65  FEEDBACK_NONE = 0,
69 };
Definition: PetDefines.h:67
Definition: PetDefines.h:65
Definition: PetDefines.h:68
Definition: PetDefines.h:66
Enumerator
UNHAPPY 
CONTENT 
HAPPY 
42 {
43  UNHAPPY = 1,
44  CONTENT = 2,
45  HAPPY = 3
46 };
Definition: PetDefines.h:43
Definition: PetDefines.h:45
Definition: PetDefines.h:44
Enumerator
PET_SAVE_AS_DELETED 
PET_SAVE_AS_CURRENT 
PET_SAVE_FIRST_STABLE_SLOT 
PET_SAVE_LAST_STABLE_SLOT 
PET_SAVE_NOT_IN_SLOT 
33 {
34  PET_SAVE_AS_DELETED = -1, // not saved in fact
35  PET_SAVE_AS_CURRENT = 0, // in current slot (with player)
37  PET_SAVE_LAST_STABLE_SLOT = MAX_PET_STABLES, // last in DB stable slot index (including), all higher have same meaning as PET_SAVE_NOT_IN_SLOT
38  PET_SAVE_NOT_IN_SLOT = 100 // for avoid conflict with stable size grow will use 100
39 };
#define MAX_PET_STABLES
Definition: PetDefines.h:29
Definition: PetDefines.h:35
Definition: PetDefines.h:36
Definition: PetDefines.h:38
Definition: PetDefines.h:34
Definition: PetDefines.h:37
Enumerator
PETSPELL_UNCHANGED 
PETSPELL_CHANGED 
PETSPELL_NEW 
PETSPELL_REMOVED 
49 {
51  PETSPELL_CHANGED = 1,
52  PETSPELL_NEW = 2,
54 };
Definition: PetDefines.h:52
Definition: PetDefines.h:51
Definition: PetDefines.h:53
Definition: PetDefines.h:50
Enumerator
PETSPELL_NORMAL 
PETSPELL_FAMILY 
PETSPELL_TALENT 
57 {
58  PETSPELL_NORMAL = 0,
59  PETSPELL_FAMILY = 1,
60  PETSPELL_TALENT = 2
61 };
Definition: PetDefines.h:58
Definition: PetDefines.h:60
Definition: PetDefines.h:59
enum PetTalk
Enumerator
PET_TALK_SPECIAL_SPELL 
PET_TALK_ATTACK 
72 {
74  PET_TALK_ATTACK = 1
75 };
Definition: PetDefines.h:74
Definition: PetDefines.h:73
enum PetType
Enumerator
SUMMON_PET 
HUNTER_PET 
MAX_PET_TYPE 
23 {
24  SUMMON_PET = 0,
25  HUNTER_PET = 1,
26  MAX_PET_TYPE = 4
27 };
Definition: PetDefines.h:24
Definition: PetDefines.h:25
Definition: PetDefines.h:26