TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
PetDefines.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
3  * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License as published by the
7  * Free Software Foundation; either version 2 of the License, or (at your
8  * option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13  * more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef TRINITYCORE_PET_DEFINES_H
20 #define TRINITYCORE_PET_DEFINES_H
21 
22 enum PetType
23 {
27 };
28 
29 #define MAX_PET_STABLES 4
30 
31 // stored in character_pet.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 };
40 
42 {
43  UNHAPPY = 1,
44  CONTENT = 2,
45  HAPPY = 3
46 };
47 
49 {
54 };
55 
57 {
61 };
62 
64 {
69 };
70 
71 enum PetTalk
72 {
75 };
76 
77 #define PET_FOLLOW_DIST 1.0f
78 #define PET_FOLLOW_ANGLE float(M_PI/2)
79 
80 #endif
Definition: PetDefines.h:24
Definition: PetDefines.h:67
Definition: PetDefines.h:74
Definition: PetDefines.h:52
#define MAX_PET_STABLES
Definition: PetDefines.h:29
Definition: PetDefines.h:25
Definition: PetDefines.h:65
Definition: PetDefines.h:35
Definition: PetDefines.h:58
Definition: PetDefines.h:43
PetSaveMode
Definition: PetDefines.h:32
Definition: PetDefines.h:45
Definition: PetDefines.h:36
PetTalk
Definition: PetDefines.h:71
Definition: PetDefines.h:26
Definition: PetDefines.h:60
Definition: PetDefines.h:51
Definition: PetDefines.h:53
ActionFeedback
Definition: PetDefines.h:63
Definition: PetDefines.h:59
Definition: PetDefines.h:68
Definition: PetDefines.h:50
HappinessState
Definition: PetDefines.h:41
PetSpellType
Definition: PetDefines.h:56
Definition: PetDefines.h:38
Definition: PetDefines.h:44
Definition: PetDefines.h:34
Definition: PetDefines.h:73
PetSpellState
Definition: PetDefines.h:48
PetType
Definition: PetDefines.h:22
Definition: PetDefines.h:37
Definition: PetDefines.h:66