TrinityCore
the_eye.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_THE_EYE_H
19#define DEF_THE_EYE_H
20
21#include "CreatureAIImpl.h"
22
23#define TheEyeScriptName "instance_the_eye"
24#define DataHeader "TE"
25
27
29{
30 // Encounter States
35
36 // Additional Data
41
45};
46
48{
49 NPC_ALAR = 19514,
51 NPC_SOLARIAN = 18805,
52 NPC_KAELTHAS = 19622,
56 NPC_THALADRED = 20064
57};
58
60{
66};
67
68template <class AI, class T>
69inline AI* GetTheEyeAI(T* obj)
70{
71 return GetInstanceAI<AI>(obj, TheEyeScriptName);
72}
73
74#define RegisterTheEyeCreatureAI(ai_name) RegisterCreatureAIWithFactory(ai_name, GetTheEyeAI)
75
76#endif
uint32_t uint32
Definition: Define.h:142
uint32 const EncounterCount
Definition: the_eye.h:26
TEGameObjectIds
Definition: the_eye.h:60
@ GO_TEMPEST_BRIDDGE_WINDOW
Definition: the_eye.h:61
@ GO_KAEL_STATUE_LEFT
Definition: the_eye.h:63
@ GO_ARCANE_DOOR_RIGHT
Definition: the_eye.h:65
@ GO_ARCANE_DOOR_LEFT
Definition: the_eye.h:64
@ GO_KAEL_STATUE_RIGHT
Definition: the_eye.h:62
#define TheEyeScriptName
Definition: the_eye.h:23
AI * GetTheEyeAI(T *obj)
Definition: the_eye.h:69
TECreatureIds
Definition: the_eye.h:48
@ NPC_TELONICUS
Definition: the_eye.h:55
@ NPC_KAELTHAS
Definition: the_eye.h:52
@ NPC_CAPERNIAN
Definition: the_eye.h:54
@ NPC_SOLARIAN
Definition: the_eye.h:51
@ NPC_THALADRED
Definition: the_eye.h:56
@ NPC_VOID_REAVER
Definition: the_eye.h:50
@ NPC_ALAR
Definition: the_eye.h:49
@ NPC_SANGUINAR
Definition: the_eye.h:53
TEDataTypes
Definition: the_eye.h:29
@ DATA_KAEL_STATUE_RIGHT
Definition: the_eye.h:43
@ DATA_TEMPEST_BRIDGE_WINDOW
Definition: the_eye.h:44
@ DATA_ALAR
Definition: the_eye.h:31
@ DATA_SANGUINAR
Definition: the_eye.h:38
@ DATA_TELONICUS
Definition: the_eye.h:39
@ DATA_KAELTHAS
Definition: the_eye.h:34
@ DATA_SOLARIAN
Definition: the_eye.h:33
@ DATA_KAEL_STATUE_LEFT
Definition: the_eye.h:42
@ DATA_CAPERNIAN
Definition: the_eye.h:37
@ DATA_THALADRED
Definition: the_eye.h:40
@ DATA_VOID_REAVER
Definition: the_eye.h:32