City Based Parking and Routing System API Documentation

IVehicle Members

IVehicle overview

Public Instance Properties

Behind Returns the first position behind the vehicle.
Color Gets the color of the vehicle
IsBraking Gets a boolean indicating if the car is braking.
Lane The ILane the vehicle is currently driving on.
Length Gets the length of the vehicle in cells.
MaxSpeed The maximum speed the vehicle can travel at.
MustChangeLanes Gets or sets a boolean that indicates that the vehicle should change lanes.
Position The position the vehicle is currently occupying on the Lane.
Route Gets or sets the route the vehicle is currently following.
Speed The speed at which the vehicle is currently traveling.
TurnIndicator Gets the current status of the turn signal of the vehicle

Public Instance Methods

ChangeLanes Gives the vehicle to opportunity to change lanes before being moved.
IntializeRoute Allows the vehicle to initialize a new route.
Move Moves the current vehicle to a new position.
UpdateRoute Updates the route

See Also

IVehicle Interface | CBPRS.Infrastructure Namespace