![]() |
TrinityCore
|
#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 "MapUtils.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 | |
| static uint32 | CalcMeleeAttackRageGain (Unit const *attacker, WeaponAttackType attType) |
| template<typename InterruptFlag > | |
| bool | IsInterruptFlagIgnoredForSpell (InterruptFlag, Unit const *, SpellInfo const *, bool, SpellInfo const *) |
| template<> | |
| bool | IsInterruptFlagIgnoredForSpell (SpellAuraInterruptFlags flag, Unit const *unit, SpellInfo const *auraSpellInfo, bool isChannel, SpellInfo const *interruptSource) |
| void | ApplyPercentModFloatVar (float &var, float val, bool apply) |
| ProcFlagsHit | createProcHitMask (SpellNonMeleeDamage *damageInfo, SpellMissInfo missCondition) |
Variables | |
| float | baseMoveSpeed [MAX_MOVE_TYPE] |
| float | playerBaseMoveSpeed [MAX_MOVE_TYPE] |
| void ApplyPercentModFloatVar | ( | float & | var, |
| float | val, | ||
| bool | apply | ||
| ) |
Definition at line 9613 of file Unit.cpp.
Referenced by Unit::ApplyAttackTimePercentMod(), and Unit::HandleAttackPowerModifier().
|
static |
Definition at line 2239 of file Unit.cpp.
References BASE_ATTACK, Unit::GetBaseAttackTime(), and OFF_ATTACK.
Referenced by Unit::AttackerStateUpdate().
| ProcFlagsHit createProcHitMask | ( | SpellNonMeleeDamage * | damageInfo, |
| SpellMissInfo | missCondition | ||
| ) |
Definition at line 10475 of file Unit.cpp.
References SpellNonMeleeDamage::absorb, SpellNonMeleeDamage::blocked, SpellNonMeleeDamage::fullBlock, SpellNonMeleeDamage::HitInfo, HITINFO_FULL_ABSORB, HITINFO_FULL_RESIST, PROC_HIT_ABSORB, PROC_HIT_BLOCK, PROC_HIT_CRITICAL, PROC_HIT_DEFLECT, PROC_HIT_DODGE, PROC_HIT_EVADE, PROC_HIT_FULL_BLOCK, PROC_HIT_FULL_RESIST, PROC_HIT_IMMUNE, PROC_HIT_MISS, PROC_HIT_NONE, PROC_HIT_NORMAL, PROC_HIT_PARRY, PROC_HIT_REFLECT, SPELL_HIT_TYPE_CRIT, SPELL_MISS_ABSORB, SPELL_MISS_BLOCK, SPELL_MISS_DEFLECT, SPELL_MISS_DODGE, SPELL_MISS_EVADE, SPELL_MISS_IMMUNE, SPELL_MISS_IMMUNE2, SPELL_MISS_MISS, SPELL_MISS_NONE, SPELL_MISS_PARRY, SPELL_MISS_REFLECT, and SPELL_MISS_RESIST.
Referenced by Spell::TargetInfo::DoDamageAndTriggers(), and AuraEffect::HandlePeriodicPowerBurnAuraTick().
| bool IsInterruptFlagIgnoredForSpell | ( | InterruptFlag | , |
| Unit const * | , | ||
| SpellInfo const * | , | ||
| bool | , | ||
| SpellInfo const * | |||
| ) |
Definition at line 4225 of file Unit.cpp.
Referenced by Unit::RemoveAurasWithInterruptFlags().
| bool IsInterruptFlagIgnoredForSpell | ( | SpellAuraInterruptFlags | flag, |
| Unit const * | unit, | ||
| SpellInfo const * | auraSpellInfo, | ||
| bool | isChannel, | ||
| SpellInfo const * | interruptSource | ||
| ) |
Definition at line 4231 of file Unit.cpp.
References Action, ActionDelayed, Unit::CanCastSpellWhileMoving(), SpellInfo::Dispel, DISPEL_INVISIBILITY, DISPEL_STEALTH, SpellInfo::HasAttribute(), Moving, SPELL_ATTR1_ALLOW_WHILE_STEALTHED, SPELL_ATTR2_ALLOW_WHILE_INVISIBLE, and SPELL_ATTR9_ALLOW_CAST_WHILE_CHANNELING.
| float baseMoveSpeed[MAX_MOVE_TYPE] |
Definition at line 98 of file Unit.cpp.
Referenced by Unit::GetSpeed(), World::LoadConfigSettings(), Unit::SetSpeed(), and Unit::UpdateSpeed().
| float playerBaseMoveSpeed[MAX_MOVE_TYPE] |
Definition at line 111 of file Unit.cpp.
Referenced by Unit::GetSpeed(), World::LoadConfigSettings(), Unit::SetSpeed(), and Unit::UpdateSpeed().