C# Class Osls.Plants.RoadConstructionSite.TrafficController

Controls the cars in the simulation
Show file Open project: Kersoph/open-sequential-logic-sandbox

Public Methods

Method Description
CalculateNextStep ( int deltaTimeMs ) : void

Called every simulation step to update the traffic

CollectReports ( ) : List

Returns the collected reports for the simulated cars

TrafficController ( Osls.Plants.RoadConstructionSite.PathController topPath, Osls.Plants.RoadConstructionSite.PathController botPath ) : Godot

Private Methods

Method Description
CalculateCollisions ( ) : void

Calculates the collision matrix and checks the distances

CheckNextSpawnTime ( Osls.Plants.RoadConstructionSite.PathController referencePath, int time ) : int
CollectCompletedEntities ( ) : void

Method Details

CalculateNextStep() public method

Called every simulation step to update the traffic
public CalculateNextStep ( int deltaTimeMs ) : void
deltaTimeMs int
return void

CollectReports() public method

Returns the collected reports for the simulated cars
public CollectReports ( ) : List
return List

TrafficController() public method

public TrafficController ( Osls.Plants.RoadConstructionSite.PathController topPath, Osls.Plants.RoadConstructionSite.PathController botPath ) : Godot
topPath Osls.Plants.RoadConstructionSite.PathController
botPath Osls.Plants.RoadConstructionSite.PathController
return Godot