AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
MockAuraStub Class Reference

GMock-enabled Aura stub for verification. More...

#include "AuraStub.h"

Inheritance diagram for MockAuraStub:
AuraStub

Public Member Functions

 MockAuraStub (uint32_t id=0, uint32_t spellFamilyName=0)
 
 MOCK_METHOD (bool, DropCharge,(),(override))
 
 MOCK_METHOD (bool, ModStackAmount,(int32_t amount, bool resetPeriodicTimer),(override))
 
 MOCK_METHOD (void, Remove,(),(override))
 
- Public Member Functions inherited from AuraStub
 AuraStub (uint32_t id=0, uint32_t spellFamilyName=0)
 
virtual ~AuraStub ()=default
 
uint32_t GetId () const
 
uint32_t GetSpellFamilyName () const
 
void SetId (uint32_t id)
 
void SetSpellFamilyName (uint32_t familyName)
 
AuraEffectStubGetEffect (uint8_t effIndex) const
 
bool HasEffect (uint8_t effIndex) const
 
uint8_t GetEffectMask () const
 
uint8_t GetCharges () const
 
bool IsUsingCharges () const
 
void SetCharges (uint8_t charges)
 
void SetUsingCharges (bool usingCharges)
 
virtual bool DropCharge ()
 
bool WasChargeDropped () const
 
void ResetChargeDropped ()
 
int32_t GetDuration () const
 
int32_t GetMaxDuration () const
 
bool IsPermanent () const
 
void SetDuration (int32_t duration)
 
void SetMaxDuration (int32_t maxDuration)
 
bool IsProcOnCooldown (TimePoint now) const
 
void AddProcCooldown (TimePoint cooldownEnd)
 
void ResetProcCooldown ()
 
uint8_t GetStackAmount () const
 
void SetStackAmount (uint8_t amount)
 
virtual bool ModStackAmount (int32_t amount, bool=true)
 Modify stack amount (for PROC_ATTR_USE_STACKS_FOR_CHARGES) Mimics Aura::ModStackAmount() - removes aura if stacks reach 0.
 
bool IsPassive () const
 
bool IsRemoved () const
 
void SetPassive (bool isPassive)
 
void SetRemoved (bool isRemoved)
 
virtual void Remove ()
 Mark aura as removed (for charge exhaustion) Mimics Aura::Remove()
 
AuraApplicationStubGetOrCreateApplication ()
 
AuraApplicationStubGetApplication () const
 

Additional Inherited Members

- Public Types inherited from AuraStub
using TimePoint = std::chrono::steady_clock::time_point
 

Detailed Description

GMock-enabled Aura stub for verification.

Constructor & Destructor Documentation

◆ MockAuraStub()

MockAuraStub::MockAuraStub ( uint32_t  id = 0,
uint32_t  spellFamilyName = 0 
)
inline
279 : AuraStub(id, spellFamilyName) {}
Lightweight stub for Aura proc-related functionality.
Definition AuraStub.h:111

Member Function Documentation

◆ MOCK_METHOD() [1/3]

MockAuraStub::MOCK_METHOD ( bool  ,
DropCharge  ,
()  ,
(override)   
)

◆ MOCK_METHOD() [2/3]

MockAuraStub::MOCK_METHOD ( bool  ,
ModStackAmount  ,
(int32_t amount, bool resetPeriodicTimer)  ,
(override)   
)

◆ MOCK_METHOD() [3/3]

MockAuraStub::MOCK_METHOD ( void  ,
Remove  ,
()  ,
(override)   
)

The documentation for this class was generated from the following file: