![]() |
TrinityCore
|
#include "Unit.h"#include "AbstractFollower.h"#include "Battlefield.h"#include "BattlefieldMgr.h"#include "Battleground.h"#include "BattlegroundPackets.h"#include "BattlegroundScore.h"#include "CellImpl.h"#include "CharacterCache.h"#include "ChatPackets.h"#include "ChatTextBuilder.h"#include "CombatLogPackets.h"#include "CombatPackets.h"#include "Common.h"#include "ConditionMgr.h"#include "Containers.h"#include "CreatureAI.h"#include "CreatureAIImpl.h"#include "CreatureGroups.h"#include "Formulas.h"#include "GameClient.h"#include "GameObjectAI.h"#include "GameTime.h"#include "GridNotifiersImpl.h"#include "Group.h"#include "InstanceSaveMgr.h"#include "InstanceScript.h"#include "Item.h"#include "Log.h"#include "LootMgr.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 "MovementPacketSender.h"#include "PassiveAI.h"#include "PetAI.h"#include "Pet.h"#include "PetPackets.h"#include "Player.h"#include "PlayerAI.h"#include "QuestDef.h"#include "ReputationMgr.h"#include "ScheduledChangeAI.h"#include "SpellAuraEffects.h"#include "SpellAuras.h"#include "Spell.h"#include "SpellInfo.h"#include "SpellHistory.h"#include "SpellMgr.h"#include "SpellPackets.h"#include "StringConvert.h"#include "TemporarySummon.h"#include "Transport.h"#include "Totem.h"#include "UnitAI.h"#include "UpdateFieldFlags.h"#include "Util.h"#include "Vehicle.h"#include "World.h"#include "WorldPacket.h"#include "WorldSession.h"#include <cmath>
Include dependency graph for Unit.cpp:Go to the source code of this file.
Functions | |
| void | ApplyPercentModFloatVar (float &var, float val, bool apply) |
| uint32 | 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 8958 of file Unit.cpp.
Referenced by Unit::ApplyAttackTimePercentMod(), Unit::ApplyCastTimePercentMod(), and Unit::HandleAttackPowerModifier().
| uint32 createProcHitMask | ( | SpellNonMeleeDamage * | damageInfo, |
| SpellMissInfo | missCondition | ||
| ) |
Definition at line 9978 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().
| float baseMoveSpeed[MAX_MOVE_TYPE] |
Definition at line 88 of file Unit.cpp.
Referenced by Spell::CalculateJumpSpeeds(), Unit::GetSpeed(), WorldSession::HandleForceSpeedChangeAck(), World::LoadConfigSettings(), Unit::PurgeAndApplyPendingMovementChanges(), Unit::SetSpeed(), Unit::SetSpeedRate(), and Unit::UpdateSpeed().
| float playerBaseMoveSpeed[MAX_MOVE_TYPE] |
Definition at line 101 of file Unit.cpp.
Referenced by Spell::CalculateJumpSpeeds(), Unit::GetSpeed(), WorldSession::HandleForceSpeedChangeAck(), World::LoadConfigSettings(), Unit::PurgeAndApplyPendingMovementChanges(), Unit::SetSpeed(), Unit::SetSpeedRate(), and Unit::UpdateSpeed().