Class FerryPassengerHandle
This handle provides the position of the ferry and the possibility to leave the ferry.
Inheritance
System.Object
FerryPassengerHandle
Implements
Inherited Members
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: SOHFerryModel.Steering
Assembly: SOHFerryModel.dll
Syntax
public class FerryPassengerHandle : IPassengerHandle
Constructors
| Improve this Doc View SourceFerryPassengerHandle(Ferry)
This handle provides the position of the ferry and the possibility to leave the ferry.
Declaration
public FerryPassengerHandle(Ferry ferry)
Parameters
Type | Name | Description |
---|---|---|
Ferry | ferry |
Properties
| Improve this Doc View SourcePosition
This handle provides the position of the ferry and the possibility to leave the ferry.
Declaration
public Position Position { get; }
Property Value
Type | Description |
---|---|
Position |
Methods
| Improve this Doc View SourceLeaveVehicle(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. |