public abstract class ShipCommand
extends java.lang.Object
Constructor and Description |
---|
ShipCommand() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(ShipCommand other) |
static boolean |
executesImmediately()
Returns true if the Command executes as soon as it is processed in the queue and does not delay for any period of time.
|
static int |
getInitialEnergyCost()
Gets the one-time energy cost to initiate this command.
|
java.util.ArrayList<java.lang.Object> |
getMessage() |
abstract java.lang.String |
getName() |
static int |
getOngoingEnergyCost()
Gets the energy cost per second of this command.
|
static boolean |
isBlocking()
Returns true if the Command will stop other commands from processing.
|
java.lang.String |
toString() |
public abstract java.lang.String getName()
public static int getInitialEnergyCost()
public static int getOngoingEnergyCost()
public static boolean isBlocking()
public static boolean executesImmediately()
public java.util.ArrayList<java.lang.Object> getMessage() throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
public boolean equals(ShipCommand other)
public java.lang.String toString()
toString
in class java.lang.Object