AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Spell.cpp File Reference
#include "Spell.h"
#include "ArenaSpectator.h"
#include "BattlefieldMgr.h"
#include "Battleground.h"
#include "BattlegroundIC.h"
#include "CharmInfo.h"
#include "CellImpl.h"
#include "Common.h"
#include "ConditionMgr.h"
#include "DisableMgr.h"
#include "DynamicObject.h"
#include "GameObjectAI.h"
#include "GameTime.h"
#include "GridNotifiers.h"
#include "Group.h"
#include "InstanceScript.h"
#include "Log.h"
#include "LootMgr.h"
#include "MapMgr.h"
#include "ObjectAccessor.h"
#include "ObjectMgr.h"
#include "Opcodes.h"
#include "Pet.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "SharedDefines.h"
#include "SpellAuraEffects.h"
#include "SpellInfo.h"
#include "SpellMgr.h"
#include "SpellScript.h"
#include "TemporarySummon.h"
#include "Unit.h"
#include "Util.h"
#include "VMapFactory.h"
#include "Vehicle.h"
#include "World.h"
#include "WorldPacket.h"
#include <cmath>
#include "GridNotifiersImpl.h"
#include "IVMapMgr.h"
#include "VMapMgr2.h"

Go to the source code of this file.

Classes

class  SpellEvent
 

Namespaces

namespace  Acore
 

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

◆ CHECK_DIST

#define CHECK_DIST
Value:
{\
LOG_DEBUG("spells", "Spell::SelectTrajTargets: dist {}, height {}.", dist, height);\
if (dist > bestDist)\
continue;\
if (dist < objDist2d + size && dist > objDist2d - size)\
{\
bestDist = dist;\
break;\
}\
}

◆ DEBUG_TRAJ

#define DEBUG_TRAJ (   a)

Enumeration Type Documentation

◆ GCDLimits

enum GCDLimits
Enumerator
MIN_GCD 
MAX_GCD 
8825{
8826 MIN_GCD = 1000,
8827 MAX_GCD = 1500
8828};
@ MIN_GCD
Definition: Spell.cpp:8826
@ MAX_GCD
Definition: Spell.cpp:8827

Function Documentation

◆ tangent()

float tangent ( float  x)
1853{
1854 x = tan(x);
1855 //if (x < std::numeric_limits<float>::max() && x > -std::numeric_limits<float>::max()) return x;
1856 //if (x >= std::numeric_limits<float>::max()) return std::numeric_limits<float>::max();
1857 //if (x <= -std::numeric_limits<float>::max()) return -std::numeric_limits<float>::max();
1858 if (x < 100000.0f && x > -100000.0f) return x;
1859 if (x >= 100000.0f) return 100000.0f;
1860 if (x <= 100000.0f) return -100000.0f;
1861 return 0.0f;
1862}

Referenced by Spell::SelectImplicitTrajTargets().

Variable Documentation

◆ SpellEffects

Todo:
: this import is not necessary for compilation and marked as unused by the IDE
Todo:
: this import is not necessary for compilation and marked as unused by the IDE