VIPRA Documentation
Loading...
Searching...
No Matches
VIPRA::Behaviors::TargetNearest Struct Reference

Selects the nearest pedestrian with any of the given types. More...

#include <target_nearest.hpp>

Collaboration diagram for VIPRA::Behaviors::TargetNearest:

Public Member Functions

 TargetNearest (Ptype type, bool allPeds=false, std::optional< TargetModifier > modifier=std::nullopt)
 
auto operator() (Simpack pack, Self self) const -> Target
 Returns the nearest pedestrian that has any of the target types.
 

Public Attributes

Ptype type
 
bool allPeds
 
std::optional< TargetModifiermodifier
 

Detailed Description

Selects the nearest pedestrian with any of the given types.

Member Function Documentation

◆ operator()()

auto VIPRA::Behaviors::TargetNearest::operator() ( Simpack pack,
Self self ) const -> Target
inline

Returns the nearest pedestrian that has any of the target types.

Parameters
pack: simulation pack
self: pedestrain calling the function
Returns
Target

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