C# Class TrafficManager.PrioritySegment

Show file Open project: seiggy/Skylines-Traffic-Manager Class Usage Examples

Public Properties

Property Type Description
Cars List
CarsOnLanes int[]
Nodeid ushort
NumCars int
Segmentid int
Type PriorityType

Public Methods

Method Description
AddCar ( ushort vehicleId ) : void
GetCarsOnLane ( int lane ) : int
HasCar ( ushort vehicleId ) : bool
PrioritySegment ( ushort nodeid, int segmentid, PriorityType type ) : System
RemoveCar ( ushort vehicleId ) : void

Private Methods

Method Description
_numCarsOnLane ( ) : void

Method Details

AddCar() public method

public AddCar ( ushort vehicleId ) : void
vehicleId ushort
return void

GetCarsOnLane() public method

public GetCarsOnLane ( int lane ) : int
lane int
return int

HasCar() public method

public HasCar ( ushort vehicleId ) : bool
vehicleId ushort
return bool

PrioritySegment() public method

public PrioritySegment ( ushort nodeid, int segmentid, PriorityType type ) : System
nodeid ushort
segmentid int
type PriorityType
return System

RemoveCar() public method

public RemoveCar ( ushort vehicleId ) : void
vehicleId ushort
return void

Property Details

Cars public property

public List Cars
return List

CarsOnLanes public property

public int[] CarsOnLanes
return int[]

Nodeid public property

public ushort Nodeid
return ushort

NumCars public property

public int NumCars
return int

Segmentid public property

public int Segmentid
return int

Type public property

public PriorityType Type
return PriorityType