Class Golf
Simple car with reasonable parameters.
Inheritance
System.Object
Golf
Implements
Inherited Members
Vehicle<ICarSteeringCapable, IPassengerCapable, CarSteeringHandle, CarPassengerHandle>.WideTurnSpeed
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SOHCarModel.Model
Assembly: SOHCarModel.dll
Syntax
public class Golf : Car, ISpatialGraphEntity, IEntity, IModelObject, IPositionable, IVehicleEntrance<ICarSteeringCapable, IPassengerCapable, CarSteeringHandle, CarPassengerHandle>, IParkingCar
Methods
| Improve this Doc View SourceCreate(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 |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | If parkingLayer or parkingSpotPosition are null. |