![]() |
TrinityCore
|
#include <CombatLogPacketsCommon.h>
Public Types | |
| enum | ContentTuningType : uint32 { TYPE_CREATURE_TO_PLAYER_DAMAGE = 1 , TYPE_PLAYER_TO_CREATURE_DAMAGE = 2 , TYPE_CREATURE_TO_PLAYER_HEALING = 3 , TYPE_PLAYER_TO_CREATURE_HEALING = 4 , TYPE_CREATURE_TO_CREATURE_DAMAGE = 5 , TYPE_CREATURE_TO_CREATURE_HEALING = 6 , TYPE_PLAYER_TO_PLAYER_DAMAGE = 7 , TYPE_PLAYER_TO_PLAYER_HEALING = 8 } |
| enum | ContentTuningFlags : uint32 { NO_LEVEL_SCALING = 0x1 , NO_ITEM_LEVEL_SCALING = 0x2 } |
Public Member Functions | |
| template<class T , class U > | |
| bool | GenerateDataForUnits (T *attacker, U *target) |
| template<> | |
| bool | GenerateDataForUnits (Creature *attacker, Player *target) |
| template<> | |
| bool | GenerateDataForUnits (Player *attacker, Creature *target) |
| template<> | |
| bool | GenerateDataForUnits (Creature *attacker, Creature *target) |
| template<> | |
| bool | GenerateDataForUnits (Unit *attacker, Unit *target) |
Public Attributes | |
| uint32 | Type = 0 |
| int16 | PlayerLevelDelta = 0 |
| float | PlayerItemLevel = 0 |
| float | TargetItemLevel = 0 |
| int32 | ScalingHealthItemLevelCurveID = 0 |
| int32 | Unused1117 = 0 |
| int32 | ScalingHealthPrimaryStatCurveID = 0 |
| uint8 | TargetLevel = 0 |
| uint8 | Expansion = 0 |
| int8 | TargetScalingLevelDelta = 0 |
| uint32 | Flags = NO_LEVEL_SCALING | NO_ITEM_LEVEL_SCALING |
| int32 | PlayerContentTuningID = 0 |
| int32 | TargetContentTuningID = 0 |
| int32 | TargetHealingContentTuningID = 0 |
| float | PlayerPrimaryStatToExpectedRatio = 1.0f |
Definition at line 55 of file CombatLogPacketsCommon.h.
| Enumerator | |
|---|---|
| NO_LEVEL_SCALING | |
| NO_ITEM_LEVEL_SCALING | |
Definition at line 69 of file CombatLogPacketsCommon.h.
Definition at line 57 of file CombatLogPacketsCommon.h.
| bool WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits | ( | Creature * | attacker, |
| Creature * | target | ||
| ) |
Definition at line 122 of file CombatLogPacketsCommon.cpp.
References Expansion, Creature::GetCreatureTemplate(), CreatureTemplate::GetDifficulty(), Map::GetDifficultyID(), Unit::GetLevel(), WorldObject::GetMap(), Creature::HasScalableLevels(), CreatureDifficulty::HealthScalingExpansion, Unit::m_unitData, PlayerItemLevel, PlayerLevelDelta, TargetContentTuningID, TargetLevel, TargetScalingLevelDelta, Type, and TYPE_CREATURE_TO_CREATURE_DAMAGE.
| bool WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits | ( | Creature * | attacker, |
| Player * | target | ||
| ) |
Definition at line 78 of file CombatLogPacketsCommon.cpp.
References Expansion, Player::GetAverageItemLevel(), Creature::GetCreatureTemplate(), CreatureTemplate::GetDifficulty(), Map::GetDifficultyID(), Unit::GetLevel(), WorldObject::GetMap(), CreatureDifficulty::HealthScalingExpansion, Player::m_activePlayerData, Unit::m_unitData, PlayerItemLevel, PlayerLevelDelta, ScalingHealthItemLevelCurveID, ScalingHealthPrimaryStatCurveID, sContentTuningStore, TargetContentTuningID, TargetItemLevel, TargetLevel, TargetScalingLevelDelta, Type, and TYPE_CREATURE_TO_PLAYER_DAMAGE.
| bool WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits | ( | Player * | attacker, |
| Creature * | target | ||
| ) |
Definition at line 100 of file CombatLogPacketsCommon.cpp.
References Expansion, Player::GetAverageItemLevel(), Creature::GetCreatureTemplate(), CreatureTemplate::GetDifficulty(), Map::GetDifficultyID(), Unit::GetLevel(), WorldObject::GetMap(), CreatureDifficulty::HealthScalingExpansion, Player::m_activePlayerData, Unit::m_unitData, PlayerItemLevel, PlayerLevelDelta, ScalingHealthItemLevelCurveID, ScalingHealthPrimaryStatCurveID, sContentTuningStore, TargetContentTuningID, TargetItemLevel, TargetLevel, TargetScalingLevelDelta, Type, and TYPE_PLAYER_TO_CREATURE_DAMAGE.
| bool WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits | ( | T * | attacker, |
| U * | target | ||
| ) |
Definition at line 72 of file CombatLogPacketsCommon.cpp.
Referenced by GenerateDataForUnits(), Unit::SendAttackStateUpdate(), Unit::SendPeriodicAuraLog(), and Unit::SendSpellNonMeleeDamageLog().
| bool WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits | ( | Unit * | attacker, |
| Unit * | target | ||
| ) |
Definition at line 139 of file CombatLogPacketsCommon.cpp.
References GenerateDataForUnits(), Object::ToCreature(), and Object::ToPlayer().
| uint8 WorldPackets::Spells::ContentTuningParams::Expansion = 0 |
Definition at line 83 of file CombatLogPacketsCommon.h.
Referenced by GenerateDataForUnits(), GenerateDataForUnits(), GenerateDataForUnits(), and WorldPackets::Spells::operator<<().
| uint32 WorldPackets::Spells::ContentTuningParams::Flags = NO_LEVEL_SCALING | NO_ITEM_LEVEL_SCALING |
Definition at line 85 of file CombatLogPacketsCommon.h.
Referenced by WorldPackets::Spells::operator<<().
| int32 WorldPackets::Spells::ContentTuningParams::PlayerContentTuningID = 0 |
Definition at line 86 of file CombatLogPacketsCommon.h.
Referenced by WorldPackets::Spells::operator<<().
| float WorldPackets::Spells::ContentTuningParams::PlayerItemLevel = 0 |
Definition at line 77 of file CombatLogPacketsCommon.h.
Referenced by GenerateDataForUnits(), GenerateDataForUnits(), GenerateDataForUnits(), and WorldPackets::Spells::operator<<().
| int16 WorldPackets::Spells::ContentTuningParams::PlayerLevelDelta = 0 |
Definition at line 76 of file CombatLogPacketsCommon.h.
Referenced by GenerateDataForUnits(), GenerateDataForUnits(), GenerateDataForUnits(), and WorldPackets::Spells::operator<<().
| float WorldPackets::Spells::ContentTuningParams::PlayerPrimaryStatToExpectedRatio = 1.0f |
Definition at line 89 of file CombatLogPacketsCommon.h.
Referenced by WorldPackets::Spells::operator<<().
| int32 WorldPackets::Spells::ContentTuningParams::ScalingHealthItemLevelCurveID = 0 |
Definition at line 79 of file CombatLogPacketsCommon.h.
Referenced by GenerateDataForUnits(), GenerateDataForUnits(), and WorldPackets::Spells::operator<<().
| int32 WorldPackets::Spells::ContentTuningParams::ScalingHealthPrimaryStatCurveID = 0 |
Definition at line 81 of file CombatLogPacketsCommon.h.
Referenced by GenerateDataForUnits(), GenerateDataForUnits(), and WorldPackets::Spells::operator<<().
| int32 WorldPackets::Spells::ContentTuningParams::TargetContentTuningID = 0 |
Definition at line 87 of file CombatLogPacketsCommon.h.
Referenced by GenerateDataForUnits(), GenerateDataForUnits(), GenerateDataForUnits(), and WorldPackets::Spells::operator<<().
| int32 WorldPackets::Spells::ContentTuningParams::TargetHealingContentTuningID = 0 |
Definition at line 88 of file CombatLogPacketsCommon.h.
Referenced by WorldPackets::Spells::operator<<().
| float WorldPackets::Spells::ContentTuningParams::TargetItemLevel = 0 |
Definition at line 78 of file CombatLogPacketsCommon.h.
Referenced by GenerateDataForUnits(), GenerateDataForUnits(), and WorldPackets::Spells::operator<<().
| uint8 WorldPackets::Spells::ContentTuningParams::TargetLevel = 0 |
Definition at line 82 of file CombatLogPacketsCommon.h.
Referenced by GenerateDataForUnits(), GenerateDataForUnits(), GenerateDataForUnits(), and WorldPackets::Spells::operator<<().
| int8 WorldPackets::Spells::ContentTuningParams::TargetScalingLevelDelta = 0 |
Definition at line 84 of file CombatLogPacketsCommon.h.
Referenced by GenerateDataForUnits(), GenerateDataForUnits(), GenerateDataForUnits(), and WorldPackets::Spells::operator<<().
| uint32 WorldPackets::Spells::ContentTuningParams::Type = 0 |
Definition at line 75 of file CombatLogPacketsCommon.h.
Referenced by GenerateDataForUnits(), GenerateDataForUnits(), GenerateDataForUnits(), and WorldPackets::Spells::operator<<().
| int32 WorldPackets::Spells::ContentTuningParams::Unused1117 = 0 |
Definition at line 80 of file CombatLogPacketsCommon.h.
Referenced by WorldPackets::Spells::operator<<().