public class ScanCommand extends ShipCommand
An id of a nearby object to scan is required and must be within a third of your radar range for a full duration of 2.5 seconds in order to be successfully scanned.
Scanning is a non-blocking operation.
Constructor and Description |
---|
ScanCommand(int target)
Creates a command to perform a research scan of a specific object.
|
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()
Scanning does not block the processing of other commands.
|
equals, executesImmediately, getMessage, toString
public ScanCommand(int target)
target
- id number of the object to scan.public java.lang.String getName()
getName
in class ShipCommand
public static int getInitialEnergyCost()
public static int getOngoingEnergyCost()
public static boolean isBlocking()