public class RepairCommand extends ShipCommand
Repairing is a non-blocking operation.
Constructor and Description |
---|
RepairCommand(int amount)
Creates a command to repair a ship.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
static int |
getOngoingEnergyCost()
Gets the energy cost per second of this command.
|
static boolean |
isBlocking()
Repairing does not block the processing of other commands.
|
equals, executesImmediately, getInitialEnergyCost, getMessage, toString
public RepairCommand(int amount)
amount
- the amount of health to regenerate by repairingpublic java.lang.String getName()
getName
in class ShipCommand
public static int getOngoingEnergyCost()
public static boolean isBlocking()