/*
 * Copyright (C) 2020 BfaCore
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation; either version 2 of the License, or (at your
 * option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef DEF_THE_EYE_H
#define DEF_THE_EYE_H

#include "CreatureAIImpl.h"

#define TheEyeScriptName "instance_the_eye"
#define DataHeader "TE"

uint32 const EncounterCount = 4;

enum TEDataTypes
{
    // Encounter States/Boss GUIDs
    DATA_KAELTHAS                       = 0,
    DATA_ALAR                           = 1,
    DATA_HIGH_ASTROMANCER_SOLARIAN      = 2,
    DATA_VOID_REAVER                    = 3,

    DATA_ASTROMANCER                    = 4,
    DATA_GRANDASTROMANCERCAPERNIAN      = 5,
    DATA_LORDSANGUINAR                  = 6,
    DATA_MASTERENGINEERTELONICUS        = 7,
    DATA_THALADREDTHEDARKENER           = 8,

    // Additional Data
    DATA_KAEL_STATUE_LEFT               = 9,
    DATA_KAEL_STATUE_RIGHT              = 10,
    DATA_TEMPEST_BRIDGE_WINDOW          = 11
};

enum TECreatureIds
{
    NPC_SANGUINAR                       = 20060,
    NPC_CAPERNIAN                       = 20062,
    NPC_TELONICUS                       = 20063,
    NPC_THALADRED                       = 20064,
    NPC_KAELTHAS                        = 19622,
    NPC_HIGH_ASTROMANCER_SOLARIAN       = 18805,
    NPC_ALAR                            = 19514
};

enum TEGameObjectIds
{
    GO_TEMPEST_BRIDDGE_WINDOW           = 184069,
    GO_KAEL_STATUE_RIGHT                = 184596,
    GO_KAEL_STATUE_LEFT                 = 184597,
    GO_ARCANE_DOOR_LEFT                 = 184324,
    GO_ARCANE_DOOR_RIGHT                = 184325
};

template<typename AI>
inline AI* GetTheEyeAI(Creature* creature)
{
    return GetInstanceAI<AI>(creature, TheEyeScriptName);
}

#endif
