TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
instance_naxxramas.cpp File Reference
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "InstanceScript.h"
#include "naxxramas.h"
+ Include dependency graph for instance_naxxramas.cpp:

Classes

class  instance_naxxramas
 
struct  instance_naxxramas::instance_naxxramas_InstanceMapScript
 

Functions

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

Variables

BossBoundaryData const boundaries
 
DoorData const doorData []
 
MinionData const minionData []
 
ObjectData const objectData []
 
float const HeiganPos [2] = { 2793.86f, -3707.38f }
 
float const HeiganEruptionSlope [3]
 

Function Documentation

void AddSC_instance_naxxramas ( )
740 {
741  new instance_naxxramas();
742 }
Definition: instance_naxxramas.cpp:142

+ Here is the caller graph for this function:

uint32 GetEruptionSection ( float  x,
float  y 
)
inline
126 {
127  y -= HeiganPos[1];
128  if (y < 1.0f)
129  return 0;
130 
131  x -= HeiganPos[0];
132  if (x > -1.0f)
133  return 3;
134 
135  float slope = y/x;
136  for (uint32 i = 0; i < 3; ++i)
137  if (slope > HeiganEruptionSlope[i])
138  return i;
139  return 3;
140 }
float const HeiganEruptionSlope[3]
Definition: instance_naxxramas.cpp:114
float const HeiganPos[2]
Definition: instance_naxxramas.cpp:113
uint32_t uint32
Definition: Define.h:150
G3D::int16 y
Definition: Vector2int16.h:38
G3D::int16 x
Definition: Vector2int16.h:37

+ Here is the caller graph for this function:

Variable Documentation

BossBoundaryData const boundaries
DoorData const doorData[]
float const HeiganEruptionSlope[3]
Initial value:
=
{
(-3703.303223f - HeiganPos[1]) / (2777.494141f - HeiganPos[0]),
(-3696.948242f - HeiganPos[1]) / (2785.624268f - HeiganPos[0]),
(-3691.880615f - HeiganPos[1]) / (2790.280029f - HeiganPos[0])
}
float const HeiganPos[2]
Definition: instance_naxxramas.cpp:113
float const HeiganPos[2] = { 2793.86f, -3707.38f }
MinionData const minionData[]
Initial value:
=
{
{ 0, 0, }
}
Definition: stratholme.h:49
Definition: naxxramas.h:95
Definition: naxxramas.h:39
Definition: naxxramas.h:92
Definition: naxxramas.h:93
ObjectData const objectData[]
Initial value:
=
{
{ 0, 0, }
}
Definition: naxxramas.h:159
Definition: naxxramas.h:156
Definition: naxxramas.h:62
Definition: naxxramas.h:61
Definition: naxxramas.h:158
Definition: naxxramas.h:157
Definition: naxxramas.h:59
Definition: naxxramas.h:60