C# Class TrafficManager_ImprovedAI.CustomCarAI

Inheritance: VehicleAI
Exibir arquivo Open project: fadster/TrafficManager_ImprovedAI

Public Methods

Method Description
RedirectCalls ( List callStates ) : void
SimulationStep ( ushort vehicleID, Vehicle &vehicleData, Vehicle &frameData, ushort leaderID, Vehicle &leaderData, int lodPhysics ) : void

Protected Methods

Method Description
CalculateSegmentPosition ( 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

Private Methods

Method Description
CalculateMaxSpeed ( float targetDistance, float targetSpeed, float maxBraking ) : float
CheckCitizen ( ushort vehicleID, Vehicle &vehicleData, Segment3 segment, float lastLen, float nextLen, float &maxSpeed, bool &blocked, float maxBraking, ushort otherID, CitizenInstance &otherData, Vector3 min, Vector3 max ) : ushort
CheckOtherVehicle ( ushort vehicleID, Vehicle &vehicleData, Vehicle &frameData, float &maxSpeed, bool &blocked, Vector3 &collisionPush, float maxBraking, ushort otherID, Vehicle &otherData, Vector3 min, Vector3 max, int lodPhysics ) : ushort
CheckOtherVehicles ( ushort vehicleID, Vehicle &vehicleData, Vehicle &frameData, float &maxSpeed, bool &blocked, Vector3 &collisionPush, float maxDistance, float maxBraking, int lodPhysics ) : void
DisableCollisionCheck ( ushort vehicleID, Vehicle &vehicleData ) : bool

Method Details

CalculateSegmentPosition() protected method

protected CalculateSegmentPosition ( 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
return void

RedirectCalls() public static method

public static RedirectCalls ( List callStates ) : void
callStates List
return void

SimulationStep() public method

public SimulationStep ( ushort vehicleID, Vehicle &vehicleData, Vehicle &frameData, ushort leaderID, Vehicle &leaderData, int lodPhysics ) : void
vehicleID ushort
vehicleData Vehicle
frameData Vehicle
leaderID ushort
leaderData Vehicle
lodPhysics int
return void