OregonCore  revision fb2a440-git
Your Favourite TBC server
DBCEnums.h
Go to the documentation of this file.
1 /*
2  * This file is part of the OregonCore Project. See AUTHORS file for Copyright information
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License as published by the
6  * Free Software Foundation; either version 2 of the License, or (at your
7  * option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef DBCENUMS_H
19 #define DBCENUMS_H
20 
21 // Client expected level limitation, like as used in DBC item max levels for "until max player level"
22 // use as default max player level, must be fit max level for used client
23 // also see MAX_LEVEL and STRONG_MAX_LEVEL define
24 #define DEFAULT_MAX_LEVEL 70
25 
26 // client supported max level for player/pets/etc. Avoid overflow or client stability affected.
27 // also see GT_MAX_LEVEL define
28 #define MAX_LEVEL 100
29 
30 // Server side limitation. Base at used code requirements.
31 // also see MAX_LEVEL and GT_MAX_LEVEL define
32 #define STRONG_MAX_LEVEL 255
33 
34 #pragma pack(push, 1)
35 
37 {
38  float X;
39  float Y;
40 };
41 
43 {
44  float X;
45  float Y;
46  float Z;
47 };
48 
49 #pragma pack(pop)
50 
52 {
56 };
57 
59 {
60  AREA_FLAG_SNOW = 0x00000001, // snow (only Dun Morogh, Naxxramas, Razorfen Downs and Winterspring)
61  AREA_FLAG_UNK1 = 0x00000002, // may be necropolis?
62  AREA_FLAG_UNK2 = 0x00000004, // Only used for areas on map 571 (development before)
63  AREA_FLAG_SLAVE_CAPITAL = 0x00000008, // city and city subsones
64  AREA_FLAG_UNK3 = 0x00000010, // can't find common meaning
65  AREA_FLAG_SLAVE_CAPITAL2 = 0x00000020, // slave capital city flag?
66  AREA_FLAG_ALLOW_DUELS = 0x00000040, // allow to duel here
67  AREA_FLAG_ARENA = 0x00000080, // arena, both instanced and world arenas
68  AREA_FLAG_CAPITAL = 0x00000100, // main capital city flag
69  AREA_FLAG_CITY = 0x00000200, // only for one zone named "City" (where it located?)
70  AREA_FLAG_OUTLAND = 0x00000400, // expansion zones? (only Eye of the Storm not have this flag, but have 0x00004000 flag)
71  AREA_FLAG_SANCTUARY = 0x00000800, // sanctuary area (PvP disabled)
72  AREA_FLAG_NEED_FLY = 0x00001000, // only Netherwing Ledge, Socrethar's Seat, Tempest Keep, The Arcatraz, The Botanica, The Mechanar, Sorrow Wing Point, Dragonspine Ridge, Netherwing Mines, Dragonmaw Base Camp, Dragonmaw Skyway
73  AREA_FLAG_UNUSED1 = 0x00002000, // not used now (no area/zones with this flag set in 3.0.3)
74  AREA_FLAG_OUTLAND2 = 0x00004000, // expansion zones? (only Circle of Blood Arena not have this flag, but have 0x00000400 flag)
75  AREA_FLAG_PVP = 0x00008000, // pvp objective area? (Death's Door also has this flag although it's no pvp object area)
76  AREA_FLAG_ARENA_INSTANCE = 0x00010000, // used by instanced arenas only
77  AREA_FLAG_UNUSED2 = 0x00020000, // not used now (no area/zones with this flag set in 3.0.3)
78  AREA_FLAG_UNK5 = 0x00040000, // only used for Amani Pass, Hatchet Hills
79  AREA_FLAG_LOWLEVEL = 0x00100000, // used for some starting areas with area_level <= 15
80  AREA_FLAG_INSIDE = 0x02000000, // used for determinating spell related inside/outside questions in Map::IsOutdoors
81  AREA_FLAG_OUTSIDE = 0x04000000, // used for determinating spell related inside/outside questions in Map::IsOutdoors
82 };
83 
85 {
86  FACTION_TEMPLATE_FLAG_PVP = 0x00000800, // flagged for PvP
87  FACTION_TEMPLATE_FLAG_CONTESTED_GUARD = 0x00001000, // faction will attack players that were involved in PvP combats
89 };
90 
92 {
93  FACTION_MASK_PLAYER = 1, // any player
94  FACTION_MASK_ALLIANCE = 2, // player or creature from alliance team
95  FACTION_MASK_HORDE = 4, // player or creature from horde team
96  FACTION_MASK_MONSTER = 8 // aggressive creature from monster team
97  // if none flags set then non-aggressive creature
98 };
99 
101 {
104  MAP_RAID = 2,
107 };
108 
110 {
113 };
114 
116 {
124 };
125 
127 {
134 };
135 
137 {
145 };
146 
147 #endif
148 
AreaTeams
Definition: DBCEnums.h:51
FactionTemplateFlags
Definition: DBCEnums.h:84
AbilytyLearnType
Definition: DBCEnums.h:109
AreaFlags
Definition: DBCEnums.h:58
TotemCategoryType
Definition: DBCEnums.h:136
FactionMasks
Definition: DBCEnums.h:91
MapTypes
Definition: DBCEnums.h:100
ItemEnchantmentAuraId
Definition: DBCEnums.h:126
ItemEnchantmentType
Definition: DBCEnums.h:115