C# Class TrafficManager.CustomPathManager

Inheritance: PathManager
Mostra file Open project: seiggy/Skylines-Traffic-Manager Class Usage Examples

Public Properties

Property Type Description
PathFindInstance CustomPathFind

Public Methods

Method Description
CreatePath ( uint &unit, Randomizer &randomizer, uint buildIndex, PathUnit startPos, PathUnit endPos, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength ) : bool
CreatePath ( uint &unit, Randomizer &randomizer, uint buildIndex, PathUnit startPosA, PathUnit startPosB, PathUnit endPosA, PathUnit endPosB, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength ) : bool
CreatePath ( uint &unit, Randomizer &randomizer, uint buildIndex, PathUnit startPosA, PathUnit startPosB, PathUnit endPosA, PathUnit endPosB, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength, bool isHeavyVehicle, bool ignoreBlocked, bool stablePath, bool skipQueue ) : bool
CreatePath ( uint &unit, Randomizer &randomizer, uint buildIndex, PathUnit startPosA, PathUnit startPosB, PathUnit endPosA, PathUnit endPosB, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength, bool isHeavyVehicle, bool ignoreBlocked, bool stablePath, bool skipQueue, ItemClass vehicleService ) : bool
CreatePath ( uint &unit, Randomizer &randomizer, uint buildIndex, PathUnit startPosA, PathUnit startPosB, PathUnit endPosA, PathUnit endPosB, PathUnit vehiclePosition, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength, bool isHeavyVehicle, bool ignoreBlocked, bool stablePath, bool skipQueue ) : bool
CreatePath ( uint &unit, Randomizer &randomizer, uint buildIndex, PathUnit startPosA, PathUnit startPosB, PathUnit endPosA, PathUnit endPosB, PathUnit vehiclePosition, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength, bool isHeavyVehicle, bool ignoreBlocked, bool stablePath, bool skipQueue, ItemClass vehicleService ) : bool
GetLaneID ( PathUnit pathPos ) : uint
UpdateWithPathManagerValues ( PathManager stockPathManager ) : void

Protected Methods

Method Description
Awake ( ) : void

Private Methods

Method Description
assignPathProperties ( uint unit, uint buildIndex, PathUnit startPosA, PathUnit startPosB, PathUnit endPosA, PathUnit endPosB, PathUnit vehiclePosition, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength, byte simulationFlags ) : void
createSimulationFlag ( bool isHeavyVehicle, bool ignoreBlocked, bool stablePath, ItemClass vehicleService ) : byte
findShortestPath ( uint unit, bool skipQueue ) : bool

Method Details

Awake() protected method

protected Awake ( ) : void
return void

CreatePath() public method

public CreatePath ( uint &unit, Randomizer &randomizer, uint buildIndex, PathUnit startPos, PathUnit endPos, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength ) : bool
unit uint
randomizer Randomizer
buildIndex uint
startPos PathUnit
endPos PathUnit
laneTypes NetInfo
vehicleTypes VehicleInfo
maxLength float
return bool

CreatePath() public method

public CreatePath ( uint &unit, Randomizer &randomizer, uint buildIndex, PathUnit startPosA, PathUnit startPosB, PathUnit endPosA, PathUnit endPosB, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength ) : bool
unit uint
randomizer Randomizer
buildIndex uint
startPosA PathUnit
startPosB PathUnit
endPosA PathUnit
endPosB PathUnit
laneTypes NetInfo
vehicleTypes VehicleInfo
maxLength float
return bool

CreatePath() public method

public CreatePath ( uint &unit, Randomizer &randomizer, uint buildIndex, PathUnit startPosA, PathUnit startPosB, PathUnit endPosA, PathUnit endPosB, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength, bool isHeavyVehicle, bool ignoreBlocked, bool stablePath, bool skipQueue ) : bool
unit uint
randomizer Randomizer
buildIndex uint
startPosA PathUnit
startPosB PathUnit
endPosA PathUnit
endPosB PathUnit
laneTypes NetInfo
vehicleTypes VehicleInfo
maxLength float
isHeavyVehicle bool
ignoreBlocked bool
stablePath bool
skipQueue bool
return bool

CreatePath() public method

public CreatePath ( uint &unit, Randomizer &randomizer, uint buildIndex, PathUnit startPosA, PathUnit startPosB, PathUnit endPosA, PathUnit endPosB, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength, bool isHeavyVehicle, bool ignoreBlocked, bool stablePath, bool skipQueue, ItemClass vehicleService ) : bool
unit uint
randomizer Randomizer
buildIndex uint
startPosA PathUnit
startPosB PathUnit
endPosA PathUnit
endPosB PathUnit
laneTypes NetInfo
vehicleTypes VehicleInfo
maxLength float
isHeavyVehicle bool
ignoreBlocked bool
stablePath bool
skipQueue bool
vehicleService ItemClass
return bool

CreatePath() public method

public CreatePath ( uint &unit, Randomizer &randomizer, uint buildIndex, PathUnit startPosA, PathUnit startPosB, PathUnit endPosA, PathUnit endPosB, PathUnit vehiclePosition, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength, bool isHeavyVehicle, bool ignoreBlocked, bool stablePath, bool skipQueue ) : bool
unit uint
randomizer Randomizer
buildIndex uint
startPosA PathUnit
startPosB PathUnit
endPosA PathUnit
endPosB PathUnit
vehiclePosition PathUnit
laneTypes NetInfo
vehicleTypes VehicleInfo
maxLength float
isHeavyVehicle bool
ignoreBlocked bool
stablePath bool
skipQueue bool
return bool

CreatePath() public method

public CreatePath ( uint &unit, Randomizer &randomizer, uint buildIndex, PathUnit startPosA, PathUnit startPosB, PathUnit endPosA, PathUnit endPosB, PathUnit vehiclePosition, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength, bool isHeavyVehicle, bool ignoreBlocked, bool stablePath, bool skipQueue, ItemClass vehicleService ) : bool
unit uint
randomizer Randomizer
buildIndex uint
startPosA PathUnit
startPosB PathUnit
endPosA PathUnit
endPosB PathUnit
vehiclePosition PathUnit
laneTypes NetInfo
vehicleTypes VehicleInfo
maxLength float
isHeavyVehicle bool
ignoreBlocked bool
stablePath bool
skipQueue bool
vehicleService ItemClass
return bool

GetLaneID() public static method

public static GetLaneID ( PathUnit pathPos ) : uint
pathPos PathUnit
return uint

UpdateWithPathManagerValues() public method

public UpdateWithPathManagerValues ( PathManager stockPathManager ) : void
stockPathManager PathManager
return void

Property Details

PathFindInstance public_oe static_oe property

public static CustomPathFind,TrafficManager PathFindInstance
return CustomPathFind