Class AirMovementStrategy
java.lang.Object
nl.sbdeveloper.vehiclesplus.api.vehicles.statics.strategies.AirMovementStrategy
- All Implemented Interfaces:
MovementStrategy
A strategy for air movement
-
Constructor Summary
ConstructorsConstructorDescriptionAirMovementStrategy
(float liftoffSpeed) Construct of AirMovementStrategyAirMovementStrategy
(VehicleModel model) Default construct of AirMovementStrategy -
Method Summary
Modifier and TypeMethodDescriptionint
getLift()
The current lift of the vehiclefloat
The speed at which the vehicle can liftoff (km/h)void
setLift
(int lift) The current lift of the vehiclevoid
setLiftoffSpeed
(float liftoffSpeed) The speed at which the vehicle can liftoff (km/h)toString()
-
Constructor Details
-
AirMovementStrategy
Default construct of AirMovementStrategy- Parameters:
model
- VehicleModel
-
AirMovementStrategy
public AirMovementStrategy(float liftoffSpeed) Construct of AirMovementStrategy- Parameters:
liftoffSpeed
- float
-
AirMovementStrategy
public AirMovementStrategy()
-
-
Method Details
-
getLiftoffSpeed
public float getLiftoffSpeed()The speed at which the vehicle can liftoff (km/h) -
getLift
public int getLift()The current lift of the vehicle -
setLiftoffSpeed
public void setLiftoffSpeed(float liftoffSpeed) The speed at which the vehicle can liftoff (km/h) -
setLift
public void setLift(int lift) The current lift of the vehicle -
toString
-