TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
baradin_hold.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 3 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_BARADIN_HOLD_H_
19 #define DEF_BARADIN_HOLD_H_
20 
21 #include "Map.h"
22 #include "Creature.h"
23 #include "ObjectMgr.h"
24 
25 #define DataHeader "BH"
26 #define BHScriptName "instance_baradin_hold"
27 
29 
31 {
35 };
36 
38 {
39  BOSS_ARGALOTH = 47120,
40  BOSS_OCCUTHAR = 52363,
41  BOSS_ALIZABAL = 55869,
42 
46 };
47 
49 {
50  GO_ARGALOTH_DOOR = 207619,
51  GO_OCCUTHAR_DOOR = 208953,
53 };
54 
55 template<class AI>
57 {
58  if (InstanceMap* instance = creature->GetMap()->ToInstanceMap())
59  if (instance->GetInstanceScript())
60  if (instance->GetScriptId() == sObjectMgr->GetScriptId(BHScriptName))
61  return new AI(creature);
62  return NULL;
63 }
64 
65 #endif
Definition: baradin_hold.h:45
uint32 const EncounterCount
Definition: baradin_hold.h:28
Definition: baradin_hold.h:50
Map * GetMap() const
Definition: Object.h:543
Definition: baradin_hold.h:41
Definition: baradin_hold.h:32
#define BHScriptName
Definition: baradin_hold.h:26
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: baradin_hold.h:40
DataTypes
Definition: baradin_hold.h:30
GameObjectIds
Definition: baradin_hold.h:48
Definition: Creature.h:467
#define sObjectMgr
Definition: ObjectMgr.h:1567
Definition: baradin_hold.h:51
Definition: baradin_hold.h:44
Definition: baradin_hold.h:33
Definition: Map.h:758
InstanceMap * ToInstanceMap()
Definition: Map.h:495
Definition: CreatureAI.h:68
uint32_t uint32
Definition: Define.h:150
Definition: baradin_hold.h:43
Definition: baradin_hold.h:34
Definition: baradin_hold.h:39
CreatureAI * GetBaradinHoldAI(Creature *creature)
Definition: baradin_hold.h:56
Definition: baradin_hold.h:52
CreatureIds
Definition: baradin_hold.h:37