public class EjectCommand extends ShipCommand
An id of a bauble is required and must be contained within your ship. See TheHungerBaublesGameInfo.getBaublesInCargo()
.
Constructor and Description |
---|
EjectCommand(int target)
Creates a command to drop the specified Bauble.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
executesImmediately()
Ejecting Baubles executes immediately after a cooldown of 0.5 seconds * mass of Bauble to eject.
|
int |
getEnergyCost(int baubleValue)
Gets the energy cost for the constructed command.
|
static int |
getInitialEnergyCost()
Gets the average one-time energy cost to initiate this command.
|
java.lang.String |
getName() |
equals, getMessage, getOngoingEnergyCost, isBlocking, toString
public EjectCommand(int target)
target
- id number of the bauble.public java.lang.String getName()
getName
in class ShipCommand
public int getEnergyCost(int baubleValue)
public static int getInitialEnergyCost()
public static boolean executesImmediately()