public class CloakCommand extends ShipCommand
Cloaking is a non-blocking operation.
| Constructor and Description | 
|---|
| CloakCommand(double duration)Creates a command to cloak a ship. | 
| 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()Cloaking does not block the processing of other commands. | 
equals, executesImmediately, getMessage, toStringpublic CloakCommand(double duration)
duration - the amount of time to remain cloaked (in seconds)public java.lang.String getName()
getName in class ShipCommandpublic static int getInitialEnergyCost()
public static int getOngoingEnergyCost()
public static boolean isBlocking()