public class BrakeCommand extends ShipCommand
| Constructor and Description |
|---|
BrakeCommand(double power)
Creates a command to gradually slow a ship to a percentage of its current speed.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
static int |
getOngoingEnergyCost()
Gets the energy cost per second of this command.
|
equals, executesImmediately, getInitialEnergyCost, getMessage, isBlocking, toStringpublic BrakeCommand(double power)
power - the percentage of the ship's current speed to maintainpublic java.lang.String getName()
getName in class ShipCommandpublic static int getOngoingEnergyCost()