public class CollectCommand extends ShipCommand
An id of the nearby bauble is required and must be within range to be picked up.
Constructor and Description |
---|
CollectCommand(int target)
Creates a command to pick up the specified Bauble in range.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
executesImmediately()
Collecting Baubles executes immediately but has a cooldown of 0.2 seconds.
|
static int |
getInitialEnergyCost()
Gets the one-time energy cost to initiate this command.
|
java.lang.String |
getName() |
equals, getMessage, getOngoingEnergyCost, isBlocking, toString
public CollectCommand(int target)
target
- id number of the bauble.public java.lang.String getName()
getName
in class ShipCommand
public static int getInitialEnergyCost()
public static boolean executesImmediately()