visitor class More...
#include <WalkerEvent.h>
Public Member Functions | |
EventResult | operator() (WalkerEventIgnore &event) |
EventResult | operator() (WalkerEventWait &event) |
EventResult | operator() (WalkerEventStopAndCheck &event) |
WalkerEventVisitor (WalkerManager *manager, ActorId id, double delta) | |
Private Attributes | |
double | _delta { 0 } |
ActorId | _id { 0 } |
WalkerManager * | _manager { nullptr } |
visitor class
Definition at line 58 of file WalkerEvent.h.
|
inline |
Definition at line 60 of file WalkerEvent.h.
EventResult carla::nav::WalkerEventVisitor::operator() | ( | WalkerEventIgnore & | event | ) |
Definition at line 15 of file WalkerEvent.cpp.
References carla::nav::End.
EventResult carla::nav::WalkerEventVisitor::operator() | ( | WalkerEventWait & | event | ) |
Definition at line 19 of file WalkerEvent.cpp.
References _delta, carla::nav::Continue, carla::nav::End, and carla::nav::WalkerEventWait::time.
EventResult carla::nav::WalkerEventVisitor::operator() | ( | WalkerEventStopAndCheck & | event | ) |
Definition at line 28 of file WalkerEvent.cpp.
References _delta, _id, _manager, carla::nav::WalkerEventStopAndCheck::actor, carla::nav::WalkerEventStopAndCheck::check_for_trafficlight, carla::nav::Continue, carla::nav::End, carla::nav::WalkerManager::GetNavigation(), carla::nav::WalkerManager::GetTrafficLightAffecting(), carla::nav::WalkerManager::GetWalkerCrosswalkEnd(), carla::nav::Navigation::GetWalkerPosition(), carla::rpc::Green, carla::nav::Navigation::HasVehicleNear(), carla::nav::Navigation::PauseAgent(), carla::nav::WalkerEventStopAndCheck::time, carla::nav::TimeOut, carla::geom::Vector3D::x, carla::geom::Vector3D::y, carla::rpc::Yellow, and carla::geom::Vector3D::z.
|
private |
Definition at line 67 of file WalkerEvent.h.
Referenced by operator()().
|
private |
Definition at line 66 of file WalkerEvent.h.
Referenced by operator()().
|
private |
Definition at line 65 of file WalkerEvent.h.
Referenced by operator()().