30#ifndef HORIZON_ZONE_GAME_MAP_GRIDNOTIFIERPREDICATES_HPP
31#define HORIZON_ZONE_GAME_MAP_GRIDNOTIFIERPREDICATES_HPP
43 return !unit.expired() && ((unit.lock())->guid() ==
_guid);
58 return !
_source.expired() && !target.expired() &&
_source.lock()->is_in_range_of(target.lock(), range);
62 std::weak_ptr<Horizon::Zone::Unit>
_source;
71 bool operator()(std::weak_ptr<Horizon::Zone::Unit> target)
Cell cell[MAP_WIDTH][MAP_HEIGHT]
Definition: AStarTest.cpp:52
#define MAX_VIEW_RANGE
Definition: Horizon.hpp:59
Definition: GridNotifierPredicates.hpp:66
AOETargetTypePredicate(int aoe_target_mask)
Definition: GridNotifierPredicates.hpp:68
bool operator()(std::weak_ptr< Horizon::Zone::Unit > target)
Definition: GridNotifierPredicates.hpp:71
int _aoe_target_mask
Definition: GridNotifierPredicates.hpp:77
Definition: GridNotifierPredicates.hpp:81
MapCoords _cell
Definition: GridNotifierPredicates.hpp:92
CellCheckPredicate(MapCoords cell)
Definition: GridNotifierPredicates.hpp:83
bool operator()(MapCoords cell)
Definition: GridNotifierPredicates.hpp:86
Definition: GridNotifierPredicates.hpp:37
uint32_t _guid
Definition: GridNotifierPredicates.hpp:47
bool operator()(std::weak_ptr< Horizon::Zone::Unit > unit)
Definition: GridNotifierPredicates.hpp:41
GUIDCheckPredicate(uint32_t guid)
Definition: GridNotifierPredicates.hpp:39
Definition: GridNotifierPredicates.hpp:51
std::weak_ptr< Horizon::Zone::Unit > _source
Definition: GridNotifierPredicates.hpp:62
RangeCheckPredicate(std::weak_ptr< Horizon::Zone::Unit > source)
Definition: GridNotifierPredicates.hpp:53
bool operator()(std::weak_ptr< Horizon::Zone::Unit > target, uint16_t range=MAX_VIEW_RANGE)
Definition: GridNotifierPredicates.hpp:56