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

Modifies who can be a target for an action, by distance, direction, etc. More...

#include <target_modifier.hpp>

Public Member Functions

auto check (Simpack pack, VIPRA::idx self, VIPRA::idx target) const -> bool
 Checks that a pedestrian passes all modifier checks.
 
void add_check (Modifier &&check)
 Adds another modifier check to the target modifier.
 

Detailed Description

Modifies who can be a target for an action, by distance, direction, etc.

Member Function Documentation

◆ add_check()

void VIPRA::Behaviors::TargetModifier::add_check ( Modifier && check)
inline

Adds another modifier check to the target modifier.

Parameters
check: check to add

◆ check()

auto VIPRA::Behaviors::TargetModifier::check ( Simpack pack,
VIPRA::idx self,
VIPRA::idx target ) const -> bool
inlinenodiscard

Checks that a pedestrian passes all modifier checks.

Parameters
pack: simulation pack
target: target to check
self: pedestrian looking for target
Returns
true : if target passes check
false : if target does NOT pass check

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