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 "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 "Totem.h"
#include "Unit.h"
#include "UpdateData.h"
#include "UpdateMask.h"
#include "Util.h"
#include "VMapFactory.h"
#include "Vehicle.h"
#include "World.h"
#include "WorldPacket.h"
#include "GridNotifiersImpl.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 
8783{
8784 MIN_GCD = 1000,
8785 MAX_GCD = 1500
8786};
@ MIN_GCD
Definition: Spell.cpp:8784
@ MAX_GCD
Definition: Spell.cpp:8785

Function Documentation

◆ tangent()

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

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