TrinityCore
Unit.cpp File Reference
#include "Unit.h"
#include "AbstractFollower.h"
#include "Battlefield.h"
#include "BattlefieldMgr.h"
#include "Battleground.h"
#include "BattlegroundPackets.h"
#include "BattlegroundScore.h"
#include "BattlePetMgr.h"
#include "CellImpl.h"
#include "CharacterCache.h"
#include "CharmInfo.h"
#include "ChatPackets.h"
#include "ChatTextBuilder.h"
#include "CombatLogPackets.h"
#include "CombatPackets.h"
#include "Common.h"
#include "ConditionMgr.h"
#include "Containers.h"
#include "Creature.h"
#include "CreatureAI.h"
#include "CreatureAIImpl.h"
#include "CreatureAIFactory.h"
#include "CreatureGroups.h"
#include "DB2Stores.h"
#include "Formulas.h"
#include "GameObjectAI.h"
#include "GameTime.h"
#include "GridNotifiersImpl.h"
#include "Group.h"
#include "InstanceScript.h"
#include "Item.h"
#include "ItemBonusMgr.h"
#include "KillRewarder.h"
#include "ListUtils.h"
#include "Log.h"
#include "Loot.h"
#include "LootMgr.h"
#include "LootPackets.h"
#include "MiscPackets.h"
#include "MotionMaster.h"
#include "MovementGenerator.h"
#include "MovementPackets.h"
#include "MoveSpline.h"
#include "MoveSplineInit.h"
#include "ObjectAccessor.h"
#include "ObjectMgr.h"
#include "Opcodes.h"
#include "OutdoorPvP.h"
#include "PartyPackets.h"
#include "Pet.h"
#include "PetPackets.h"
#include "PhasingHandler.h"
#include "Player.h"
#include "PlayerAI.h"
#include "QuestDef.h"
#include "Spell.h"
#include "ScheduledChangeAI.h"
#include "SpellAuraEffects.h"
#include "SpellAuras.h"
#include "SpellHistory.h"
#include "SpellInfo.h"
#include "SpellMgr.h"
#include "SpellPackets.h"
#include "StringConvert.h"
#include "TemporarySummon.h"
#include "Totem.h"
#include "Transport.h"
#include "Util.h"
#include "Vehicle.h"
#include "VehiclePackets.h"
#include "Vignette.h"
#include "VignettePackets.h"
#include "World.h"
#include "WorldPacket.h"
#include "WorldSession.h"
#include <queue>
#include <sstream>
#include <cmath>
+ Include dependency graph for Unit.cpp:

Go to the source code of this file.

Functions

template<typename InterruptFlag >
bool IsInterruptFlagIgnoredForSpell (InterruptFlag, Unit const *, SpellInfo const *, SpellInfo const *)
 
template<>
bool IsInterruptFlagIgnoredForSpell (SpellAuraInterruptFlags flag, Unit const *unit, SpellInfo const *auraSpellInfo, SpellInfo const *interruptSource)
 
ProcFlagsHit createProcHitMask (SpellNonMeleeDamage *damageInfo, SpellMissInfo missCondition)
 
void ApplyPercentModFloatVar (float &var, float val, bool apply)
 

Variables

float baseMoveSpeed [MAX_MOVE_TYPE]
 
float playerBaseMoveSpeed [MAX_MOVE_TYPE]
 

Function Documentation

◆ ApplyPercentModFloatVar()

void ApplyPercentModFloatVar ( float &  var,
float  val,
bool  apply 
)

Definition at line 10330 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createProcHitMask()

ProcFlagsHit createProcHitMask ( SpellNonMeleeDamage damageInfo,
SpellMissInfo  missCondition 
)

Definition at line 9776 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ IsInterruptFlagIgnoredForSpell() [1/2]

template<typename InterruptFlag >
bool IsInterruptFlagIgnoredForSpell ( InterruptFlag  ,
Unit const *  ,
SpellInfo const *  ,
SpellInfo const *   
)

Definition at line 4070 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ IsInterruptFlagIgnoredForSpell() [2/2]

template<>
bool IsInterruptFlagIgnoredForSpell ( SpellAuraInterruptFlags  flag,
Unit const *  unit,
SpellInfo const *  auraSpellInfo,
SpellInfo const *  interruptSource 
)

Definition at line 4076 of file Unit.cpp.

+ Here is the call graph for this function:

Variable Documentation

◆ baseMoveSpeed

float baseMoveSpeed[MAX_MOVE_TYPE]
Initial value:
=
{
2.5f,
7.0f,
4.5f,
4.722222f,
2.5f,
3.141594f,
7.0f,
4.5f,
3.14f
}

Definition at line 97 of file Unit.cpp.

◆ playerBaseMoveSpeed

float playerBaseMoveSpeed[MAX_MOVE_TYPE]
Initial value:
=
{
2.5f,
7.0f,
4.5f,
4.722222f,
2.5f,
3.141594f,
7.0f,
4.5f,
3.14f
}

Definition at line 110 of file Unit.cpp.