Horizon Official Technical Documentation
AOETargetTypePredicate Class Reference

#include <GridNotifierPredicates.hpp>

Public Member Functions

 AOETargetTypePredicate (int aoe_target_mask)
 
bool operator() (std::weak_ptr< Horizon::Zone::Unit > target)
 

Private Attributes

int _aoe_target_mask { 0 }
 

Constructor & Destructor Documentation

◆ AOETargetTypePredicate()

AOETargetTypePredicate::AOETargetTypePredicate ( int  aoe_target_mask)
inline
69 : _aoe_target_mask(aoe_target_mask){ }
int _aoe_target_mask
Definition: GridNotifierPredicates.hpp:77

Member Function Documentation

◆ operator()()

bool AOETargetTypePredicate::operator() ( std::weak_ptr< Horizon::Zone::Unit target)
inline
72 {
73 return !target.expired() && (target.lock())->is_of_type(_aoe_target_mask);
74 }

References _aoe_target_mask.

Member Data Documentation

◆ _aoe_target_mask

int AOETargetTypePredicate::_aoe_target_mask { 0 }
private

Referenced by operator()().


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