TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Spell.cpp File Reference
#include "Common.h"
#include "DatabaseEnv.h"
#include "WorldPacket.h"
#include "WorldSession.h"
#include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "Opcodes.h"
#include "Log.h"
#include "UpdateMask.h"
#include "World.h"
#include "ObjectMgr.h"
#include "SpellMgr.h"
#include "Player.h"
#include "Pet.h"
#include "Unit.h"
#include "Spell.h"
#include "DynamicObject.h"
#include "Guild.h"
#include "UpdateData.h"
#include "ObjectAccessor.h"
#include "CellImpl.h"
#include "SharedDefines.h"
#include "LootMgr.h"
#include "VMapFactory.h"
#include "Battleground.h"
#include "Util.h"
#include "TemporarySummon.h"
#include "Vehicle.h"
#include "SpellAuraEffects.h"
#include "ScriptMgr.h"
#include "ConditionMgr.h"
#include "DisableMgr.h"
#include "SpellScript.h"
#include "InstanceScript.h"
#include "SpellInfo.h"
#include "DB2Stores.h"
#include "Battlefield.h"
#include "BattlefieldMgr.h"
#include "SpellPackets.h"
#include "CombatLogPackets.h"
#include "SpellHistory.h"
#include "TradeData.h"
+ Include dependency graph for Spell.cpp:

Namespaces

 Trinity
 

Macros

#define DEBUG_TRAJ(a)
 
#define CHECK_DIST
 

Enumerations

enum  GCDLimits { MIN_GCD = 1000, MAX_GCD = 1500 }
 

Functions

float tangent (float x)
 

Variables

pEffect SpellEffects [TOTAL_SPELL_EFFECTS]
 

Macro Definition Documentation

#define CHECK_DIST
Value:
{\
DEBUG_TRAJ(TC_LOG_ERROR("spells", "Spell::SelectTrajTargets: dist %f, height %f.", dist, height);)\
if (dist > bestDist)\
continue;\
if (dist < objDist2d + size && dist > objDist2d - size)\
{\
bestDist = dist;\
break;\
}\
}
#define DEBUG_TRAJ(a)
Definition: Spell.cpp:1514
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207
#define DEBUG_TRAJ (   a)

Enumeration Type Documentation

enum GCDLimits
Enumerator
MIN_GCD 
MAX_GCD 
7346 {
7347  MIN_GCD = 1000,
7348  MAX_GCD = 1500
7349 };
Definition: Spell.cpp:7348
Definition: Spell.cpp:7347

Function Documentation

float tangent ( float  x)
1503 {
1504  x = std::tan(x);
1505  //if (x < std::numeric_limits<float>::max() && x > -std::numeric_limits<float>::max()) return x;
1506  //if (x >= std::numeric_limits<float>::max()) return std::numeric_limits<float>::max();
1507  //if (x <= -std::numeric_limits<float>::max()) return -std::numeric_limits<float>::max();
1508  if (x < 100000.0f && x > -100000.0f) return x;
1509  if (x >= 100000.0f) return 100000.0f;
1510  if (x <= 100000.0f) return -100000.0f;
1511  return 0.0f;
1512 }
G3D::int16 x
Definition: Vector2int16.h:37

+ Here is the caller graph for this function:

Variable Documentation