18 auto description = episode->GetActorById(
_parent);
19 if (!description.has_value()) {
20 throw_exception(std::runtime_error(
"LaneInvasionEvent: parent already dead"));
22 return episode->MakeActor(*description);
void throw_exception(const std::exception &e)
boost::shared_ptr< T > SharedPtr
Use this SharedPtr (boost::shared_ptr) to keep compatibility with boost::python, but it would be nice...
This file contains definitions of common data structures used in traffic manager. ...
const auto & GetEpisode() const
SharedPtr< client::Actor > GetActor() const
Get "self" actor. Actor that invaded another lane.