TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
zulaman.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
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 DEF_ZULAMAN_H
19 #define DEF_ZULAMAN_H
20 
22 #define ZulAmanScriptName "instance_zulaman"
23 #define DataHeader "ZA"
24 
26 {
27  // BossState
34 
35  // Data64
37 
40 
41  // SetData
43 };
44 
46 {
47  NPC_AKILZON = 23574,
48  NPC_NALORAKK = 23576,
49  NPC_JANALAI = 23578,
50  NPC_HALAZZI = 23577,
51  NPC_HEXLORD = 24239,
52  NPC_DAAKARA = 23863,
53 
54  NPC_VOLJIN = 52924,
56 };
57 
59 {
60  GO_STRANGE_GONG = 187359,
61  GO_MASSIVE_GATE = 186728,
62 };
63 
65 {
68 };
69 
71 {
73 };
74 
76 {
79 };
80 
81 template<class AI>
83 {
84  if (InstanceMap* instance = creature->GetMap()->ToInstanceMap())
85  if (instance->GetInstanceScript())
86  if (instance->GetScriptId() == sObjectMgr->GetScriptId(ZulAmanScriptName))
87  return new AI(creature);
88  return NULL;
89 }
90 
91 #endif
Definition: zulaman.h:52
Map * GetMap() const
Definition: Object.h:543
Definition: zulaman.h:50
Definition: zulaman.h:61
Definition: zulaman.h:42
Definition: zulaman.h:66
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: zulaman.h:48
DataTypes
Definition: baradin_hold.h:30
Definition: zulaman.h:54
GameObjectIds
Definition: baradin_hold.h:48
Definition: Creature.h:467
Definition: zulaman.h:39
#define sObjectMgr
Definition: ObjectMgr.h:1567
Definition: zulaman.h:60
Definition: zulaman.h:67
Definition: zulaman.h:55
ZulAmanEvents
Definition: zulaman.h:64
Definition: Map.h:758
#define ZulAmanScriptName
Definition: zulaman.h:22
Definition: zulaman.h:36
Definition: zulaman.h:28
uint32 const EncounterCount
Definition: zulaman.h:21
Definition: zulaman.h:31
InstanceMap * ToInstanceMap()
Definition: Map.h:495
Definition: CreatureAI.h:68
uint32_t uint32
Definition: Define.h:150
Definition: zulaman.h:72
CreatureAI * GetZulAmanAI(Creature *creature)
Definition: zulaman.h:82
Definition: zulaman.h:30
Definition: zulaman.h:77
ZulAmanWorldStates
Definition: zulaman.h:75
Definition: zulaman.h:32
Definition: zulaman.h:38
Definition: zulaman.h:51
Definition: zulaman.h:33
Definition: zulaman.h:49
Definition: zulaman.h:29
Definition: zulaman.h:47
CreatureIds
Definition: baradin_hold.h:37
Definition: zulaman.h:78
ZulAmanAction
Definition: zulaman.h:70