AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
HealthCheckEventData Struct Reference

#include "ScriptedCreature.h"

Public Member Functions

 HealthCheckEventData (uint8 healthPct, std::function< void()> exec, uint8 status=HEALTH_CHECK_SCHEDULED, bool allowedWhileCasting=true, Milliseconds Delay=0s)
 
bool HasBeenProcessed () const
 
bool IsPending () const
 
Milliseconds GetDelay () const
 
void UpdateStatus (uint8 status)
 

Public Attributes

uint8 _healthPct
 
std::function< void()> _exec
 
uint8 _status
 
bool _allowedWhileCasting
 
Milliseconds _delay
 

Detailed Description

Constructor & Destructor Documentation

◆ HealthCheckEventData()

HealthCheckEventData::HealthCheckEventData ( uint8  healthPct,
std::function< void()>  exec,
uint8  status = HEALTH_CHECK_SCHEDULED,
bool  allowedWhileCasting = true,
Milliseconds  Delay = 0s 
)
inline
466: _healthPct(healthPct), _exec(exec), _status(status), _allowedWhileCasting(allowedWhileCasting), _delay(Delay) { };
uint8 _healthPct
Definition ScriptedCreature.h:468
std::function< void()> _exec
Definition ScriptedCreature.h:469
uint8 _status
Definition ScriptedCreature.h:470
Milliseconds _delay
Definition ScriptedCreature.h:472
bool _allowedWhileCasting
Definition ScriptedCreature.h:471

Member Function Documentation

◆ GetDelay()

Milliseconds HealthCheckEventData::GetDelay ( ) const
inline
476{ return _delay; };

References _delay.

◆ HasBeenProcessed()

bool HealthCheckEventData::HasBeenProcessed ( ) const
inline
474{ return _status == HEALTH_CHECK_PROCESSED; };
@ HEALTH_CHECK_PROCESSED
Definition ScriptedCreature.h:459

References _status, and HEALTH_CHECK_PROCESSED.

Referenced by BossAI::DamageTaken().

◆ IsPending()

bool HealthCheckEventData::IsPending ( ) const
inline
475{ return _status == HEALTH_CHECK_PENDING; };
@ HEALTH_CHECK_PENDING
Definition ScriptedCreature.h:461

References _status, and HEALTH_CHECK_PENDING.

Referenced by BossAI::OnSpellCastFinished().

◆ UpdateStatus()

void HealthCheckEventData::UpdateStatus ( uint8  status)
inline

Member Data Documentation

◆ _allowedWhileCasting

bool HealthCheckEventData::_allowedWhileCasting

Referenced by BossAI::DamageTaken().

◆ _delay

Milliseconds HealthCheckEventData::_delay

Referenced by GetDelay().

◆ _exec

std::function<void()> HealthCheckEventData::_exec

◆ _healthPct

uint8 HealthCheckEventData::_healthPct

◆ _status

uint8 HealthCheckEventData::_status

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