public class LowerEnergyScoopCommand extends ShipCommand
If flying through a celestial body (like a Sun or Nebula), this scoop will collect a massive amount of energy. It will additionally cause some drag.
If not in an energy source, this command will drain energy quickly.
It can be run for a 'short period' of 3 seconds or a 'long period' of 6 seconds. A long period will restore almost all energy from the initial requirements to start this command (4).
Scooping is a non-blocking operation.
Constructor and Description |
---|
LowerEnergyScoopCommand(boolean shortlength)
Creates a command to lower your energy scoop to recharge your ships energy in a Nebula or Star.
|
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()
Scooping does not block the processing of other commands.
|
equals, executesImmediately, getMessage, toString
public LowerEnergyScoopCommand(boolean shortlength)
shortlength
- indicates if you want to recharge for 3 (true) or 6 (false) seconds.public java.lang.String getName()
getName
in class ShipCommand
public static int getInitialEnergyCost()
public static int getOngoingEnergyCost()
public static boolean isBlocking()