TrinityCore
molten_core.h
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore 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 DEF_MOLTEN_CORE_H
19#define DEF_MOLTEN_CORE_H
20
21#include "CreatureAIImpl.h"
22
23struct Position;
24
25#define MCScriptName "instance_molten_core"
26#define DataHeader "MC"
27
29{
41};
42
44{
47};
48
49extern Position const RagnarosTelePos;
50extern Position const RagnarosSummonPos;
51
53{
54 NPC_LUCIFRON = 12118,
55 NPC_MAGMADAR = 11982,
56 NPC_GEHENNAS = 12259,
57 NPC_GARR = 12057,
58 NPC_SHAZZRAH = 12264,
63 NPC_RAGNAROS = 11502,
66};
67
69{
71};
72
74{
76};
77
78template <class AI, class T>
79inline AI* GetMoltenCoreAI(T* obj)
80{
81 return GetInstanceAI<AI>(obj, MCScriptName);
82}
83
84#define RegisterMoltenCoreCreatureAI(ai_name) RegisterCreatureAIWithFactory(ai_name, GetMoltenCoreAI)
85
86#endif
#define MCScriptName
Definition: molten_core.h:25
AI * GetMoltenCoreAI(T *obj)
Definition: molten_core.h:79
Position const RagnarosSummonPos
MCData
Definition: molten_core.h:74
@ DATA_RAGNAROS_ADDS
Definition: molten_core.h:75
Position const RagnarosTelePos
MCGameObjects
Definition: molten_core.h:69
@ GO_CACHE_OF_THE_FIRELORD
Definition: molten_core.h:70
MCActions
Definition: molten_core.h:44
@ ACTION_START_RAGNAROS
Definition: molten_core.h:45
@ ACTION_START_RAGNAROS_ALT
Definition: molten_core.h:46
MCCreatures
Definition: molten_core.h:53
@ NPC_RAGNAROS
Definition: molten_core.h:63
@ NPC_SHAZZRAH
Definition: molten_core.h:58
@ NPC_MAGMADAR
Definition: molten_core.h:55
@ NPC_FLAMEWAKER_ELITE
Definition: molten_core.h:65
@ NPC_MAJORDOMO_EXECUTUS
Definition: molten_core.h:62
@ NPC_FLAMEWAKER_HEALER
Definition: molten_core.h:64
@ NPC_GARR
Definition: molten_core.h:57
@ NPC_GOLEMAGG_THE_INCINERATOR
Definition: molten_core.h:61
@ NPC_LUCIFRON
Definition: molten_core.h:54
@ NPC_SULFURON_HARBINGER
Definition: molten_core.h:60
@ NPC_BARON_GEDDON
Definition: molten_core.h:59
@ NPC_GEHENNAS
Definition: molten_core.h:56
MCEncounters
Definition: molten_core.h:29
@ BOSS_GARR
Definition: molten_core.h:33
@ BOSS_LUCIFRON
Definition: molten_core.h:30
@ BOSS_BARON_GEDDON
Definition: molten_core.h:35
@ BOSS_SHAZZRAH
Definition: molten_core.h:34
@ BOSS_SULFURON_HARBINGER
Definition: molten_core.h:36
@ MAX_ENCOUNTER
Definition: molten_core.h:40
@ BOSS_GOLEMAGG_THE_INCINERATOR
Definition: molten_core.h:37
@ BOSS_RAGNAROS
Definition: molten_core.h:39
@ BOSS_GEHENNAS
Definition: molten_core.h:32
@ BOSS_MAGMADAR
Definition: molten_core.h:31
@ BOSS_MAJORDOMO_EXECUTUS
Definition: molten_core.h:38