VIPRA Documentation
Loading...
Searching...
No Matches
target.hpp
1#pragma once
2
3#include "vipra/types/idx.hpp"
4#include "vipra/vipra_behaviors/definitions/sim_pack.hpp"
5
6namespace VIPRA::Behaviors {
7enum class TargetType {
8 INVALID,
9 PEDESTRIAN,
10 LOCATION,
11 EVENT,
12};
13
18struct Target {
19 TargetType type;
20 VIPRA::idx targetIdx;
21};
22
27struct Self {
28 Target target;
29};
30
35using TargetFunc = std::function<Target(Simpack, Self)>;
36} // namespace VIPRA::Behaviors
Struct for explicitly targeting the self.
Definition target.hpp:27
Holds references to commonly used parameters for simpler passing.
Definition sim_pack.hpp:23
Holds information about what to target.
Definition target.hpp:18