VIPRA Documentation
Loading...
Searching...
No Matches
VIPRA::Behaviors::ModifierDistance Class Reference

Target modifier for distance to target. More...

#include <modifier_distance.hpp>

Public Member Functions

 ModifierDistance (NumericValue value)
 
auto operator() (Simpack pack, VIPRA::idx targetIdx, VIPRA::idx selfIdx) const -> bool
 Returns if target is within distance.
 

Detailed Description

Target modifier for distance to target.

Member Function Documentation

◆ operator()()

auto VIPRA::Behaviors::ModifierDistance::operator() ( Simpack pack,
VIPRA::idx targetIdx,
VIPRA::idx selfIdx ) const -> bool
inline

Returns if target is within distance.

Parameters
pack: simulation pack
targetIdx: target to check
selfIdx: pedsetrian looking for target
Returns
true : if within distance
false : if NOT within distance

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