AzeorthCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
instance_naxxramas.cpp File Reference
#include "CellImpl.h"
#include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "PassiveAI.h"
#include "ScriptMgr.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]
 
const Position sapphironEntryTP = { 3498.300049f, -5349.490234f, 144.968002f, 1.3698910f }
 

Function Documentation

◆ AddSC_instance_naxxramas()

void AddSC_instance_naxxramas ( )
1270{
1271 new instance_naxxramas();
1272 new boss_naxxramas_misc();
1274}
Definition: instance_naxxramas.cpp:54
Definition: instance_naxxramas.cpp:1175
Definition: instance_naxxramas.cpp:1248

Referenced by AddNorthrendScripts().

◆ GetEruptionSection()

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

References HeiganEruptionSlope, and HeiganPos.

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

Variable Documentation

◆ 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 }