|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <BattlePetBattleState.h>
Public Member Functions | |
| void | ActivateAllyIncomingDamageReduction (uint32 amount, uint8 rounds) |
| void | ActivateEnemyIncomingDamageReduction (uint32 amount, uint8 rounds) |
| void | AdvanceRound () |
| bool | ApplyAbilityExchange (uint32 roundId, uint32 allyDamage, uint32 enemyDamage, ActivePetBattleTurn &allyTurn, ActivePetBattleTurn &enemyTurn) |
| bool | ApplyAbilityExchange (uint32 roundId, uint32 allyDamage, uint32 enemyDamage, uint8 allyAbilitySlot, uint32 allyAbilityId, uint16 allyAbilityCooldown, ActivePetBattleTurn &allyTurn, ActivePetBattleTurn &enemyTurn) |
| ActivePetBattleTurn | ApplyAbilityRound (uint32 roundId, uint32 damage) |
| ActivePetBattleTurn | ApplyAbilityRound (uint32 roundId, uint32 damage, uint8 abilitySlot, uint32 abilityId, uint16 abilityCooldown) |
| uint32 | ApplyAllyDamage (uint32 damage) |
| ActivePetBattleTurn | ApplyEnemyAbilityRound (uint32 roundId, uint32 damage) |
| uint32 | ApplyEnemyDamage (uint32 damage) |
| ActivePetBattleTurn | ApplyForfeit (uint32 roundId) |
| ActivePetBattleTurn | ApplySwapRound (uint32 roundId, uint8 newFrontPet) |
| ActivePetBattleTurn | ApplyTrapRound (uint32 roundId, bool captured) |
| bool | ApplyTrapRoundWithEnemyResponse (uint32 roundId, bool captured, uint32 enemyDamage, ActivePetBattleTurn &trapTurn, ActivePetBattleTurn &enemyTurn) |
| bool | CanAcceptInput (uint32 roundId) const |
| bool | CanTrap (bool canStoreBattlePet=true, bool enemyTameable=true) const |
| void | Finish (uint8 winner) |
| BattlePetAchievementSource | GetAchievementSource () const |
| uint16 | GetAllyAbilityCooldown (uint8 petIndex, uint8 abilitySlot) const |
| bool | GetAllyPetHealth (uint64 petId, uint32 &health) const |
| uint8 | GetTrapStatus (bool canStoreBattlePet=true, bool enemyTameable=true) const |
| bool | HasAllyPet (uint8 petIndex) const |
| bool | IsActive () const |
| bool | IsAllyPetAlive (uint8 petIndex) const |
| bool | IsFinished () const |
| bool | IsMatchmaking () const |
| bool | IsPvP () const |
| bool | SelectAllyFrontPet (uint8 frontPet) |
| bool | SetAllyPet (uint8 petIndex, uint64 petId, uint32 maxHealth, uint32 health) |
| void | StartPvp (uint64 opponentGuid, uint64 allyPetId, uint32 allyMaxHealth, uint32 allyHealth, uint64 enemyPetId, uint32 enemyMaxHealth, uint32 enemyHealth, uint16 enemySpecies=0, uint8 enemyLevel=0, uint8 enemyQuality=0, uint8 allyFrontPet=0, uint8 enemyFrontPet=3, BattlePetAchievementSource source=BATTLE_PET_ACHIEVEMENT_SOURCE_PVP_DUEL) |
| void | StartWild (uint64 enemyGuid, uint64 allyPetId, uint32 allyMaxHealth, uint32 allyHealth, uint64 enemyPetId, uint32 enemyMaxHealth, uint32 enemyHealth, uint16 enemySpecies=0, uint8 enemyLevel=0, uint8 enemyQuality=0, uint8 enemyBreed=0, uint8 allyFrontPet=0) |
Public Attributes | |
| bool | AchievementsApplied = false |
| uint8 | AllyFrontPet = 0 |
| uint32 | AllyHealth = 0 |
| uint32 | AllyMaxHealth = 0 |
| uint64 | AllyPetID = 0 |
| ActivePetBattlePetState | AllyTeam [BATTLE_PET_MAX_ACTIVE_TEAM_PETS] |
| bool | Captured = false |
| uint8 | EnemyBreed = 0 |
| uint8 | EnemyFrontPet = 3 |
| uint64 | EnemyGUID = 0 |
| uint32 | EnemyHealth = 0 |
| uint8 | EnemyLevel = 0 |
| uint32 | EnemyMaxHealth = 0 |
| uint64 | EnemyPetID = 0 |
| uint8 | EnemyQuality = 0 |
| uint16 | EnemySpecies = 0 |
| bool | Finished = false |
| bool | PvPBattle = false |
| bool | RewardsApplied = false |
| uint32 | RoundID = 0 |
| BattlePetAchievementSource | Source = BATTLE_PET_ACHIEVEMENT_SOURCE_WILD |
| uint8 | TrapFailedAttempts = 0 |
| bool | WaitingForAllyFrontPet = false |
| uint8 | Winner = PET_BATTLE_WINNER_NONE |
Static Public Attributes | |
| static constexpr uint8 | BATTLE_PET_MAX_ACTIVE_TEAM_PETS = 3 |
Private Member Functions | |
| uint32 | ApplyDamage (uint32 &health, uint32 damage, uint8 winner) |
| bool | CanAcceptRound (uint32 roundId) const |
| void | ClearExpiredAllyCooldowns () |
| ActivePetBattleTurn | CreateTurn (uint32 roundId) const |
| void | DecrementAllyCooldowns () |
| void | DecrementAuras () |
| void | FinishAcceptedRound (ActivePetBattleTurn &turn) |
| bool | HasAliveAllyPetOtherThan (uint8 petIndex) const |
| bool | IsAllyAbilityOnCooldown (uint8 petIndex, uint8 abilitySlot) const |
| bool | IsEnemyHealthTrapEligible () const |
| void | SnapshotAllyCooldowns (std::vector< ActivePetBattleCooldown > &cooldowns) const |
| void | StartAllyAbilityCooldown (uint8 petIndex, uint8 abilitySlot, uint32 abilityId, uint16 cooldown) |
| void | SyncActiveAllyPet () |
Static Private Member Functions | |
| static void | ActivateIncomingDamageReduction (ActivePetBattleAuraState &aura, uint32 amount, uint8 rounds) |
| static uint32 | ApplyIncomingDamageReduction (ActivePetBattleAuraState const &aura, uint32 damage) |
| static void | DecrementAura (ActivePetBattleAuraState &aura) |
| static bool | IsValidAbilitySlot (uint8 abilitySlot) |
| static bool | IsValidAllyPetIndex (uint8 petIndex) |
| static uint32 | NormalizeHealth (uint32 health, uint32 maxHealth) |
Private Attributes | |
| ActivePetBattleAuraState | AllyAura |
| ActivePetBattleCooldown | AllyCooldowns [BATTLE_PET_MAX_ACTIVE_TEAM_PETS][BATTLE_PET_ABILITY_SLOT_COUNT] |
| ActivePetBattleAuraState | EnemyAura |
Definition at line 81 of file BattlePetBattleState.h.
Definition at line 183 of file BattlePetBattleState.h.
References ActivateIncomingDamageReduction(), and AllyAura.
Definition at line 188 of file BattlePetBattleState.h.
References ActivateIncomingDamageReduction(), and EnemyAura.
|
inlinestaticprivate |
Definition at line 626 of file BattlePetBattleState.h.
References ActivePetBattleAuraState::IncomingDamageReduction, and ActivePetBattleAuraState::Rounds.
Referenced by ActivateAllyIncomingDamageReduction(), and ActivateEnemyIncomingDamageReduction().
|
inline |
Definition at line 438 of file BattlePetBattleState.h.
References Finished, IsActive(), and RoundID.
Referenced by FinishAcceptedRound().
|
inline |
Definition at line 250 of file BattlePetBattleState.h.
References ApplyAbilityExchange(), and BATTLE_PET_ABILITY_SLOT_INVALID.
Referenced by ApplyAbilityExchange().
|
inline |
Definition at line 257 of file BattlePetBattleState.h.
References ActivePetBattleTurn::Accepted, ACTIVE_PET_BATTLE_TURN_EFFECT_DAMAGE, AllyFrontPet, ApplyAllyDamage(), ApplyEnemyDamage(), CanAcceptRound(), ActivePetBattleTurn::CasterPet, CreateTurn(), ActivePetBattleTurn::EffectKind, EnemyFrontPet, FinishAcceptedRound(), ActivePetBattleTurn::HasFinalRound, ActivePetBattleTurn::HasRoundResult, IsAllyAbilityOnCooldown(), IsFinished(), IsValidAbilitySlot(), ActivePetBattleTurn::RemainingHealth, ActivePetBattleTurn::RequiresFrontPet, StartAllyAbilityCooldown(), ActivePetBattleTurn::TargetDied, ActivePetBattleTurn::TargetPet, WaitingForAllyFrontPet, Winner, and ActivePetBattleTurn::Winner.
|
inline |
Definition at line 193 of file BattlePetBattleState.h.
References ApplyAbilityRound(), and BATTLE_PET_ABILITY_SLOT_INVALID.
Referenced by ApplyAbilityRound().
|
inline |
Definition at line 198 of file BattlePetBattleState.h.
References ActivePetBattleTurn::Accepted, ACTIVE_PET_BATTLE_TURN_EFFECT_DAMAGE, AllyFrontPet, ApplyEnemyDamage(), CanAcceptRound(), ActivePetBattleTurn::CasterPet, CreateTurn(), ActivePetBattleTurn::EffectKind, EnemyFrontPet, FinishAcceptedRound(), ActivePetBattleTurn::HasFinalRound, ActivePetBattleTurn::HasRoundResult, IsAllyAbilityOnCooldown(), IsFinished(), IsValidAbilitySlot(), ActivePetBattleTurn::RemainingHealth, StartAllyAbilityCooldown(), ActivePetBattleTurn::TargetDied, ActivePetBattleTurn::TargetPet, WaitingForAllyFrontPet, Winner, and ActivePetBattleTurn::Winner.
Definition at line 152 of file BattlePetBattleState.h.
References AllyAura, AllyFrontPet, AllyHealth, AllyTeam, ApplyIncomingDamageReduction(), Finish(), HasAliveAllyPetOtherThan(), IsAllyPetAlive(), PET_BATTLE_WINNER_ENEMY, SyncActiveAllyPet(), and WaitingForAllyFrontPet.
Referenced by ApplyAbilityExchange(), ApplyEnemyAbilityRound(), and ApplyTrapRoundWithEnemyResponse().
Definition at line 693 of file BattlePetBattleState.h.
References Finish(), Finished, and IsActive().
Referenced by ApplyEnemyDamage().
|
inline |
Definition at line 226 of file BattlePetBattleState.h.
References ActivePetBattleTurn::Accepted, ACTIVE_PET_BATTLE_TURN_EFFECT_DAMAGE, AllyFrontPet, ApplyAllyDamage(), CanAcceptRound(), ActivePetBattleTurn::CasterPet, CreateTurn(), ActivePetBattleTurn::EffectKind, EnemyFrontPet, FinishAcceptedRound(), ActivePetBattleTurn::HasFinalRound, ActivePetBattleTurn::HasRoundResult, IsFinished(), ActivePetBattleTurn::RemainingHealth, ActivePetBattleTurn::RequiresFrontPet, ActivePetBattleTurn::TargetDied, ActivePetBattleTurn::TargetPet, WaitingForAllyFrontPet, Winner, and ActivePetBattleTurn::Winner.
Definition at line 177 of file BattlePetBattleState.h.
References ApplyDamage(), ApplyIncomingDamageReduction(), EnemyAura, EnemyHealth, and PET_BATTLE_WINNER_ALLY.
Referenced by ApplyAbilityExchange(), and ApplyAbilityRound().
|
inline |
Definition at line 324 of file BattlePetBattleState.h.
References ActivePetBattleTurn::Abandoned, ActivePetBattleTurn::Accepted, CanAcceptRound(), CreateTurn(), Finish(), ActivePetBattleTurn::HasFinalRound, PET_BATTLE_WINNER_ENEMY, Winner, and ActivePetBattleTurn::Winner.
|
inlinestaticprivate |
Definition at line 635 of file BattlePetBattleState.h.
References ActivePetBattleAuraState::IncomingDamageReduction, and ActivePetBattleAuraState::Rounds.
Referenced by ApplyAllyDamage(), and ApplyEnemyDamage().
|
inline |
Definition at line 302 of file BattlePetBattleState.h.
References ActivePetBattleTurn::Accepted, ACTIVE_PET_BATTLE_TURN_EFFECT_SWAP, AllyFrontPet, CanAcceptRound(), ActivePetBattleTurn::CasterPet, CreateTurn(), ActivePetBattleTurn::EffectKind, FinishAcceptedRound(), ActivePetBattleTurn::HasRoundResult, IsAllyPetAlive(), SyncActiveAllyPet(), ActivePetBattleTurn::TargetPet, and WaitingForAllyFrontPet.
|
inline |
Definition at line 339 of file BattlePetBattleState.h.
References ActivePetBattleTurn::Accepted, CanAcceptRound(), CanTrap(), Captured, ActivePetBattleTurn::Captured, CreateTurn(), Finish(), FinishAcceptedRound(), ActivePetBattleTurn::HasFinalRound, ActivePetBattleTurn::HasRoundResult, PET_BATTLE_WINNER_ALLY, TrapFailedAttempts, WaitingForAllyFrontPet, Winner, and ActivePetBattleTurn::Winner.
|
inline |
Definition at line 372 of file BattlePetBattleState.h.
References ActivePetBattleTurn::Accepted, ACTIVE_PET_BATTLE_TURN_EFFECT_DAMAGE, AllyFrontPet, ApplyAllyDamage(), CanAcceptRound(), CanTrap(), Captured, ActivePetBattleTurn::Captured, ActivePetBattleTurn::CasterPet, CreateTurn(), ActivePetBattleTurn::EffectKind, EnemyFrontPet, Finish(), FinishAcceptedRound(), ActivePetBattleTurn::HasFinalRound, ActivePetBattleTurn::HasRoundResult, IsFinished(), PET_BATTLE_WINNER_ALLY, ActivePetBattleTurn::RemainingHealth, ActivePetBattleTurn::RequiresFrontPet, ActivePetBattleTurn::TargetDied, ActivePetBattleTurn::TargetPet, TrapFailedAttempts, WaitingForAllyFrontPet, Winner, and ActivePetBattleTurn::Winner.
|
inline |
Definition at line 90 of file BattlePetBattleState.h.
References CanAcceptRound().
|
inlineprivate |
Definition at line 530 of file BattlePetBattleState.h.
References Finished, IsActive(), and RoundID.
Referenced by ApplyAbilityExchange(), ApplyAbilityRound(), ApplyEnemyAbilityRound(), ApplyForfeit(), ApplySwapRound(), ApplyTrapRound(), ApplyTrapRoundWithEnemyResponse(), and CanAcceptInput().
|
inline |
Definition at line 91 of file BattlePetBattleState.h.
References GetTrapStatus(), and PET_BATTLE_TRAP_STATUS_ACTIVE.
Referenced by ApplyTrapRound(), and ApplyTrapRoundWithEnemyResponse().
|
inlineprivate |
Definition at line 598 of file BattlePetBattleState.h.
References AllyCooldowns, BATTLE_PET_ABILITY_SLOT_COUNT, BATTLE_PET_MAX_ACTIVE_TEAM_PETS, ActivePetBattleCooldown::Cooldown, and ActivePetBattleCooldown::OnCooldown.
Referenced by FinishAcceptedRound().
|
inlineprivate |
Definition at line 535 of file BattlePetBattleState.h.
References ActivePetBattleTurn::RoundID, Winner, and ActivePetBattleTurn::Winner.
Referenced by ApplyAbilityExchange(), ApplyAbilityRound(), ApplyEnemyAbilityRound(), ApplyForfeit(), ApplySwapRound(), ApplyTrapRound(), and ApplyTrapRoundWithEnemyResponse().
|
inlineprivate |
Definition at line 611 of file BattlePetBattleState.h.
References AllyCooldowns, BATTLE_PET_ABILITY_SLOT_COUNT, BATTLE_PET_MAX_ACTIVE_TEAM_PETS, and ActivePetBattleCooldown::Cooldown.
Referenced by FinishAcceptedRound().
|
inlinestaticprivate |
Definition at line 643 of file BattlePetBattleState.h.
References ActivePetBattleAuraState::Rounds.
Referenced by DecrementAuras().
|
inlineprivate |
Definition at line 653 of file BattlePetBattleState.h.
References AllyAura, DecrementAura(), and EnemyAura.
Referenced by FinishAcceptedRound().
|
inline |
Definition at line 444 of file BattlePetBattleState.h.
References Finished, and Winner.
Referenced by ApplyAllyDamage(), ApplyDamage(), ApplyForfeit(), ApplyTrapRound(), and ApplyTrapRoundWithEnemyResponse().
|
inlineprivate |
Definition at line 659 of file BattlePetBattleState.h.
References AdvanceRound(), ClearExpiredAllyCooldowns(), ActivePetBattleTurn::Cooldowns, DecrementAllyCooldowns(), DecrementAuras(), and SnapshotAllyCooldowns().
Referenced by ApplyAbilityExchange(), ApplyAbilityRound(), ApplyEnemyAbilityRound(), ApplySwapRound(), ApplyTrapRound(), and ApplyTrapRoundWithEnemyResponse().
|
inline |
Definition at line 89 of file BattlePetBattleState.h.
References Source.
Referenced by battlepet_commandscript::HandleBattlePetDebugCommand().
Definition at line 492 of file BattlePetBattleState.h.
References AllyCooldowns, IsValidAbilitySlot(), and IsValidAllyPetIndex().
Referenced by IsAllyAbilityOnCooldown().
Definition at line 475 of file BattlePetBattleState.h.
References AllyTeam, and BATTLE_PET_MAX_ACTIVE_TEAM_PETS.
|
inline |
Definition at line 418 of file BattlePetBattleState.h.
References AllyHealth, Captured, EnemyHealth, IsActive(), IsEnemyHealthTrapEligible(), PET_BATTLE_TRAP_STATUS_ACTIVE, PET_BATTLE_TRAP_STATUS_ALREADY_TRAPPED, PET_BATTLE_TRAP_STATUS_DEAD_PET, PET_BATTLE_TRAP_STATUS_HEALTH_TOO_HIGH, PET_BATTLE_TRAP_STATUS_JOURNAL_FULL, and PET_BATTLE_TRAP_STATUS_NOT_CAPTURABLE.
Referenced by CanTrap().
|
inlineprivate |
Definition at line 668 of file BattlePetBattleState.h.
References BATTLE_PET_MAX_ACTIVE_TEAM_PETS, and IsAllyPetAlive().
Referenced by ApplyAllyDamage().
|
inline |
Definition at line 465 of file BattlePetBattleState.h.
References AllyTeam, and IsValidAllyPetIndex().
Referenced by IsAllyPetAlive(), and SyncActiveAllyPet().
|
inline |
Definition at line 85 of file BattlePetBattleState.h.
References EnemyGUID.
Referenced by AdvanceRound(), ApplyDamage(), CanAcceptRound(), GetTrapStatus(), and SelectAllyFrontPet().
|
inlineprivate |
Definition at line 566 of file BattlePetBattleState.h.
References GetAllyAbilityCooldown().
Referenced by ApplyAbilityExchange(), and ApplyAbilityRound().
|
inline |
Definition at line 470 of file BattlePetBattleState.h.
References AllyTeam, and HasAllyPet().
Referenced by ApplyAllyDamage(), ApplySwapRound(), HasAliveAllyPetOtherThan(), and SelectAllyFrontPet().
|
inlineprivate |
Definition at line 548 of file BattlePetBattleState.h.
References EnemyHealth, and EnemyMaxHealth.
Referenced by GetTrapStatus().
|
inline |
Definition at line 86 of file BattlePetBattleState.h.
References Finished.
Referenced by ApplyAbilityExchange(), ApplyAbilityRound(), ApplyEnemyAbilityRound(), ApplyTrapRoundWithEnemyResponse(), and SelectAllyFrontPet().
|
inline |
Definition at line 88 of file BattlePetBattleState.h.
References BATTLE_PET_ACHIEVEMENT_SOURCE_PVP_MATCHMAKING, and Source.
|
inline |
Definition at line 87 of file BattlePetBattleState.h.
References PvPBattle.
Referenced by WorldSession::HandleBattlePetInput(), WorldSession::HandleBattlePetQuitNotify(), and WorldSession::HandleBattlePetRequestUpdate().
|
inlinestaticprivate |
Definition at line 561 of file BattlePetBattleState.h.
References BATTLE_PET_ABILITY_SLOT_COUNT.
Referenced by ApplyAbilityExchange(), ApplyAbilityRound(), GetAllyAbilityCooldown(), and StartAllyAbilityCooldown().
|
inlinestaticprivate |
Definition at line 556 of file BattlePetBattleState.h.
References BATTLE_PET_MAX_ACTIVE_TEAM_PETS.
Referenced by GetAllyAbilityCooldown(), HasAllyPet(), SetAllyPet(), StartAllyAbilityCooldown(), StartPvp(), and StartWild().
Definition at line 543 of file BattlePetBattleState.h.
Referenced by SetAllyPet(), StartPvp(), and StartWild().
|
inline |
Definition at line 96 of file BattlePetBattleState.h.
References AllyFrontPet, IsActive(), IsAllyPetAlive(), IsFinished(), SyncActiveAllyPet(), and WaitingForAllyFrontPet.
|
inline |
Definition at line 450 of file BattlePetBattleState.h.
References AllyFrontPet, AllyTeam, IsValidAllyPetIndex(), NormalizeHealth(), and SyncActiveAllyPet().
Referenced by StartPvp(), and StartWild().
|
inlineprivate |
Definition at line 585 of file BattlePetBattleState.h.
References AllyCooldowns, BATTLE_PET_ABILITY_SLOT_COUNT, BATTLE_PET_MAX_ACTIVE_TEAM_PETS, and ActivePetBattleCooldown::OnCooldown.
Referenced by FinishAcceptedRound().
|
inlineprivate |
Definition at line 571 of file BattlePetBattleState.h.
References ActivePetBattleCooldown::AbilityID, ActivePetBattleCooldown::AbilitySlot, AllyCooldowns, ActivePetBattleCooldown::Cooldown, IsValidAbilitySlot(), IsValidAllyPetIndex(), ActivePetBattleCooldown::Lockdown, ActivePetBattleCooldown::OnCooldown, and ActivePetBattleCooldown::PetPBOID.
Referenced by ApplyAbilityExchange(), and ApplyAbilityRound().
|
inline |
Definition at line 128 of file BattlePetBattleState.h.
References AllyFrontPet, BATTLE_PET_ACHIEVEMENT_SOURCE_PVP_DUEL, BATTLE_PET_ACHIEVEMENT_SOURCE_PVP_MATCHMAKING, EnemyFrontPet, EnemyGUID, EnemyHealth, EnemyLevel, EnemyMaxHealth, EnemyPetID, EnemyQuality, EnemySpecies, IsValidAllyPetIndex(), NormalizeHealth(), PvPBattle, SetAllyPet(), and Source.
|
inline |
Definition at line 107 of file BattlePetBattleState.h.
References AllyFrontPet, BATTLE_PET_ACHIEVEMENT_SOURCE_WILD, EnemyBreed, EnemyGUID, EnemyHealth, EnemyLevel, EnemyMaxHealth, EnemyPetID, EnemyQuality, EnemySpecies, IsValidAllyPetIndex(), NormalizeHealth(), PvPBattle, SetAllyPet(), and Source.
|
inlineprivate |
Definition at line 677 of file BattlePetBattleState.h.
References AllyFrontPet, AllyHealth, AllyMaxHealth, AllyPetID, AllyTeam, HasAllyPet(), ActivePetBattlePetState::Health, ActivePetBattlePetState::MaxHealth, and ActivePetBattlePetState::PetID.
Referenced by ApplyAllyDamage(), ApplySwapRound(), SelectAllyFrontPet(), and SetAllyPet().
| bool ActivePetBattle::AchievementsApplied = false |
Definition at line 514 of file BattlePetBattleState.h.
|
private |
Definition at line 527 of file BattlePetBattleState.h.
Referenced by ActivateAllyIncomingDamageReduction(), ApplyAllyDamage(), and DecrementAuras().
|
private |
Definition at line 526 of file BattlePetBattleState.h.
Referenced by ClearExpiredAllyCooldowns(), DecrementAllyCooldowns(), GetAllyAbilityCooldown(), SnapshotAllyCooldowns(), and StartAllyAbilityCooldown().
| uint8 ActivePetBattle::AllyFrontPet = 0 |
Definition at line 519 of file BattlePetBattleState.h.
Referenced by ApplyAbilityExchange(), ApplyAbilityRound(), ApplyAllyDamage(), ApplyEnemyAbilityRound(), ApplySwapRound(), ApplyTrapRoundWithEnemyResponse(), WorldSession::HandleBattlePetInputFirstPet(), SelectAllyFrontPet(), SetAllyPet(), StartPvp(), StartWild(), and SyncActiveAllyPet().
| uint32 ActivePetBattle::AllyHealth = 0 |
Definition at line 506 of file BattlePetBattleState.h.
Referenced by ApplyAllyDamage(), GetTrapStatus(), and SyncActiveAllyPet().
| uint32 ActivePetBattle::AllyMaxHealth = 0 |
Definition at line 505 of file BattlePetBattleState.h.
Referenced by SyncActiveAllyPet().
| uint64 ActivePetBattle::AllyPetID = 0 |
Definition at line 501 of file BattlePetBattleState.h.
Referenced by battlepet_commandscript::HandleBattlePetDebugCommand(), and SyncActiveAllyPet().
| ActivePetBattlePetState ActivePetBattle::AllyTeam[BATTLE_PET_MAX_ACTIVE_TEAM_PETS] |
Definition at line 523 of file BattlePetBattleState.h.
Referenced by ApplyAllyDamage(), GetAllyPetHealth(), HasAllyPet(), IsAllyPetAlive(), SetAllyPet(), and SyncActiveAllyPet().
|
staticconstexpr |
Definition at line 83 of file BattlePetBattleState.h.
Referenced by BattlePetMgr::BuildActivePetBattleFinalRound(), ClearExpiredAllyCooldowns(), DecrementAllyCooldowns(), GetAllyPetHealth(), HasAliveAllyPetOtherThan(), IsValidAllyPetIndex(), and SnapshotAllyCooldowns().
| bool ActivePetBattle::Captured = false |
Definition at line 510 of file BattlePetBattleState.h.
Referenced by ApplyTrapRound(), ApplyTrapRoundWithEnemyResponse(), GetTrapStatus(), and battlepet_commandscript::HandleBattlePetDebugCommand().
|
private |
Definition at line 528 of file BattlePetBattleState.h.
Referenced by ActivateEnemyIncomingDamageReduction(), ApplyEnemyDamage(), and DecrementAuras().
| uint8 ActivePetBattle::EnemyBreed = 0 |
Definition at line 517 of file BattlePetBattleState.h.
Referenced by StartWild().
| uint8 ActivePetBattle::EnemyFrontPet = 3 |
Definition at line 520 of file BattlePetBattleState.h.
Referenced by ApplyAbilityExchange(), ApplyAbilityRound(), ApplyEnemyAbilityRound(), ApplyTrapRoundWithEnemyResponse(), WorldSession::HandleBattlePetInputFirstPet(), and StartPvp().
| uint64 ActivePetBattle::EnemyGUID = 0 |
Definition at line 500 of file BattlePetBattleState.h.
Referenced by WorldSession::HandleBattlePetInput(), WorldSession::HandleBattlePetQuitNotify(), WorldSession::HandleBattlePetRequestUpdate(), IsActive(), StartPvp(), and StartWild().
| uint32 ActivePetBattle::EnemyHealth = 0 |
Definition at line 508 of file BattlePetBattleState.h.
Referenced by ApplyEnemyDamage(), GetTrapStatus(), battlepet_commandscript::HandleBattlePetDebugCommand(), IsEnemyHealthTrapEligible(), StartPvp(), and StartWild().
| uint8 ActivePetBattle::EnemyLevel = 0 |
Definition at line 515 of file BattlePetBattleState.h.
Referenced by battlepet_commandscript::HandleBattlePetDebugCommand(), WorldSession::HandleBattlePetInput(), StartPvp(), and StartWild().
| uint32 ActivePetBattle::EnemyMaxHealth = 0 |
Definition at line 507 of file BattlePetBattleState.h.
Referenced by battlepet_commandscript::HandleBattlePetDebugCommand(), IsEnemyHealthTrapEligible(), StartPvp(), and StartWild().
| uint64 ActivePetBattle::EnemyPetID = 0 |
Definition at line 502 of file BattlePetBattleState.h.
Referenced by StartPvp(), and StartWild().
| uint8 ActivePetBattle::EnemyQuality = 0 |
Definition at line 516 of file BattlePetBattleState.h.
Referenced by battlepet_commandscript::HandleBattlePetDebugCommand(), StartPvp(), and StartWild().
| uint16 ActivePetBattle::EnemySpecies = 0 |
Definition at line 503 of file BattlePetBattleState.h.
Referenced by battlepet_commandscript::HandleBattlePetDebugCommand(), WorldSession::HandleBattlePetInput(), StartPvp(), and StartWild().
| bool ActivePetBattle::Finished = false |
Definition at line 509 of file BattlePetBattleState.h.
Referenced by AdvanceRound(), ApplyDamage(), CanAcceptRound(), Finish(), and IsFinished().
| bool ActivePetBattle::PvPBattle = false |
Definition at line 511 of file BattlePetBattleState.h.
Referenced by IsPvP(), StartPvp(), and StartWild().
| bool ActivePetBattle::RewardsApplied = false |
Definition at line 513 of file BattlePetBattleState.h.
| uint32 ActivePetBattle::RoundID = 0 |
Definition at line 504 of file BattlePetBattleState.h.
Referenced by AdvanceRound(), CanAcceptRound(), battlepet_commandscript::HandleBattlePetDebugCommand(), WorldSession::HandleBattlePetInput(), WorldSession::HandleBattlePetInputFirstPet(), WorldSession::HandleBattlePetQuitNotify(), and WorldSession::HandleBattlePetRequestUpdate().
| BattlePetAchievementSource ActivePetBattle::Source = BATTLE_PET_ACHIEVEMENT_SOURCE_WILD |
Definition at line 512 of file BattlePetBattleState.h.
Referenced by GetAchievementSource(), IsMatchmaking(), StartPvp(), and StartWild().
| uint8 ActivePetBattle::TrapFailedAttempts = 0 |
Definition at line 521 of file BattlePetBattleState.h.
Referenced by ApplyTrapRound(), and ApplyTrapRoundWithEnemyResponse().
| bool ActivePetBattle::WaitingForAllyFrontPet = false |
Definition at line 522 of file BattlePetBattleState.h.
Referenced by ApplyAbilityExchange(), ApplyAbilityRound(), ApplyAllyDamage(), ApplyEnemyAbilityRound(), ApplySwapRound(), ApplyTrapRound(), ApplyTrapRoundWithEnemyResponse(), WorldSession::HandleBattlePetInputFirstPet(), and SelectAllyFrontPet().
| uint8 ActivePetBattle::Winner = PET_BATTLE_WINNER_NONE |
Definition at line 518 of file BattlePetBattleState.h.
Referenced by ApplyAbilityExchange(), ApplyAbilityRound(), ApplyEnemyAbilityRound(), ApplyForfeit(), ApplyTrapRound(), ApplyTrapRoundWithEnemyResponse(), CreateTurn(), Finish(), and battlepet_commandscript::HandleBattlePetDebugCommand().