iTS - Intelligent Traffic System
V 1.0.5
|
TS lane connector class. This class holds all the information regarding the connectors. More...
Public Types | |
enum | Direction { Left, Right, Straight } |
Public Attributes | |
Vector3 | conectorA = Vector3.zero |
The conector a. The starting point of this connector. More... | |
Vector3 | conectorB = Vector3.zero |
The conector b. The ending point of this connector. More... | |
List< Vector3 > | middlePoints = new List<Vector3>() |
The middle points. The control points of the spline for this connector. More... | |
TSPoints[] | points |
The points. All the points that conforms this connector. More... | |
int | nextLane |
The next lane. More... | |
int | previousLane |
The previous lane. More... | |
bool | forcedStop = false |
The forced stop. The cars have to stop on this junction if there is no "convoy" crossing at the moment?. More... | |
bool | isReserved = false |
Is reserved. Is this connector already reserved, this is for internal use only. More... | |
bool | isRequested = false |
Is requested. Have been this connector requested? More... | |
List< int > | reservedByID = new List<int>() |
The reserved by ID. List of all the cars ID's that have reserved this connector. More... | |
int | priority = 1 |
The priority. More... | |
Direction | direction = Direction.Straight |
The direction. This is to know if this connector is a straight, left or right connector. More... | |
float | totalDistance = 0f |
The total distance of this connector. More... | |
float | randomWeight = 0 |
The random weight. This is for internal use. More... | |
TSLaneInfo.VehicleType | vehicleType = ((TSLaneInfo.VehicleType) (-1)) |
The type of the vehicle. More... | |
bool | connectorReservedByTrafficLight = false |
The connector reserved by traffic light. More... | |
float | remainingGreenLightTime = -1 |
The remaining green light time. By default is -1, which means this connector have no trafficlight More... | |
TS lane connector class. This class holds all the information regarding the connectors.
Vector3 TSLaneConnector.conectorA = Vector3.zero |
The conector a. The starting point of this connector.
Vector3 TSLaneConnector.conectorB = Vector3.zero |
The conector b. The ending point of this connector.
bool TSLaneConnector.connectorReservedByTrafficLight = false |
The connector reserved by traffic light.
Direction TSLaneConnector.direction = Direction.Straight |
The direction. This is to know if this connector is a straight, left or right connector.
bool TSLaneConnector.forcedStop = false |
The forced stop. The cars have to stop on this junction if there is no "convoy" crossing at the moment?.
bool TSLaneConnector.isRequested = false |
Is requested. Have been this connector requested?
bool TSLaneConnector.isReserved = false |
Is reserved. Is this connector already reserved, this is for internal use only.
List<Vector3> TSLaneConnector.middlePoints = new List<Vector3>() |
The middle points. The control points of the spline for this connector.
int TSLaneConnector.nextLane |
The next lane.
TSPoints [] TSLaneConnector.points |
The points. All the points that conforms this connector.
int TSLaneConnector.previousLane |
The previous lane.
int TSLaneConnector.priority = 1 |
The priority.
float TSLaneConnector.randomWeight = 0 |
The random weight. This is for internal use.
float TSLaneConnector.remainingGreenLightTime = -1 |
The remaining green light time. By default is -1, which means this connector have no trafficlight
List<int> TSLaneConnector.reservedByID = new List<int>() |
The reserved by ID. List of all the cars ID's that have reserved this connector.
float TSLaneConnector.totalDistance = 0f |
The total distance of this connector.
TSLaneInfo.VehicleType TSLaneConnector.vehicleType = ((TSLaneInfo.VehicleType) (-1)) |
The type of the vehicle.