Class FerryPassengerHandle
This handle provides the position of the ferry and the possibility to leave the ferry.
Inheritance
System.Object
FerryPassengerHandle
Implements
Namespace: SOHFerryModel.Steering
Assembly: SOHFerryModel.dll
Syntax
public class FerryPassengerHandle : object, IPassengerHandle
Constructors
FerryPassengerHandle(Ferry)
Declaration
public FerryPassengerHandle(Ferry ferry)
Parameters
Type | Name | Description |
---|---|---|
Ferry | ferry |
Properties
Position
Declaration
public Position Position { get; }
Property Value
Type | Description |
---|---|
Position |
Methods
LeaveVehicle(IPassengerCapable)
Leave the ferry if it is located in a ferry station.
Declaration
public bool LeaveVehicle(IPassengerCapable passengerCapable)
Parameters
Type | Name | Description |
---|---|---|
IPassengerCapable | passengerCapable | Who wants to leave the ferry. |
Returns
Type | Description |
---|---|
System.Boolean | True if the ferry could be left. False otherwise. |