public class IdleCommand extends ShipCommand
Constructor and Description |
---|
IdleCommand(double duration)
Creates a command to wait for a specified amount of time.
|
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, toString
public IdleCommand(double duration)
duration
- the number of seconds for which to idlepublic java.lang.String getName()
getName
in class ShipCommand
public static int getOngoingEnergyCost()