AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
instance_naxxramas.cpp File Reference
#include "AreaTriggerScript.h"
#include "CellImpl.h"
#include "CreatureScript.h"
#include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "InstanceMapScript.h"
#include "PassiveAI.h"
#include "ScriptedCreature.h"
#include "naxxramas.h"

Go to the source code of this file.

Classes

class  instance_naxxramas
 
struct  instance_naxxramas::instance_naxxramas_InstanceMapScript
 
class  boss_naxxramas_misc
 
struct  boss_naxxramas_misc::boss_naxxramas_miscAI
 
class  at_naxxramas_hub_portal
 

Functions

uint8 GetEruptionSection (float x, float y)
 
void AddSC_instance_naxxramas ()
 

Variables

const float HeiganPos [2] = {2796, -3707}
 
const float HeiganEruptionSlope [3]
 
DoorData const doorData []
 
ObjectData const creatureData []
 
ObjectData const gameObjectData []
 
const Position sapphironEntryTP = { 3498.300049f, -5349.490234f, 144.968002f, 1.3698910f }
 

Function Documentation

◆ AddSC_instance_naxxramas()

void AddSC_instance_naxxramas ( )
1231{
1232 new instance_naxxramas();
1233 new boss_naxxramas_misc();
1235}
Definition: instance_naxxramas.cpp:73
Definition: instance_naxxramas.cpp:1131
Definition: instance_naxxramas.cpp:1204

Referenced by AddNorthrendScripts().

◆ GetEruptionSection()

uint8 GetEruptionSection ( float  x,
float  y 
)
inline
37{
38 y -= HeiganPos[1];
39 if (y < 1.0f)
40 return 0;
41
42 x -= HeiganPos[0];
43 if (x > -1.0f)
44 return 3;
45
46 float slope = y / x;
47 for (uint32 i = 0; i < 3; ++i)
48 {
49 if (slope > HeiganEruptionSlope[i])
50 return i;
51 }
52 return 3;
53}
std::uint32_t uint32
Definition: Define.h:107
const float HeiganPos[2]
Definition: instance_naxxramas.cpp:28
const float HeiganEruptionSlope[3]
Definition: instance_naxxramas.cpp:29

References HeiganEruptionSlope, and HeiganPos.

Referenced by instance_naxxramas::instance_naxxramas_InstanceMapScript::OnGameObjectCreate(), and instance_naxxramas::instance_naxxramas_InstanceMapScript::OnGameObjectRemove().

Variable Documentation

◆ creatureData

ObjectData const creatureData[]
Initial value:
=
{
{ 0, 0 }
}
@ DATA_RAZUVIOUS
Definition: naxxramas.h:59
@ NPC_RAZUVIOUS
Definition: naxxramas.h:140

Referenced by instance_naxxramas::instance_naxxramas_InstanceMapScript::instance_naxxramas_InstanceMapScript().

◆ doorData

DoorData const doorData[]
Initial value:
=
{
{ 0, 0, DOOR_TYPE_ROOM },
}
@ GO_ANUB_GATE
Definition: naxxramas.h:91
@ BOSS_ANUB
Definition: naxxramas.h:35
@ DOOR_TYPE_ROOM
Definition: InstanceScript.h:67

Referenced by instance_naxxramas::instance_naxxramas_InstanceMapScript::instance_naxxramas_InstanceMapScript().

◆ gameObjectData

◆ HeiganEruptionSlope

const float HeiganEruptionSlope[3]
Initial value:
=
{
(-3685 - HeiganPos[1]) / (2724 - HeiganPos[0]),
(-3647 - HeiganPos[1]) / (2749 - HeiganPos[0]),
(-3637 - HeiganPos[1]) / (2771 - HeiganPos[0]),
}

Referenced by GetEruptionSection().

◆ HeiganPos

const float HeiganPos[2] = {2796, -3707}

Referenced by GetEruptionSection().

◆ sapphironEntryTP

const Position sapphironEntryTP = { 3498.300049f, -5349.490234f, 144.968002f, 1.3698910f }