SimulationCraft
SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm).
covenant::covenant_ability_cast_cb_t Struct Reference
Inheritance diagram for covenant::covenant_ability_cast_cb_t:
dbc_proc_callback_t action_callback_t noncopyable

Public Member Functions

 covenant_ability_cast_cb_t (player_t *p, const special_effect_t &e)
 
void initialize () override
 Initialize the proc callback. More...
 
void trigger (action_t *a, action_state_t *s) override
 
- Public Member Functions inherited from dbc_proc_callback_t
 dbc_proc_callback_t (const item_t &i, const special_effect_t &e)
 
 dbc_proc_callback_t (const item_t *i, const special_effect_t &e)
 
 dbc_proc_callback_t (player_t *p, const special_effect_t &e)
 
cooldown_tget_cooldown (player_t *target)
 
virtual player_ttarget (const action_state_t *state) const
 
rng::rng_trng () const
 
- Public Member Functions inherited from action_callback_t
 action_callback_t (player_t *l, bool ap=false, bool asp=false)
 
virtual void reset ()
 
virtual void activate ()
 
virtual void deactivate ()
 

Public Attributes

std::vector< unsigned > class_abilities
 
unsigned base_ability
 
auto_dispose< std::vector< covenant_cb_base_t * > > cb_list
 
- Public Attributes inherited from dbc_proc_callback_t
const item_titem
 
const special_effect_teffect
 
cooldown_tcooldown
 
target_specific_cooldown_ttarget_specific_cooldown
 
real_ppm_trppm
 
double proc_chance
 
double ppm
 
buff_tproc_buff
 
action_tproc_action
 
weapon_tweapon
 
bool expire_on_max_stack
 Expires proc_buff on max stack, automatically set if proc_buff max_stack > 1.
 
trigger_fn_type trigger_type
 Trigger condition override type.
 
const trigger_fn_t * trigger_fn
 Override proc trigger condition with a separate callback function.
 
execute_fn_t * execute_fn
 Override execution behavior with a separate callback function.
 
bool can_only_proc_from_class_abilites
 
bool can_proc_from_procs
 
- Public Attributes inherited from action_callback_t
player_tlistener
 
bool active
 
bool allow_self_procs
 
bool allow_procs
 

Additional Inherited Members

- Public Types inherited from dbc_proc_callback_t
enum  trigger_fn_type { trigger_fn_type::NONE, trigger_fn_type::CONDITION, trigger_fn_type::TRIGGER }
 
using execute_fn_t = std::function< void(const dbc_proc_callback_t *, action_t *, action_state_t *)>
 
using trigger_fn_t = std::function< bool(const dbc_proc_callback_t *, action_t *, action_state_t *)>
 
- Static Public Member Functions inherited from action_callback_t
static void trigger (const std::vector< action_callback_t *> &v, action_t *a, action_state_t *state)
 
static void reset (const std::vector< action_callback_t *> &v)
 
- Static Public Attributes inherited from dbc_proc_callback_t
static const item_t default_item_ = item_t()
 
- Protected Member Functions inherited from dbc_proc_callback_t
virtual void execute (action_t *, action_state_t *state)
 Base rules for proc execution. More...
 

Member Function Documentation

◆ initialize()

void covenant::covenant_ability_cast_cb_t::initialize ( )
overridevirtual

Initialize the proc callback.

This method is called by each actor through player_t::register_callbacks(), which is invoked as the last thing in the actor initialization process.

Reimplemented from dbc_proc_callback_t.