TrinityCore
Loading...
Searching...
No Matches
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
23#define MCScriptName "instance_molten_core"
24#define DataHeader "MC"
25
26uint32 constexpr EncounterCount = 10;
27
41
52
69
80
91
96
97template <class AI, class T>
98inline AI* GetMoltenCoreAI(T* obj)
99{
100 return GetInstanceAI<AI>(obj, MCScriptName);
101}
102
103#define RegisterMoltenCoreCreatureAI(ai_name) RegisterCreatureAIWithFactory(ai_name, GetMoltenCoreAI)
104#define RegisterMoltenCoreGameObjectAI(ai_name) RegisterGameObjectAIWithFactory(ai_name, GetMoltenCoreAI)
105
106#endif
uint32_t uint32
Definition Define.h:133
#define MCScriptName
Definition molten_core.h:23
AI * GetMoltenCoreAI(T *obj)
Definition molten_core.h:98
MCDataTypes
Definition molten_core.h:43
@ DATA_RUNE_OF_THERI
Definition molten_core.h:47
@ DATA_RUNE_OF_BLAZ
Definition molten_core.h:48
@ DATA_RUNE_OF_KRESS
Definition molten_core.h:49
@ DATA_RUNE_OF_ZETH
Definition molten_core.h:45
@ DATA_RUNE_OF_KORO
Definition molten_core.h:44
@ DATA_RUNE_OF_MAZJ
Definition molten_core.h:46
@ DATA_RUNE_OF_MOHN
Definition molten_core.h:50
MCSpawnGroups
Definition molten_core.h:82
@ SPAWN_GROUP_RAGNAROS
Definition molten_core.h:86
@ SPAWN_GROUP_LAVA_STEAM
Definition molten_core.h:88
@ SPAWN_GROUP_MAJORDOMO
Definition molten_core.h:84
@ SPAWN_GROUP_FLAMEWAKERS
Definition molten_core.h:85
@ SPAWN_GROUP_CACHE
Definition molten_core.h:83
@ SPAWN_GROUP_LAVA_SPLASH
Definition molten_core.h:89
@ SPAWN_GROUP_MAJORDOMO_ALT
Definition molten_core.h:87
MCGameObjects
Definition molten_core.h:71
@ GO_RUNE_OF_MOHN
Definition molten_core.h:78
@ GO_RUNE_OF_THERI
Definition molten_core.h:75
@ GO_RUNE_OF_KORO
Definition molten_core.h:72
@ GO_RUNE_OF_KRESS
Definition molten_core.h:77
@ GO_RUNE_OF_ZETH
Definition molten_core.h:73
@ GO_RUNE_OF_BLAZ
Definition molten_core.h:76
@ GO_RUNE_OF_MAZJ
Definition molten_core.h:74
MCActions
Definition molten_core.h:93
@ ACTION_FLAMEWAKER_DIES
Definition molten_core.h:94
uint32 constexpr EncounterCount
Definition molten_core.h:26
MCCreatures
Definition molten_core.h:54
@ NPC_RAGNAROS
Definition molten_core.h:64
@ NPC_SHAZZRAH
Definition molten_core.h:59
@ NPC_MAGMADAR
Definition molten_core.h:56
@ NPC_FLAMEWAKER_ELITE
Definition molten_core.h:67
@ NPC_MAJORDOMO_EXECUTUS
Definition molten_core.h:63
@ NPC_FLAMEWAKER_HEALER
Definition molten_core.h:66
@ NPC_GARR
Definition molten_core.h:58
@ NPC_GOLEMAGG_THE_INCINERATOR
Definition molten_core.h:62
@ NPC_LUCIFRON
Definition molten_core.h:55
@ NPC_SULFURON_HARBINGER
Definition molten_core.h:61
@ NPC_BARON_GEDDON
Definition molten_core.h:60
@ NPC_GEHENNAS
Definition molten_core.h:57
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
@ 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