Class Golf
Simple car with reasonable parameters.
Inheritance
ISpatialGraphEntity
Golf
Implements
Inherited Members
Namespace: SOHCarModel.Model
Assembly: SOHCarModel.dll
Syntax
public class Golf : Car, IVehicleEntrance<ICarSteeringCapable, IPassengerCapable, CarSteeringHandle, CarPassengerHandle>, IParkingCar
Methods
Create(ISpatialGraphEnvironment, Position)
Creates a car at the given position.
Declaration
public static Golf Create(ISpatialGraphEnvironment environment, Position position = null)
Parameters
Type | Name | Description |
---|---|---|
ISpatialGraphEnvironment | environment | Holds the movement graph. |
Position | position | Start position of the car. |
Returns
Type | Description |
---|---|
Golf | The generated car |
Create(CarParkingLayer, Position)
Creates a car at the given position.
Declaration
public static Golf Create(CarParkingLayer carParkingLayer, Position position = null)
Parameters
Type | Name | Description |
---|---|---|
CarParkingLayer | carParkingLayer | Holds all relevant car resources. |
Position | position | Start position of the car. |
Returns
Type | Description |
---|---|
Golf | The generated car |
CreateOnParking(CarParkingLayer, ISpatialGraphEnvironment, Position)
Creates a car on the nearest ParkingSpot that is found in the parking layer next to the parking spot position.
Declaration
public static Golf CreateOnParking(CarParkingLayer carParkingLayer, ISpatialGraphEnvironment environment, Position parkingSpotPosition)
Parameters
Type | Name | Description |
---|---|---|
CarParkingLayer | carParkingLayer | Holds all relevant car resources. |
ISpatialGraphEnvironment | environment | The graph on which the car will move. |
Position | parkingSpotPosition | A position where a parking spot may be. |
Returns
Type | Description |
---|---|
Golf | The generated car that is inserted on the found parking spot |