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, toStringpublic RepairCommand(int amount)
amount - the amount of health to regenerate by repairingpublic java.lang.String getName()
getName in class ShipCommandpublic static int getOngoingEnergyCost()
public static boolean isBlocking()