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 
8838{
8839 MIN_GCD = 1000,
8840 MAX_GCD = 1500
8841};
@ MIN_GCD
Definition: Spell.cpp:8839
@ MAX_GCD
Definition: Spell.cpp:8840

Function Documentation

◆ tangent()

float tangent ( float  x)
1857{
1858 x = tan(x);
1859 //if (x < std::numeric_limits<float>::max() && x > -std::numeric_limits<float>::max()) return x;
1860 //if (x >= std::numeric_limits<float>::max()) return std::numeric_limits<float>::max();
1861 //if (x <= -std::numeric_limits<float>::max()) return -std::numeric_limits<float>::max();
1862 if (x < 100000.0f && x > -100000.0f) return x;
1863 if (x >= 100000.0f) return 100000.0f;
1864 if (x <= 100000.0f) return -100000.0f;
1865 return 0.0f;
1866}

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