public class RaiseShieldsCommand extends ShipCommand
Raising shields is a non-blocking operation.
Constructor and Description |
---|
RaiseShieldsCommand(double duration)
Creates a command to raise shields.
|
Modifier and Type | Method and Description |
---|---|
static int |
getInitialEnergyCost()
Gets the one-time energy cost to initiate this command.
|
java.lang.String |
getName() |
static int |
getOngoingEnergyCost()
Gets the energy cost per second of this command.
|
static boolean |
isBlocking()
Raising Shields does not block the processing of other commands.
|
equals, executesImmediately, getMessage, toString
public RaiseShieldsCommand(double duration)
duration
- the amount of time for which shields should be up (in seconds)public java.lang.String getName()
getName
in class ShipCommand
public static int getInitialEnergyCost()
public static int getOngoingEnergyCost()
public static boolean isBlocking()