Modifies who can be a target for an action, by distance, direction, etc.
More...
#include <target_modifier.hpp>
|
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.
|
|
Modifies who can be a target for an action, by distance, direction, etc.
◆ add_check()
void VIPRA::Behaviors::TargetModifier::add_check |
( |
Modifier && | check | ) |
|
|
inline |
Adds another modifier check to the target modifier.
- Parameters
-
◆ 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: