C# 클래스 TrafficManager.Custom.AI.CustomVehicleAI

상속: VehicleAI
파일 보기 프로젝트 열기: Katalyst6/CSL.TransitAddonMod 1 사용 예제들

공개 메소드들

메소드 설명
CustomCalculateSegmentPosition ( ushort vehicleID, Vehicle &vehicleData, PathUnit nextPosition, PathUnit position, uint laneID, byte offset, PathUnit prevPos, uint prevLaneID, byte prevOffset, int index, Vector3 &pos, Vector3 &dir, float &maxSpeed ) : void
CustomCalculateSegmentPositionPathFinder ( ushort vehicleID, Vehicle &vehicleData, PathUnit position, uint laneID, byte offset, Vector3 &pos, Vector3 &dir, float &maxSpeed ) : void

보호된 메소드들

메소드 설명
CalculateSegPos ( ushort vehicleID, Vehicle &vehicleData, PathUnit position, uint laneID, byte offset, Vector3 &pos, Vector3 &dir, float &maxSpeed ) : void

비공개 메소드들

메소드 설명
DetermineVehicleTypeFromAIType ( VehicleAI ai, bool emergencyOnDuty ) : ExtVehicleType?
DetermineVehicleTypeFromVehicle ( ushort vehicleId, Vehicle &vehicleData ) : ExtVehicleType?
DetermineVehicleTypeFromVehicleInfo ( VehicleInfo vehicleInfo ) : ExtVehicleType?
HandleVehicle ( ushort vehicleId, Vehicle &vehicleData, bool addTraffic, bool realTraffic ) : void
HandleVehicle ( ushort vehicleId, Vehicle &vehicleData, bool addTraffic, bool realTraffic, byte maxUpcomingPathPositions, bool debug = false ) : void

Handles vehicle path information in order to manage special nodes (nodes with priority signs or traffic lights). Data like "vehicle X is on segment S0 and is going to segment S1" is collected.

메소드 상세

CalculateSegPos() 보호된 메소드

protected CalculateSegPos ( ushort vehicleID, Vehicle &vehicleData, PathUnit position, uint laneID, byte offset, Vector3 &pos, Vector3 &dir, float &maxSpeed ) : void
vehicleID ushort
vehicleData Vehicle
position PathUnit
laneID uint
offset byte
pos Vector3
dir Vector3
maxSpeed float
리턴 void

CustomCalculateSegmentPosition() 공개 메소드

public CustomCalculateSegmentPosition ( ushort vehicleID, Vehicle &vehicleData, PathUnit nextPosition, PathUnit position, uint laneID, byte offset, PathUnit prevPos, uint prevLaneID, byte prevOffset, int index, Vector3 &pos, Vector3 &dir, float &maxSpeed ) : void
vehicleID ushort
vehicleData Vehicle
nextPosition PathUnit
position PathUnit
laneID uint
offset byte
prevPos PathUnit
prevLaneID uint
prevOffset byte
index int
pos Vector3
dir Vector3
maxSpeed float
리턴 void

CustomCalculateSegmentPositionPathFinder() 공개 메소드

public CustomCalculateSegmentPositionPathFinder ( ushort vehicleID, Vehicle &vehicleData, PathUnit position, uint laneID, byte offset, Vector3 &pos, Vector3 &dir, float &maxSpeed ) : void
vehicleID ushort
vehicleData Vehicle
position PathUnit
laneID uint
offset byte
pos Vector3
dir Vector3
maxSpeed float
리턴 void