Class which implements the state changing of traffic lights. More...
#include <TrafficLightGroup.h>
Public Member Functions | |
void | AddController (UTrafficLightController *Controller) |
ATrafficLightGroup () | |
TArray< UTrafficLightController * > & | GetControllers () |
int | GetJunctionId () const |
bool | IsFrozen () const |
void | ResetGroup () |
void | SetFrozenGroup (bool InFreeze) |
Protected Member Functions | |
virtual void | Tick (float DeltaTime) override |
Private Member Functions | |
void | NextController () |
Private Attributes | |
friend | ATrafficLightManager |
bool | bIsFrozen = false |
TArray< UTrafficLightController * > | Controllers |
int | CurrentController = 0 |
int | JunctionId = -1 |
USceneComponent * | SceneComponent |
Class which implements the state changing of traffic lights.
Definition at line 20 of file TrafficLightGroup.h.
ATrafficLightGroup::ATrafficLightGroup | ( | ) |
Definition at line 13 of file TrafficLightGroup.cpp.
References SceneComponent.
void ATrafficLightGroup::AddController | ( | UTrafficLightController * | Controller | ) |
Definition at line 86 of file TrafficLightGroup.cpp.
References Controllers, and UTrafficLightController::SetGroup().
|
inline |
Definition at line 29 of file TrafficLightGroup.h.
Referenced by ATrafficLightBase::GetGroupTrafficLights().
int ATrafficLightGroup::GetJunctionId | ( | ) | const |
Definition at line 81 of file TrafficLightGroup.cpp.
References JunctionId.
bool ATrafficLightGroup::IsFrozen | ( | ) | const |
Definition at line 26 of file TrafficLightGroup.cpp.
References bIsFrozen.
Referenced by FFrameData::AddTrafficLightState(), ACarlaRecorder::AddTrafficLightState(), FWorldObserver_GetActorState(), and FWorldObserver_GetDormantActorState().
|
private |
Definition at line 74 of file TrafficLightGroup.cpp.
References Controllers, CurrentController, and UTrafficLightController::StartCycle().
Referenced by Tick().
void ATrafficLightGroup::ResetGroup | ( | ) |
Definition at line 31 of file TrafficLightGroup.cpp.
References Controllers, CurrentController, and UTrafficLightController::StartCycle().
void ATrafficLightGroup::SetFrozenGroup | ( | bool | InFreeze | ) |
Definition at line 21 of file TrafficLightGroup.cpp.
References bIsFrozen.
Referenced by CarlaReplayerHelper::ProcessReplayerStateTrafficLight(), and FFrameData::ProcessReplayerStateTrafficLight().
|
overrideprotectedvirtual |
Definition at line 43 of file TrafficLightGroup.cpp.
References UTrafficLightController::AdvanceTimeAndCycleFinished(), bIsFrozen, Controllers, CurrentController, UCarlaStatics::GetCurrentEpisode(), and NextController().
|
private |
Definition at line 55 of file TrafficLightGroup.h.
|
private |
Definition at line 70 of file TrafficLightGroup.h.
Referenced by IsFrozen(), SetFrozenGroup(), and Tick().
|
private |
Definition at line 61 of file TrafficLightGroup.h.
Referenced by AddController(), NextController(), ResetGroup(), and Tick().
|
private |
Definition at line 64 of file TrafficLightGroup.h.
Referenced by NextController(), ResetGroup(), and Tick().
|
private |
Definition at line 73 of file TrafficLightGroup.h.
Referenced by GetJunctionId(), and ATrafficLightManager::RegisterLightComponentFromOpenDRIVE().
|
private |
Definition at line 58 of file TrafficLightGroup.h.
Referenced by ATrafficLightGroup().